Skip to main content

SQLite-based document database for vibe coders

Project description

VibeDB

SQLite-based document database for rapid prototyping

VibeDB combines SQLite's simplicity with MongoDB's document flexibility. Zero config, zero dependencies, instant start.

Installation

# Core only (zero dependencies)
pip install vibedb

# With Studio UI (includes Flask)
pip install vibedb[all]

Quick Start (30 seconds)

from vibedb import VibeDB, Q

# Create database
db = VibeDB("app.db")
users = db.collection("users")

# Insert
user_id = users.insert({"name": "Alice", "email": "alice@example.com", "age": 28})

# Query
results = users.find(Q.gte("age", 25) & Q.contains("email", "@example.com"))

# Update
users.update(user_id, {"age": 29})

# Index for performance
users.create_index(["email"], unique=True)

# Launch Studio UI
db.studio(port=5000)

For AI Agents

If you're an AI agent helping users with VibeDB, use these skills:

  • /vibedb-quickstart - Start here: basic CRUD, queries, common operations
  • /vibedb-indexing - Performance: create indexes, auto-suggestions, optimization
  • /vibedb-patterns - Production patterns: caching, sessions, job queues, etc.

Skills are in skills/ folder with progressive disclosure (SKILL.md → reference.md → examples.md).

Features

  • Zero Config: Works immediately after install
  • Document Freedom: Store JSON without schemas (add validation later)
  • Dual Query Syntax: MongoDB-style dicts OR Pythonic Q builder
  • Auto-Index Hints: Suggests indexes based on slow queries
  • Studio UI: Web-based database explorer and query playground

Examples

Complete working examples in examples/:

  • quickstart.py - Todo app in 10 lines
  • blog_app.py - Blog with posts, comments, and full-text search
  • ecommerce.py - Products, orders, and inventory tracking

Documentation

  • API Reference: See skills/vibedb-quickstart/reference.md
  • Usage Examples: See skills/vibedb-quickstart/examples.md
  • Production Patterns: See skills/vibedb-patterns/SKILL.md
  • Performance Guide: See skills/vibedb-indexing/SKILL.md

Philosophy

Built for vibe coders - developers who want rapid iteration:

  • Start schema-less, validate later
  • Auto-suggest but don't force
  • Great errors with helpful hints
  • Studio UI for visual debugging

Comparison to Alternatives

Feature VibeDB MongoDB SQLite
Setup Zero config Server required File-based
Schema Optional Optional Required
Query API Dict + Builder Dict only SQL only
Web UI Built-in Separate None
Dependencies Zero Many Zero
Best For Prototyping Production Embedded

License

MIT License - see LICENSE

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vibedb-0.1.1.tar.gz (63.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vibedb-0.1.1-py3-none-any.whl (48.1 kB view details)

Uploaded Python 3

File details

Details for the file vibedb-0.1.1.tar.gz.

File metadata

  • Download URL: vibedb-0.1.1.tar.gz
  • Upload date:
  • Size: 63.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for vibedb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 60b1e2984fbe2e9f4fda12e09de78d0923eb398b7e545303d790cfc68cccd63f
MD5 f70928137629c2027dced1fa913d4b6b
BLAKE2b-256 f9c26734ce4ec6e6c131357320e652f8edd56f4b1ec223599148847a8f1804de

See more details on using hashes here.

File details

Details for the file vibedb-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: vibedb-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 48.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for vibedb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b191e93b2169f7f5d80170ba8725db2ff953b4df3dd9db14848e7f0da9dd6b67
MD5 264b0fe6ae5c6d063d0febcb1bfde586
BLAKE2b-256 ccf6d6b7941f0359e84ef03ee1b773898c48609bbadab60a8452d0e86b2362ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page