Initial project scaffold: Open Brain self-hosted knowledge infrastructure

Node.js/TypeScript server with MCP endpoint for AI assistant integration,
Discord bot for thought capture and slash commands, PostgreSQL + pgvector
for semantic search, and OpenRouter for embeddings/metadata extraction.
Dockerized for deployment behind Caddy.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
YOUNG
2026-03-06 14:53:41 -06:00
commit e90ea1591b
16 changed files with 3332 additions and 0 deletions

15
.env.example Normal file
View File

@@ -0,0 +1,15 @@
# Database (host.docker.internal = host machine from inside Docker)
DATABASE_URL=postgresql://brain_user:password@host.docker.internal:5432/brain
# OpenRouter (AI gateway for embeddings + metadata extraction)
OPENROUTER_API_KEY=sk-or-...
# Discord bot
DISCORD_BOT_TOKEN=
DISCORD_CAPTURE_CHANNEL_ID=
# MCP endpoint authentication (generate with: openssl rand -hex 32)
MCP_ACCESS_KEY=
# Server port
PORT=3100