███████████ ██████████ ███████████
▒█▒▒▒▒▒▒███ ▒▒███▒▒▒▒███ ▒▒███▒▒▒▒▒███
▒ ███▒ ▒███ ▒▒███ ▒███ ▒███
███ ▒███ ▒███ ▒██████████
███ ▒███ ▒███ ▒███▒▒▒▒▒███
████ █ ▒███ ███ ▒███ ▒███
███████████ ██████████ ███████████
▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒
███████████ ██████████ ███████████
▒█▒▒▒▒▒▒███ ▒▒███▒▒▒▒███ ▒▒███▒▒▒▒▒███
▒ ███▒ ▒███ ▒▒███ ▒███ ▒███
███ ▒███ ▒███ ▒██████████
███ ▒███ ▒███ ▒███▒▒▒▒▒███
████ █ ▒███ ███ ▒███ ▒███
███████████ ██████████ ███████████
▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒
web3 database · ipfs native · encrypted
curl -fsSL https://zdb.zexvro.in/install.sh | bash
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
AES-256-GCM on every shard. your data is random bytes on IPFS. only you hold the key.
content-addressed storage with CID chains. data lives on the distributed web, not a single server.
pure node.js. no frameworks, no build step, no npm install. just a single server binary.
cosine similarity over vectors. insert, search, query — all through a simple REST API.
runs on your phone, your laptop, your raspberry pi. you own the infrastructure.
entire codebase fits in a single directory. readable, auditable, forkable.
one command installs Node 20+, Kubo IPFS, PM2, and the ZDB server.
launch IPFS and the ZDB daemon. health check confirms everything is running.
POST JSON to any collection. data is encrypted and pinned to IPFS automatically.
GET by ID or query with filters. data is fetched from IPFS and decrypted on the fly.
| GET /health | server health check |
| POST /v1/db/:col | create record |
| GET /v1/db/:col/:id | get record by ID |
| GET /v1/db/:col | list all records |
| PUT /v1/db/:col/:id | update record |
| DELETE /v1/db/:col/:id | delete record |
| POST /v1/db/:col/query | query with filters |
storage engine with CID shard chain, async record loading, and IPFS pin management.
AES-256-GCM encryption. auto-generated key, unique IV per shard, backward-compatible reads.
lightweight HTTP router with middleware pipeline. rate limiting, CORS, CSP built in.
Kubo RPC integration. pin, fetch, and verify shards over the IPFS network.
scrypt password hashing, admin sessions, API key authentication for protected routes.
Firebase-style rules for access control. define who can read, write, and query.
| zdb up | start IPFS + ZDB daemons |
| zdb up --info | start and show system info |
| zdb down | stop all services |
| zdb status | check daemon status |
| zdb info | traffic, storage, memory, peers |
| zdb logs | tail daemon logs |
| zdb install | install or update ZDB |
| PORT | server port (default: 8899) |
| IPFS_API_URL | Kubo API endpoint (default: http://localhost:5001) |
| ZDB_ENCRYPT | enable AES-256-GCM encryption (default: 1) |
| ZDB_IPFS_ONLY | read data exclusively from IPFS (default: 0) |
| ADMIN_KEY | admin API authentication key |
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