aws-devtools-labs/aws-blocks
Composable building blocks for full-stack AWS apps — define infrastructure and runtime code together with end-to-end type safety using TypeScript, local mocking, and native client codegen for Kotlin, Swift, and Dart.
What it solves
AWS Blocks simplifies the process of building full-stack applications on AWS by removing the friction between local development and cloud deployment. It eliminates the need for an AWS account during initial development and prevents the need to rewrite code when moving from a local environment to production.
How it works
The toolkit uses Node.js conditional exports to swap implementations based on the environment:
- Local development: Blocks use in-memory or filesystem storage to run entirely on the developer's machine.
- CDK synthesis: Blocks generate AWS Cloud Development Kit (CDK) constructs and CloudFormation templates to define the necessary infrastructure.
- AWS Lambda runtime: In production, the same code calls actual AWS services via the SDK.
Who it’s for
Full-stack developers who want to build AWS-powered applications with a local-first workflow and end-to-end type safety across web frameworks (like Next.js and React) and native mobile platforms (iOS, Android, Flutter).
Highlights
- Self-contained Blocks: Provides modular capabilities for data storage (KVStore, Database), authentication (Cognito), compute (CronJobs), and AI (Agents, Knowledge Bases).
- Local-first development: Run the entire backend locally without AWS credentials.
- End-to-end type safety: Types flow from the backend to the client without a manual code generation step for web apps.
- Multi-platform support: Includes native client SDKs for Kotlin, Swift, and Dart/Flutter via a JSON-RPC runtime.
Related
- Project
- Project
- Project
- Project
- Project