Skip to content

2026Licence MIT

My Bibi

A self-hosted private chat and journal app.

Open source. Self-hosted.

Problem

My Bibi keeps private chat and journal writing on the user's own hardware. No content leaves the host.

System study

My Bibi runs entirely on the user's own hardware with a single docker compose up. A Next.js PWA and a FastAPI backend work with local Ollama models running Llama 3.2 3B, and with SQLite FTS5 search over a markdown vault. Each user's journal is encrypted at rest, and no content leaves the host.

My Bibi local systemEverything runs on the user's own hardware, started with Docker Compose: a Next.js PWA, a FastAPI backend, local Ollama models running Llama 3.2 3B, SQLite with FTS5 full-text search over a markdown vault, and each user's journal, encrypted at rest. No content leaves the host. Dashed lines relate components without showing message order.user's own hardwareDocker ComposeNext.js PWAFastAPIOllamaLlama 3.2 3BSQLiteFTS5 searchmarkdown vaultjournalencrypted at restno content leaves the hostDashed lines relate components; they donot show message order.
Fig. 1. My Bibi's components, all on the user's own hardware.

What was built

  1. A chat and journal application that runs entirely on the user's own hardware with a single docker compose up.

  2. Local Ollama models (Llama 3.2 3B), with graceful fallback when the model is offline.

  3. Each user's journal encrypted at rest with a key derived from that user's password.

  4. Full-text search over messages and memories with SQLite FTS5 against a markdown vault.

  5. Invite-link sign-in with bcrypt and JWT, delivered as a PWA.

Architecture

Frontend
Next.js 14 with TypeScript, Tailwind CSS and shadcn/ui.
Backend
FastAPI on Python 3.11.
Storage
SQLite with FTS5, and a markdown vault.
Model
Ollama runs Llama 3.2 3B on the host.
Packaging
Docker Compose. One docker compose up starts the app.

Key decisions

  1. Local Ollama models, so no content leaves the host.

  2. Encryption at rest with a per-user key derived from the user's password.

  3. Full-text search with SQLite FTS5.

Screenshots

My Bibi chat showing test messages with link previews and reactions, beside the app's navigation menu.
Chat
My Bibi Memory Garden showing an empty garden with its memory search box on a test account, beside the app's navigation menu.
Memory Garden

Technology

  • Next.js 14
  • TypeScript
  • Tailwind CSS
  • shadcn/ui
  • FastAPI (Python 3.11)
  • SQLite with FTS5
  • markdown vault
  • Ollama (Llama 3.2 3B)
  • bcrypt
  • JWT
  • invite-link auth
  • Docker Compose
  • PWA

Limitations and status

Open source under the MIT licence. It runs only where it is self-hosted, so there is no public demo.

Screens show sample data only.