Skip to content
leotrax3dPublic

About

Local-first learning harness: flashcards, mind maps and more on top of the AI agent you already have.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

116 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mnemo

A learning app for the AI agent you already have.

Mnemo is an open-source, self-hosted learning harness. Drop in a PDF, a photo of your notes or a link, ask your agent for flashcards, a mind map or a study sheet, and Mnemo turns the result into real, persistent learning tools: flashcards with spaced repetition (FSRS), a vocabulary trainer, mind maps, study sheets, quizzes and step-by-step animations. You can edit them, review them on your phone and keep them as plain files on your own disk.

Chat on the left, the mind map the agent just made on the right

Status: v0.1 (alpha). The main flow works end to end; expect rough edges. See docs/STATUS.md.

Reviewing flashcards on a phone: tap to reveal, swipe right for Got it, left for Again

Bring your own agent

Mnemo does not ship a model, run a cloud or ask you for an account. It drives the agents you already have:

  • Claude Code: your locally installed, already logged-in claude CLI
  • Codex: your locally installed, already logged-in codex CLI
  • Ollama: any local model with tool support
  • API keys (optional): Anthropic or OpenAI keys you enter yourself, stored only on your machine

Mnemo never handles or proxies your subscription logins. The agent never draws UI either: it creates and edits compact, schema-validated learning objects through MCP tools, and Mnemo renders them. That keeps token use low and the interface consistent. Setup per agent: docs/providers/.

Install

One line, no admin rights (installs Node.js 22 if needed, adds a shortcut and starts Mnemo; it shows the plan and asks first):

# Windows (PowerShell)
irm https://raw.githubusercontent.com/leotrax3d/mnemo/main/install/install.ps1 | iex
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/leotrax3d/mnemo/main/install/install.sh | sh

A setup wizard helps you pick a data folder, connect an agent, and create your first workspace. Run mnemo doctor to check the installation. Use mnemo uninstall to remove the app and keep your data.

With Node.js 22+ already installed:

npx mnemo-app --open           # try it
npm i -g mnemo-app && mnemo    # or install the `mnemo` command

Mnemo starts at https://127.0.0.1:7443 and keeps its data in ~/Documents/Mnemo Data. Approve its dedicated local certificate once with mnemo trust-local-https. See mnemo --help for ports and data folder options.

Home server. The one-command installer runs Mnemo with managed HTTPS. Home-server setup

Phone and other computers. Connect to the HTTPS homeserver address and sign in with a password or pairing code. Remote access

What you can do

Add material Drop PDFs (scans are transcribed), photos of notes or boards, Word/OneNote exports, web links, YouTube videos, or paste long text. Import Anki decks (with their schedule) and Notion exports.
Make learning tools Flashcards (basic, reversed, cloze), vocabulary lists, mind maps, study sheets with math and diagrams, quizzes, step-by-step animations. Ask in plain words or use the chips.
Learn Spaced repetition with FSRS on desktop (keyboard) and phone (swipe), a tutor that explains a missed card, vocabulary training in both directions, quizzes, streaks and a 12-week heatmap.
Prepare for exams A study plan that paces new cards until the exam date, timed exam simulations with a grade estimate, Feynman mode (explain it, get gaps and misconceptions) and "often confused with" hints.
Keep it Every object is a JSON file you can edit, sync (Syncthing, Nextcloud) or back up. Export decks and vocab to Anki (.apkg), and sheets, card sheets, mind maps and quizzes to PDF.

A deck with due labels and the Export menu

The user guide walks through all of it.

Principles

  • Local-first. Your data lives in a folder you choose, as readable JSON and Markdown files.
  • No telemetry. No analytics, no remote fonts, no calls to project servers.
  • Desktop and phone. An installable PWA; review cards on your phone over your own VPN.

Develop

Requirements: Node.js 22 or newer and pnpm (npm i -g pnpm, or corepack enable).

pnpm install
pnpm dev            # server on 127.0.0.1:4321, web UI on http://127.0.0.1:5173
pnpm check          # typecheck + lint + format check + unit tests
pnpm e2e            # Playwright, mocked API (run `pnpm --filter @mnemo/web exec playwright install chromium` once)
pnpm e2e:smoke      # main flow on the real server with a scripted fake agent
pnpm start          # production build on one port, like the installed app
pnpm release:build  # npm package + tarball in release/

Layout:

apps/server         REST + WebSocket API, storage, agent sessions, ingest jobs, remote access
apps/web            React PWA (desktop + phone)
packages/core       schemas, types, FSRS wrapper, shared utils
packages/mcp        mnemo-mcp stdio server
packages/skills     agent skills + generators for Claude Code / Codex / Ollama
packages/providers  Claude Code / Codex / Ollama / API adapters
packages/ingest     PDF, image, web and YouTube extraction; Anki and Notion import
packages/export     Anki .apkg and PDF export
bin/mnemo.mjs       the `mnemo` command

See docs/ARCHITECTURE.md, CONTRIBUTING.md and docs/DESIGN.md.

License

MIT. The bundled Geist font is under the SIL Open Font License (packages/export/fonts/OFL.txt).

About

Local-first learning harness: flashcards, mind maps and more on top of the AI agent you already have.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages