Skip to content
importhumanPublic

About

Library manager with agentic AI for image detection and more.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Chrollo πŸ“šβœ¨

Chrollo is a local-first library organizer with a friendly AI assistant β€” built to turn messy shelves into a clean, searchable catalog.

Demo

Features βœ…

  • πŸ“Έ Scan library images to detect books, including from spines!
  • πŸ“š Use Open Library to verify details and fetch ISBNs/covers
  • πŸ“ Review draft results before saving
  • 🧹 Bulk edit metadata like status, tags, and genres
  • πŸ’¬ Chat with the assistant about your library and updates
  • πŸ”Œ Stay model-agnostic via LiteLLM
  • ☁️ Switch between cloud or local models via env vars

Quick start πŸš€

  1. Install dependencies:
make install
  1. Initialize the local SQLite database:
make db-init
  1. Set up your environment file (copy .env.example to .env and fill in required values; see Configuration for details).

  2. Run backend + frontend together (local preview only):

make prod

Docker alternative:

make compose-prod

Backend runs at http://localhost:8000 and frontend at http://localhost:4173.

Auth modes πŸ”

The backend is the source of truth for auth mode and the frontend reads it from /api/config on startup.

  • AUTH_MODE=disabled (default): no login/signup UI, a local user/session is bootstrapped on /api/auth/me, and PASSWORD_PEPPER is not required.
  • AUTH_MODE=enabled + AUTH_VERIFICATION_REQUIRED=false: signup/login immediately authenticate and verification is skipped; PASSWORD_PEPPER is required.
  • AUTH_MODE=enabled + AUTH_VERIFICATION_REQUIRED=true: signup returns a verification token response and login requires verified users.

Configuration βš™οΈ

See .env.example for the full list. Common knobs:

  • LLM_API_KEY (required unless LOCAL_LLM_URL is set)
  • LOCAL_LLM_URL (optional; set to use a local LLM instead of LLM_API_KEY. If set, ignores LLM_API_KEY.)
  • PASSWORD_PEPPER (required when AUTH_MODE=enabled)
  • AUTH_MODE (optional; disabled or enabled, defaults to disabled)
  • AUTH_VERIFICATION_REQUIRED (optional; true or false, defaults to false)
  • ASSISTANT_MODEL (optional; defaults to gemini/gemini-3-flash-preview)
  • IMAGE_MODEL (optional; overrides assistant model for detection)
  • IMAGE_MODEL_KEY (optional; overrides API key for detection)
  • LOG_LEVEL (optional; defaults to INFO)
  • APP_ENV (optional; influences secure cookie defaults)
  • SECURE_COOKIES (optional; defaults to false, enable when serving over HTTPS)
  • VITE_PROXY_TARGET (required for docker compose; set to http://backend:8000, defaults to http://localhost:8000 for non-docker runs)
  • DB_PATH, UPLOADS_DIR, CONVERSATIONS_DIR, COVERS_DIR (optional; filesystem paths)
  • FRONTEND_BASE_URL, ALLOWED_TOOLS (optional)
  • SESSION_TTL_SECONDS, VERIFICATION_TTL_SECONDS, RESET_TTL_SECONDS, CONVERSATION_TTL_SECONDS (optional)

⚠️ Passwords are hashed server-side with Argon2 + per-user salt + a server-side pepper, but they are sent as plaintext in auth requests. Run Chrollo over HTTPS or only on trusted networks.

Development πŸ§ͺ

Local dev (two terminals):

make backend-dev
make frontend-dev

Alternatively, single command:

make dev

Or, Docker:

make compose-dev

Dev mode also integrates the Agentation UI for page reviews.

Limitations / WIP πŸ§ͺ

  • Server deployment is not supported yet: frontend-prod runs a local Vite preview and relies on Vite proxying for /api and /covers (no reverse proxy is configured).
  • Verification tokens are surfaced in API responses instead of email delivery.
  • Logout UI is not implemented; sessions are server-managed.
  • Email delivery, password reset UX, and richer assistant tools remain unfinished.
  • Filter/sort in library are non-functional currently.
  • Password reset/change APIs present but not integrated.

Models tested for image detection

  • gemini/gemini-3-flash-preview
  • qwen3-vl:235b-cloud (via ollama)

About

Library manager with agentic AI for image detection and more.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages