Welcome to the tspoonbase wiki!
# TspoonBase Wiki
Welcome to the TspoonBase wiki. This is the central place for project status, roadmap, design decisions, and contributor resources.
This page records significant architectural decisions made in TspoonBase.
Status: Accepted
Context: We needed a zero-config database that works out of the box for a backend-as-a-service.
Decision: Use SQLite (via better-sqlite3) as the default database.
Consequences:
Status: Accepted
Context: Application data (collections, records) and system data (settings, migrations, auth sessions) have different backup and migration needs.
Decision: Split into data.db (app data) and auxiliary.db (system data).
Consequences:
Status: Accepted
Context: We needed a mature, well-documented HTTP framework with extensive middleware ecosystem.
Decision: Use Express.js over Fastify.
Consequences:
Status: Accepted
Context: We wanted to allow users to extend behavior with JavaScript without compromising security.
Decision: Run pb_hooks/ in a Node VM sandbox.
Consequences:
Status: Accepted
Context: The Admin UI needs to be a modern SPA with good DX.
Decision: Build Admin UI with React + Vite, served as static files.
Consequences:
Status: Accepted
Context: AI-assisted development is becoming standard. Integrating it natively provides value.
Decision: Build AI schema generation, rule generation, and chat directly into the platform.
Consequences:
Last updated: April 2026
TspoonBase is actively developed and in a usable beta state. The core platform is stable enough for production side projects, hobby apps, and internal tools.
| Feature | Status | Notes |
|---|---|---|
| SQLite Database | Stable | Dual-DB architecture (data.db + auxiliary.db), 14 field types, schema sync |
| Authentication | Stable | Email/password, OAuth2, OTP, MFA/TOTP with JWT refresh tokens |
| Collections & Records | Stable | CRUD, filtering, sorting, pagination, record expansion, back-relations |
| File Storage | Stable | Local filesystem + S3-compatible, thumbnails, protected tokens |
| Realtime | Stable | WebSocket + SSE with subscription broker |
| Admin UI | Stable | React/Vite SPA with dashboard, collection editor, record browser |
| AI Tools | Beta | Schema gen, rule gen, data seeding, chat assistant (OpenAI, Anthropic, Ollama) |
| Vector Search | Beta | Cosine similarity search via custom SQLite function |
| JavaScript Hooks | Stable | pb_hooks/ sandbox with onBootstrap, onRecordCreate, etc. |
| Migrations | Stable | JS migration runner with auto-run on startup |
| Rate Limiting | Stable | Configurable per-window rules |
| Settings Encryption | Stable | AES encryption for SMTP, S3, AI credentials |
0.2.6| Priority | Feature | Description |
|---|---|---|
| High | PostgreSQL adapter | Add PostgreSQL as an alternative to SQLite for larger workloads |
| High | TypeScript SDK | Auto-generated TS client from collection schemas |
| High | Webhooks | Outgoing webhooks for record changes |
| Medium | Email templates editor | Rich HTML email template editor in Admin UI |
| Medium | Backup scheduler | Automated scheduled backups with S3 upload |
| Low | CLI scaffolding | tspoonbase create-app for frontend boilerplate |
| Priority | Feature | Description |
|---|---|---|
| High | Multi-tenancy | Workspace/organization isolation |
| High | GraphQL API | Optional GraphQL layer alongside REST |
| High | Plugin system | Installable plugins from npm |
| Medium | RBAC | Role-based access control beyond API rules |
| Medium | Audit logging | Immutable audit trail for compliance |
| Low | Admin UI themes | Customizable Admin UI themes |
| Priority | Feature | Description |
|---|---|---|
| High | Horizontal scaling | Redis-backed session and realtime broker |
| High | Edge deployment | Cloudflare Workers / Vercel Edge runtime support |
| Medium | Database replication | Read replicas for scaling read-heavy workloads |
| Medium | Admin mobile app | React Native admin companion |
| Low | Community marketplace | Plugin and template marketplace |
| Version | Date | Highlights |
|---|---|---|
| v0.2.6 | Apr 2026 | Docs site launched, contribution templates added, Mermaid diagrams |
| v0.2.0 | Mar 2026 | AI tools, vector search, MFA/TOTP |
| v0.1.0 | Feb 2026 | Initial release with core CRUD, auth, file storage |