Butterbase is an open-source backend-as-a-service (BaaS) that integrates Postgres, authentication, storage, serverless functions, and an AI gateway with MCP support. It aims to be an alternative to services like Supabase, focusing on developer control and open-source principles. It provides essential backend functionalities out of the box.
A starter prompt for Claude Code, what you'll need, and how to reach them.
You are an expert full-stack developer. Your task is to build a simplified, open-source backend-as-a-service (BaaS) similar to Butterbase, focusing on the core features: Postgres database access, user authentication, and serverless functions. Use Next.js 16 App Router, React 19, Tailwind v4 for the frontend/API layer, and Neon Postgres for the database. Implement the AI SDK v6 with Gemini for a basic AI gateway proxy. Begin by setting up a robust project structure. MVP should include: 1. **Postgres Integration:** A basic API endpoint for a `todos` table (create, read, update, delete). Ensure secure access via environment variables. 2. **User Authentication:** Implement email/password authentication using NextAuth.js or Clerk. Users should be able to sign up, log in, and log out. Protect the `todos` API endpoints so only authenticated users can access them. 3. **Serverless Function Example:** Create a simple serverless function (Next.js API route) that accepts a user ID and returns their `todos`. 4. **AI Gateway:** An API route that proxies a request to the Gemini API, accepting a prompt and returning a completion. Include basic error handling and ensure the API key is securely managed. Your response should include all necessary file structures, code for the core components, and clear setup instructions. Prioritize clean, modular code. The build/verify gate for this MVP is: I can sign up, log in, create/read todos via the authenticated API, and hit the AI proxy endpoint with a prompt.
Reach developers interested in Butterbase's open-source BaaS by showcasing how Lumivara's MCP Kit or Forge Kit could extend or automate deployments on a similar platform, or how 'learn' could be used to build guides for it.
Open-source backend-as-a-service. Postgres, auth, storage, functions, AI gateway, MCP. Topics: baas, backend-as-a-service, mcp, open-source, postgres, supabase-alternative, typescript.
Open an issue or start a discussion on the Butterbase GitHub repository.
“I'm impressed with Butterbase's vision. I've been experimenting with building a similar stack with AI tools (Next.js, Neon, AI SDK) and have a working prototype for a core BaaS with an AI gateway. Happy to contribute or share insights on accelerating specific components.”
Open the original ↗