[](https://npmjs.org/package/bknd) 
bknd simplifies app development by providing a fully functional backend for database management, authentication, media and workflows. Being lightweight and built on Web Standards, it can be deployed nearly anywhere, including running inside your framework of choice. No more deploying multiple separate services! * **Runtimes**: Node.js 22+, Bun 1.0+, Deno, Browser, Cloudflare Workers/Pages, Vercel, Netlify, AWS Lambda, etc. * **Databases**: * SQLite: LibSQL, Node SQLite, Bun SQLite, Cloudflare D1, Cloudflare Durable Objects SQLite, SQLocal * Postgres: Vanilla Postgres, Supabase, Neon, Xata * **Frameworks**: React, Next.js, React Router, Astro, Vite, Waku * **Storage**: AWS S3, S3-compatible (Tigris, R2, Minio, etc.), Cloudflare R2 (binding), Cloudinary **For documentation and examples, please visit https://docs.bknd.io.** > [!WARNING] > This project requires Node.js 22 or higher (because of `node:sqlite`). > > Please keep in mind that **bknd** is still under active development > and therefore full backward compatibility is not guaranteed before reaching v1.0.0. ## Size     The size on npm is misleading, as the `bknd` package includes the backend, the ui components as well as the whole backend bundled into the cli including static assets. Depending on what you use, the size can be higher as additional dependencies are getting pulled in. The minimal size of a full `bknd` app as an API is around 300 kB gzipped (e.g. deployed as Cloudflare Worker). ## Motivation Creating digital products always requires developing both the backend (the logic) and the frontend (the appearance). Building a backend from scratch demands deep knowledge in areas such as authentication and database management. Using a backend framework can speed up initial development, but it still requires ongoing effort to work within its constraints (e.g., *"how to do X with Y?"*), which can quickly slow you down. Choosing a backend system is a tough decision, as you might not be aware of its limitations until you encounter them. **The solution:** A backend system that only assumes and implements primitive details, integrates into multiple environments, and adheres to industry standards. ## Features * ⚡ Instant backend with full REST API: * **Data**: Define, query, and control your data with ease. * **Auth**: Easily implement reliable authentication strategies. * **Media**: Effortlessly manage and serve all your media files. * **Flows**: Design and run workflows with seamless automation. (UI integration coming soon!) * 🌐 Built on Web Standards for maximum compatibility * 🏃♂️ Multiple run modes * standalone using the CLI * using a JavaScript runtime (Node, Bun, workerd) * using a React framework (Next.js, React Router, Astro) * 📦 Official API and React SDK with type-safety * ⚛️ React elements for auto-configured authentication and media components ## Structure The package is mainly split into 4 parts, each serving a specific purpose: | Import | Purpose | |-----------------------------|------------------------------------------------------| | `bknd`