Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚══════╝ ╚═════╝ ╚══╝ ╚══╝ ╚══════╝
```

**The AI-Native Backend-as-a-Service Platform**
**The AI-native Backend-as-a-Service platform**

Blazing-fast backend development with Sub-100ms Local Dev — Built on Bun + SQLite, deploy anywhere with PostgreSQL support.
Blazing-fast backend development with sub-100ms local dev. Built on Bun + SQLite, and deployable anywhere with PostgreSQL support.

*Database • Authentication • Realtime Subscriptions • Storage • Serverless Functions • Vector Search*

Expand Down Expand Up @@ -51,12 +51,12 @@ Blazing-fast backend development with Sub-100ms Local Dev — Built on Bun + SQL
└─────────────────────────────────────────────────────────────────────────────────────────────┘
```

| | TraditionalBAAS | Betterbase |
| | Traditional BaaS | Betterbase |
|--|------------------|------------|
| ⚡ | Slow local dev | **Sub-100ms dev** with Bun + SQLite |
| 🗄️ | Black box DB | **Full PostgreSQL** with raw SQL access |
| 🔍 | Basic search | **Full-text + Vector search** built-in |
| 🚀 | Cloud lock-in | **Self-host anywhere** with Docker |
| 🚀 | Cloud lock-in | **Self-hosted anywhere** with Docker |
| 📊 | Limited analytics | **Full observability** out of the box |
| 🔐 | Closed source | **100% open source** - deploy anywhere |

Expand Down Expand Up @@ -162,17 +162,17 @@ Your backend runs at `http://localhost:3000`. The dashboard is at `http://localh
|---------|-------------|
| **IaC Layer** | Convex-inspired: define schema + functions in TypeScript |
| **Auto-Realtime** | Queries auto-subscribe to changes |
| **Type Safety** | Full TypeScript inference, no code generation needed |
| **Migrations** | Automatic diff + apply on `bb dev` |
| **Type Safety** | Full TypeScript inference; no code generation needed |
| **Migrations** | Automatically diff and apply changes on `bb dev` |
| **Raw SQL** | `ctx.db.execute()` for complex queries |
| **Full-Text Search** | PostgreSQL GIN indexes via `ctx.db.search()` |
| **Vector Search** | pgvector + HNSW for embeddings |
| **Serverless Functions** | Deploy custom API functions |
| **Serverless Functions** | Deploy custom API endpoints and functions |
| **Storage** | S3-compatible object storage |
| **Webhooks** | Event-driven with signed payloads |
| **Background Jobs** | Durable workflows via Inngest |
| **RLS** | Row-level security policies |
| **Branching** | Preview environments per branch |
| **Branching** | Preview environments for each branch |

---

Expand All @@ -187,7 +187,7 @@ Your backend runs at `http://localhost:3000`. The dashboard is at `http://localh
| Self-Hosting | Not supported | Docker to your infra |
| Migration | — | `bb migrate from-convex` |

**Betterbase gives you Convex simplicity with full SQL power.**
**Betterbase gives you Convex-style simplicity with full SQL power.**

---

