v0.1.1 — Open Source · MIT Licensed

Your backend,
your server,
your rules.

CocoBase is an open-source Backend as a Service built with Go. One binary. Auth, database, file storage, and a dashboard — all self-hosted.

Download Free Try Cloud Version Star on GitHub
Deploy in under 5 minutes PostgreSQL or SQLite MIT Licensed
index.ts .env docker-compose.yml
import { Cocobase } from 'cocobase'

const db = new Cocobase({
  apiKey: process.env.COCOBASE_API_KEY,
  projectId: process.env.COCOBASE_PROJECT_ID,
  baseURL:process.env.COCOBASE_SELFHOST_URL
})

// Create a document
await db.createDocument("users", { name: "John Wick" })

// List documents
const users = await db.listDocuments("users")

// Register & login
await db.register({ email: "user@example.com", password: "secure123"})
const session = await db.login({ email: "user@example.com", password: "secure123"})
18+
GitHub Stars
4+
Official SDKs
100%
Open Source
1
Binary to run
What's included

Everything your app needs,
nothing it doesn't.

CocoBase ships all the backend primitives so you can focus on your product, not infrastructure.

User Authentication

Email/password, JWT tokens, OAuth (Google, GitHub, Apple), email verification, two-factor auth, and password reset — all built in.

self-hosted + cloud

Schemaless Collections

Store anything. Create, read, update, and delete documents without defining schemas upfront. Works with PostgreSQL or SQLite.

self-hosted + cloud

File Storage

Secure file uploads via Backblaze B2. The cloud version adds CDN delivery with 145 GB+ per project and global edge caching.

self-hosted + cloud

Auto-generated REST API

Full RESTful endpoints generated for every collection. No setup. Your SDKs talk to these right out of the box with zero config.

self-hosted + cloud

Admin Dashboard

A built-in web dashboard to manage users, browse collections, upload files, and inspect your instance — no external tooling needed.

self-hosted + cloud

Real-time & Cloud Functions

WebSocket subscriptions and serverless cloud functions with email and queue support — available on the managed cloud edition.

self-hosted + cloud
Editions

Self-hosted vs Cloud

Run it yourself or let us manage it. Both share the same core — your choice depends on your needs.

Capability Self-hosted (this repo) Cloud — cocobase.buzz
Hosting Your server Managed, 200+ edge nodes
Database PostgreSQL or SQLite Managed, auto-scaling
Authentication Email, OAuth, 2FA Same + more providers
File Storage Backblaze B2 Built-in CDN, 145 GB+
Admin Dashboard Built-in Built-in
Real-time sync WebSocket subscriptions
Cloud Functions JavaScript (express syntax) Serverless + email queue
Price Free (host it yourself) Free tier + paid plans
Integrations

SDK for every stack

Official client libraries so your app can talk to CocoBase in the language you already use.

bash
$ npm install cocobase
Installed cocobase@1.5.0 in 1.1s

$ pip install cocobase
Successfully installed cocobase-1.5.0

$ go get github.com/lordace-coder/cocobase-go
go: added cocobase-go v1.5.0

Ready to ship faster?

Download CocoBase and have a full backend running in minutes. Or jump straight to the cloud — no card required.