Local-first HTTP gateway for second-brain memory storage and retrieval.
- Text memory capture and retrieval over REST.
- Server-side project/tag filtering in recall/recent APIs.
- Project index endpoint (
/api/projects). - Secret-pattern guard in
POST /api/rememberwith explicit override (force=true).
GET /healthGET /POST /api/rememberPOST /api/recallGET /api/recentGET /api/projectsPOST /api/forget
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
cp .env.example .env
.venv/bin/uvicorn app:app --host 0.0.0.0 --port 8088DB_HOSTDB_PORTDB_NAMEDB_USERDB_PASSWORDBRAIN_HOST(for systemd service command expansion)BRAIN_PORT(for systemd service command expansion)
An example user service file is included at:
deploy/systemd/second-brain-gateway.service
- Keep this gateway on intranet/VPN unless you add auth and TLS at a reverse proxy.
- Secret-pattern blocking is best-effort and intentionally conservative.