Expand All @@ -199,7 +199,7 @@ Betterbase uses [Inngest](https://www.inngest.com/) for durable workflows and ba

| Mode | Inngest Backend | Used By |
|------|----------------|---------|
| Cloud | `https://api.inngest.com` | BetterBase Cloud offering |
| Cloud | `https://api.inngest.com` | Betterbase Cloud offering |
| Self-Hosted | `http://inngest:8288` | Docker deployment |
| Local Dev | `http://localhost:8288` | Development and testing |

Expand All @@ -225,7 +225,7 @@ INNGEST_EVENT_KEY=your-event-key

## Project Structure

Betterbase supports two patterns:
Betterbase supports two development patterns:

### 1. IaC Pattern (Recommended)

Expand Down Expand Up @@ -263,11 +263,11 @@ Both patterns work together. Add `betterbase/` to any existing project.

| Command | Description |
|---------|-------------|
| `bb init [name]` | Create new project |
| `bb dev` | Start dev server |
| `bb iac sync` | Sync IaC schema |
| `bb init [name]` | Create a new project |
| `bb dev` | Start the development server |
| `bb iac sync` | Sync the IaC schema |
| `bb iac analyze` | Analyze query performance |
| `bb migrate` | Run migrations |
| `bb migrate` | Run database migrations |
| `bb generate types` | Generate TypeScript types |

---
Expand Down Expand Up @@ -314,7 +314,7 @@ docker-compose up -d

### Self-Hosted

See [SELF_HOSTED.md](SELF_HOSTED.md) for full documentation.
See [SELF_HOSTED.md](SELF_HOSTED.md) for full setup documentation.

```typescript
database: {
Expand Down Expand Up @@ -407,7 +407,7 @@ export const auth = betterAuth({

### Row Level Security

Betterbase integrates with database RLS for secure data access:
Betterbase integrates with database-level RLS for secure data access:

```typescript
// In your schema or via CLI
Expand All @@ -422,25 +422,25 @@ This ensures users can only access their own data.

---

## Ask Deepwiki
## Ask DeepWiki

> *Your AI-powered development assistant, integrated directly into Betterbase.*

Ask Deepwiki provides intelligent context for AI-assisted development:
Ask DeepWiki provides intelligent context for AI-assisted development:

- **Smart Code Context**: Automatic `.betterbase-context.json` generation
- **IaC Analysis**: Understand your schema, queries, and mutations
- **Query Optimization**: Get recommendations for better performance
- **Documentation Generation**: Auto-generate docs from your code

**Deepwiki Badge**: The badge at the top of this README links to [Ask Deepwiki](https://deepwiki.com/weroperking/Betterbase), where you can chat with an AI that understands your entire Betterbase project.
**DeepWiki Badge**: The badge at the top of this README links to [Ask DeepWiki](https://deepwiki.com/weroperking/Betterbase), where you can chat with an AI that understands your entire Betterbase project.

### Using Ask Deepwiki
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix branding capitalization drift in section heading.

Line 438 uses Deepwiki, which breaks the normalized product naming used elsewhere (DeepWiki). Use consistent casing to avoid documentation drift.

Suggested patch
-### Using Ask Deepwiki
+### Using Ask DeepWiki

As per coding guidelines, "Treat this file as the source of truth for monorepo overview phrasing and naming conventions."

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
### Using Ask Deepwiki
### Using Ask DeepWiki
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` at line 438, The section heading "Using Ask Deepwiki" uses
incorrect capitalization; update the heading text to "Using Ask DeepWiki" to
match the normalized product name used throughout the repository (search for the
heading string "Using Ask Deepwiki" and replace it with "Using Ask DeepWiki" in
README.md).


1. **Development**: Get instant answers about your IaC layer
2. **Debugging**: Understand query behavior and optimization
3. **Onboarding**: New team members can ask about your architecture
4. **Refactoring**: Get AI suggestions for improving your code
2. **Debugging**: Understand query behavior and optimization opportunities
3. **Onboarding**: Help new team members quickly understand your architecture
4. **Refactoring**: Get AI suggestions to improve your code

---

Expand Down Expand Up @@ -563,7 +563,7 @@ Instances of abusive, harassing, or otherwise unacceptable behavior may be repor

## Changelog

All notable changes to this project will be documented in this section.
All notable changes to this project are documented in this section.

### [1.0.0] - 2026-03-19

Expand Down Expand Up @@ -644,4 +644,4 @@ SOFTWARE.

[Website](#) • [Documentation](docs/README.md) • [Discord](https://discord.gg/R6Dm6Cgy2E) • [GitHub](https://github.com/weroperking/Betterbase) • [Twitter](#)

</div>
</div>
Loading