AWS Launches Blocks, an Open-Source TypeScript Framework Designed for AI Agents to Build Backends
AWS recently released AWS Blocks in public preview, an open-source TypeScript framework in which each “Block” bundles application code, a local development implementation, and the AWS infrastructure required to run it in production.
Developers can use npm run dev and get a working application with Postgres, authentication, real-time messaging, and file storage on their machine without an AWS account. When they deploy, the same code runs on Lambda, DynamoDB, Aurora, API Gateway, and Bedrock with zero changes.
What sets Blocks apart is a design premise rooted in 2026: AI agents write code, and the framework provides the correct way to write it from the start. Blocks ships with built-in steering files that guide coding agents without custom configuration.
At preview, approximately 20 Blocks are available covering databases (Postgres via Aurora, DynamoDB), authentication (Cognito), AI agents and knowledge bases (Bedrock), file storage (S3), real-time messaging, background jobs, scheduled tasks, and email (SES).
Early preview caveats: Block constructor signatures may change between preview releases (pin your versions), local data persistence depends on mock implementations, and the framework requires Node.js 22 or later.