Agentic AI
AWS Blocks: Open-Source TypeScript Framework Built for AI-Driven Backend Development
AWS released Blocks in public preview, a TypeScript framework designed to simplify backend development by enabling AI agents to write infrastructure-correct code from the start.
InfoQ
AWS has launched Blocks, an open-source TypeScript framework in public preview that aims to bridge the gap between local development and cloud deployment—while optimizing for AI agent workflows.
How it works#
The core innovation is straightforward: each Block packages application code, local development logic, and AWS infrastructure into a composable unit. Developers can run npm run dev and instantly get a working environment with Postgres, authentication, real-time messaging, and file storage—no AWS account required. When they deploy, the identical code runs on Lambda, DynamoDB, Aurora, API Gateway, and Bedrock with zero changes.
What sets Blocks apart is its design premise for 2026: AI agents write code, and the framework provides correct patterns by default. Built-in steering files guide coding agents toward proper architecture. A developer can prompt an agent to "add authentication and a database," and the framework constrains it to produce code that works locally and scales to production.
Key features#
Composability: Blocks cover specific backend capabilities—databases, authentication, AI agents, file uploads, background jobs, scheduled tasks, notifications, and email. Developers import what they need, and the framework generates AWS infrastructure following best practices.
Type safety: Data schemas flow through to frontend code without code generation, supporting Next.js, Nuxt, Astro, React, Vue, Svelte, Angular on the web and Swift, Kotlin, and Flutter natively.
Local-first development: Node.js conditional exports load different implementations depending on context. The same new KVStore(scope, 'todos') becomes an in-memory store locally, a DynamoDB table in production, and an SDK call at runtime. Hot reload restarts on save with sub-second feedback.
CDK escape hatch: Blocks applications are CDK applications. When built-in Blocks don't fit, developers can drop into CDK for direct resource configuration or extend with custom Blocks.
Positioning vs. Amplify#
The release immediately raises questions about AWS Amplify, which also offers code-first TypeScript backends on CDK. AWS positions them as complementary: Amplify focuses on hosting, CI/CD, and managed experiences, while Blocks prioritizes type-safe infrastructure-from-code with local-first development. noted Blocks' distinctive 2026 angle: it "takes for granted that AI agents write code, and the framework itself carries the correct way to write from the start."

