Storecraft
Next-generation "Commerce as Code" backend platform for building full-featured e-commerce systems with TypeScript across any runtime.
Storecraft is a headless, agentic Commerce-as-Code backend framework that allows developers to build fully customizable e-commerce systems using TypeScript. It is designed as a modular backend engine where commerce logic—products, orders, payments, auth, storage, and AI integrations—is defined entirely in code rather than through a traditional monolithic SaaS dashboard.
The platform runs across multiple JavaScript environments including Node.js, Bun, Deno, Cloudflare Workers, AWS Lambda, and Google Cloud Functions. It is built to be deployment-agnostic, supporting both serverless and traditional server-based architectures.
Storecraft provides a unified abstraction layer for commerce infrastructure. Developers can plug in different databases (Postgres, MongoDB, SQLite, MySQL, PlanetScale, Neon, Turso, Cloudflare D1), storage providers (S3, R2, Google Storage, local filesystem), email services (Resend, SendGrid, Mailgun, SMTP), and payment gateways (Stripe, PayPal, custom providers) without changing core business logic.
At its core, Storecraft is event-driven. Business logic is implemented through event hooks such as order creation, checkout completion, authentication flows, and custom extensions. This allows developers to build complex commerce workflows—like notifications, AI-driven personalization, or integrations—without modifying the core engine.
The system also includes a built-in dashboard, REST API, CLI tooling, SDKs, and AI integration capabilities. It supports agentic workflows where AI models can assist in building or managing commerce logic, making it particularly suitable for modern AI-assisted development environments.
Storecraft is positioned as a flexible alternative to traditional e-commerce platforms like Shopify or WooCommerce, targeting developers who want full control over infrastructure and business logic while still benefiting from prebuilt commerce primitives.
Key features include:
- Commerce-as-Code architecture using TypeScript
- Runs on Node, Bun, Deno, and serverless platforms
- Pluggable support for databases, storage, email, and payments
- Event-driven architecture for custom business logic
- Built-in dashboard, REST API, CLI, and SDKs
- AI-ready architecture for agent-based commerce workflows
Common use cases include:
- Building custom e-commerce platforms
- Headless storefront backends
- AI-powered commerce systems
- Multi-tenant marketplaces
- Fully serverless online stores with custom business logic
Storecraft is developed as an open-source project focused on redefining how modern commerce systems are built by treating infrastructure and business logic as composable code.
Comments
0Markdown is supported.