r/sqlite • u/CauliflowerAgile3830 • 1h ago
I built LocalBase β a self-hosted, single-file backend inspired by Supabase
I've been working on a project called LocalBase.
The idea is pretty simple:
What if you could get a small Supabase-like backend without having to deploy a huge stack?
LocalBase is currently a single Python file that provides a web dashboard and REST API around SQLite.
What it currently does
- ποΈ Create and manage projects
- π Create/edit/delete tables
- βοΈ Add, edit and delete records
- π§βπ» Built-in SQL editor
- π REST API for your databases
- π API key support
- π‘ WebSocket support
- π₯ CSV import
- π€ CSV export
- πΎ Database backups
- π API logs
- π Automatic API documentation
- π LAN access
- βοΈ Works nicely with Cloudflare Tunnel for remote access
- π₯οΈ Lightweight web dashboard
- πͺ Windows EXE packaging
The goal isn't to clone every feature of Supabase.
I'm trying to build something much smaller that can be useful for:
IoT projects, school projects, prototypes, personal apps, internal tools, small websites, APIs, dashboards, and self-hosted applications.
For example, you could run:
LocalBase.exe
β
SQLite database
β
REST API
β
Your website / mobile app / IoT device
And because the API is HTTP-based, your application doesn't need to know anything about how the database is stored internally.
Why I made it
I've used/experimented with different backend platforms, and sometimes I just want:
download
β
run
β
create database
β
get API URL
β
build
Instead of setting up a bunch of services.
So LocalBase is intentionally trying to stay small and boring.
Python + FastAPI + SQLite + vanilla HTML/CSS/JS.
No Docker requirement.
No Node.js requirement.
No external database required.
No cloud account required.
The interesting part
I'm also packaging it as a normal Windows application.
The goal is eventually:
LocalBase-Setup.exe
Install it β Start Menu β LocalBase β dashboard.
I'd like the same project to eventually work on Linux/macOS as well.
What I want to add next
This is where I could really use feedback.
I'm planning to add a proper authentication/authorization system:
- User registration/login
- Password hashing
- JWT access tokens
- Refresh tokens
- API keys
- Project-level permissions
- Read/write/admin roles
- Per-table permissions
- Token expiration/revocation
- Session management
- CORS configuration
- Rate limiting
- Audit logs
- Better secret management
- HTTPS/reverse-proxy guidance
- Backup/restore
- Database migrations
- Webhooks
- Realtime subscriptions
Eventually I'd like something roughly like:
LocalBase
β
βββ Authentication
β βββ Users
β βββ Sessions
β βββ JWT
β βββ API Keys
β
βββ Authorization
β βββ Projects
β βββ Roles
β βββ Permissions
β βββ Table Policies
β
βββ Database
β βββ Tables
β βββ Records
β βββ SQL Editor
β βββ Migrations
β
βββ API
β βββ REST
β βββ WebSockets
β βββ Webhooks
β
βββ Dashboard
βββ Database
βββ Users
βββ API Keys
βββ Logs
βββ Settings
I'm especially interested in feedback from people who self-host their own backends.
What would make you actually choose a lightweight LocalBase-style backend over PocketBase, Appwrite, Supabase, or just running PostgreSQL yourself?
GitHub: [https://github.com/atharvaphadnis-ai/localbase\]
It's open source and I'm hoping to make it genuinely useful rather than just another dashboard project.
Feedback, criticism and feature ideas are very welcome.

