English · Français
Your PDF, exactly as its author designed it but with a living AI reading companion beside it that watches how you learn, answers in context, and speaks up only when it actually helps.
Why · Features · Install · Architecture · Editions · Discussions · Contributing
| 📄 Zero reconstruction | 🧠 Silent cognitive engine | 🔒 Nothing leaves your machine |
| The PDF is rendered as-is, full fidelity, free scroll. No chunking, no re-layout, no gates. | Six hidden gauges, adaptive questions, flashcards and session memory run behind the page. | Local inference via Ollama. No account, no telemetry, no cloud, no subscription. |
Select a passage, add it as context, ask. The answer comes from Gemma 4 running on the laptop through Ollama; the waiting time is sped up, as the badge on screen says.
- 2026-11-18 · v0.2.7 — Security and maintenance: react-router 7 and fresher dependencies (PDF engine, FastAPI, uvicorn, websockets 17).
- 2026-10-27 · v0.2.5 — Clikoda proofreads your flashcards once a week (nothing changes without you); the quiz no longer waits between questions.
- 2026-10-26 · v0.2.4 — Clikoda says she is an AI from her first message; third-party licenses in Settings ▸ Help ▸ About.
- 2026-10-23 · v0.2.3 — Clikoda gets a face (the sperm whale of the new logo) and the app its own icon.
- 2026-10-21 · v0.2.0 — Choose Clikoda's model; economy mode for 4 GB laptops with
qwen3:1.7b; search, bookmarks and notes in the reader. - 2026-10-12 · v0.1.0 — Public beta.
Full history in the CHANGELOG.
Large Language Models have made information access almost effortless.
But effortless access is not learning.
Modern AI tools often encourage:
- passive consumption,
- instant answers,
- intellectual dependency,
- shallow understanding,
- and the illusion of competence.
Meta-Capp was built from the opposite philosophy.
Instead of replacing effort, it uses AI to structure effort intelligently.
Instead of optimizing for “fast answers”, it optimizes for:
- comprehension,
- reflection,
- retention,
- curiosity,
- and metacognitive awareness.
The goal is not to make the learner passive.
The goal is to help the learner build a stronger mind.
Meta-Capp does not try to reproduce or reconstruct the PDF. The document is displayed exactly as its author designed it — full pages, free scrolling, no locks, no gates.
What changes is everything around the document:
|
The whole PDF, rendered progressively page by page, at full fidelity. You read at your own pace. |
A small animated bubble floats over the PDF. It has eyes. It reads when you read, thinks when you ask, sleeps when the local model is offline. Click it, ask anything: the answer is grounded in the exact page visible at the moment you press Send — even if you scroll away while it thinks. |
|
Behind the scenes, the full metacognitive system keeps running: sessions, cognitive gauges, adaptive questions, evaluated answers, automatic flashcards, end-of-session reflection. The gauges are no longer displayed during reading — they are computed, recorded, and fed to the AI instead of being shoved in your face. |
The assistant notices when you linger on a page, keep coming back to it, ask repeated questions about the same passage, or face a math-heavy wall. It then decides — via the LLM — whether to offer help, ask a pedagogical question, suggest a pause, or offer to rephrase the page. Cooldowns keep it from being chatty. A discret mode silences it entirely; a coach mode makes it bolder. |
Educational PDFs are cognitively dead interfaces.
- Traditional readers display pages.
- Traditional chatbots answer questions without context.
- Traditional RAG pipelines chunk text and lose the document.
None of them understand learners.
Learning is an active cognitive process involving attention, memory, uncertainty, reflection, confusion, reconstruction, and effort.
Meta-Capp was designed to restore these mechanisms in the age of AI — without getting between the reader and the document.
Most AI educational systems try to remove friction.
Meta-Capp introduces productive friction — but never imposed friction.
Earlier prototypes locked page turns behind questions. This version trusts the reader: scrolling is free, and the system earns attention instead of demanding it. The assistant:
- answers from the visible page first, general knowledge second,
- asks real pedagogical questions whose answers are evaluated,
- converts good exchanges into flashcards,
- updates a cognitive profile from everything you do,
- and closes each session with metacognitive reflection.
AI is not used to replace thinking. AI is used to improve thinking.
Meta-Capp runs entirely locally using Gemma 4 through Ollama.
| ❌ No subscriptions | ❌ No cloud dependency | ❌ No educational surveillance | ❌ No data harvesting |
|---|
Educational data stays on the learner's machine: mistakes, doubts, weaknesses, confusion, curiosity, reflection. These should not become cloud products.
If Ollama is offline, nothing breaks: the reader stays fully usable and the assistant visibly falls asleep.
Access to education should not depend on a fibre line, a data plan or a cloud subscription. Installing Meta-Capp takes one download (which can be copied from one machine to another) and after that it needs no connection at all: in a remote village, on a boat, in a region where the network comes and goes, in a classroom without Wi-Fi.
And where teachers are scarce, a patient companion that explains the page, asks questions back and turns what you learned into flashcards can make a real difference. Not to replace teachers but to stand beside learners who have none at hand.
What running the AI locally brings:
- No connection needed — no outage, no rate limit, no network round trip; the app works the same on a plane as at home.
- Free to use — no cost per question, no subscription, no quota.
- Private by construction — nothing to send, so nothing to leak, sell or train on. No third party processes the learner's data.
- Runs on modest hardware — from a 4 GB laptop (tiny model, economy mode) to a workstation, with or without a GPU.
- No lock-in — open-weight models and open source code: it keeps working whatever a provider decides about its prices, terms or service.
- Auditable — everything the assistant does is in this repository, and everything it stores is in one SQLite file the learner can export or erase.
Meta-Capp is designed in line with the European AI Act (Regulation (EU) 2024/1689):
- Transparency — Clikoda introduces itself as an AI, and the app says it can be wrong. Nobody is led to believe they are talking to a human.
- No emotion recognition, no biometrics — the gauges are inferred from reading behaviour (time on a page, questions, answers). No camera, no microphone, no biometric data.
- The learner stays in charge — no grade, no admission or orientation decision. Every intervention can be dismissed, the discret mode silences Clikoda entirely, and a pause freezes everything.
- Open and local — MIT source code, local models, data that never leaves the machine.
This describes how the software is designed; it is not a legal certification.
| Capability | Description |
|---|---|
| Free-Scroll PDF Reader | Full document, progressive high-res page rendering, no progression locks |
| Embodied Assistant Bubble | Animated, draggable Canvas character with idle / reading / thinking / answering / intervention / sleeping states |
| Submit-Time Context Capture | Every question is answered against a snapshot of the page visible at the exact moment you press Send |
| Autonomous Interventions | LLM-decided help offers, questions, pause suggestions, page rephrasings — with global and per-page cooldowns |
| Assistant Modes | discret (never speaks first), normal, coach (intervenes more) — persisted per user |
| Adaptive Questioning | Full question → answer → evaluation → feedback → flashcard pipeline, non-blocking |
| Quick Actions on Your Selection | Rephrase, Recap, Curiosity and Quiz me work on the passages you attached as context, or on the page |
| Quiz Without Waiting | Written answers are graded by Clikoda in the background; the next question is there at once, the corrections wait in the summary |
| Weekly Flashcard Check | Once a week Clikoda proofreads your cards: a wrong answer, an ambiguous question, a card that only makes sense next to the PDF. Nothing changes without you |
| Hidden Cognitive Gauges | Attention, comprehension, curiosity, retention, creativity, metacognition — computed and recorded, never nagging |
| Session Memory | Pages seen, dwell time, revisits, questions per page, detected difficulties |
| Manual Flashcards | One click turns a useful assistant answer into a flashcard |
| Enriched Session Summary | End-of-session synthesis includes the pages where you asked for the most help |
| Chapter Awareness | Chapter index computed (TOC or font-size heuristics) as metadata for the AI and the nav bar |
| Source-Code Reading | Import a source file: it is paginated into readable code blocks with the same companion on top |
| Bilingual (FR / EN) | UI and LLM prompt language switch together, persisted across launches |
| Fully Local AI | Gemma 4 via Ollama, graceful degradation when offline |
Import → Airlock → Flash review → Free reading → Challenge → Synthesis
- Import a PDF. No chapter selection — the whole document is the session.
- Concentration airlock. A 30-second slowdown ritual with an AI-generated curiosity hook.
- Flash review. Up to 5 due flashcards from this document.
- Read freely. The full PDF, scrollable, with Clikoda floating above it.
- Ask anything. Click the bubble, type, press Enter. The answer cites the page you were on when you asked.
- Get challenged. Sometimes Clikoda asks you a question. Answer it (it is evaluated, it feeds your profile, it may become a flashcard) — or close it.
- End the session. Synthesis, metacognitive questions, profile update.
|
Before reading — a 30-second airlock, then a quick review of a flashcard from a previous session. |
Quiz me — a question generated from the page, a written answer, and Clikoda's feedback. |
|
Contextual Answering
Answers user questions from a |
Intervention Decisions
Receives observed signals (dwell time, revisits, low attention, math density, repeated questions) and returns a structured decision:
|
|
Educational Generation Adaptive questions, answer evaluation with metacognitive signals, rephrasings, flashcards, curiosity hooks. |
Metacognitive Analysis End-of-session summaries, reflection questions, and profile updates. |
Six gauges evolve during every session and consolidate into a long-term profile: context comprehension, creativity, retention, curiosity, attention, metacognition — plus per-subject levels detected from your documents.
During reading they are invisible. They still drive everything: question difficulty, intervention thresholds, session summaries, and the assistant's tone.
Meta-Capp runs on macOS, Windows and Linux, with or without a GPU.
- Download the archive for your system from the latest release (about 30 to 45 MB).
- Open it. The builds are not signed yet, so the first launch needs one extra step:
- macOS — the first double-click is refused. Open System Settings ▸ Privacy &
Security, scroll to the message about Meta-Capp and click Open Anyway (once).
If macOS instead says the app is damaged, the download lost its signature in
transit:
xattr -dr com.apple.quarantine /Applications/Meta-Capp.apprestores it. - Windows — SmartScreen shows Windows protected your PC: More info ▸ Run anyway.
- Linux — run
./Meta-Capp/Meta-Cappfrom a terminal and keep it open; the app opens in your browser.
- macOS — the first double-click is refused. Open System Settings ▸ Privacy &
Security, scroll to the message about Meta-Capp and click Open Anyway (once).
If macOS instead says the app is damaged, the download lost its signature in
transit:
- For Clikoda, install Ollama and run
ollama pull gemma4:e4b(9.6 GB; see Pull a model for lighter machines).
Check the archive against SHA256SUMS.txt (shasum -a 256 <file> / certutil -hashfile <file> SHA256).
| App alone | With Clikoda (the assistant) | |
|---|---|---|
| OS | macOS (Apple Silicon or Intel), Windows 10/11 x64, Linux x86_64 (glibc 2.35+) | same |
| RAM | any recent machine | 12 GB or more for the standard model; 8 GB runs the light one, 4 GB the tiny one in economy mode (see below) |
| Disk | ~400 MB | +1.4 to 20 GB depending on the model, plus 0.6 GB for the optional embeddinggemma |
| GPU | none | optional — Apple Silicon (Metal), NVIDIA (CUDA), some AMD (ROCm); CPU-only works, slowly |
Clikoda is optional: without Ollama the reader, flashcards and stats still work, and the assistant visibly falls asleep.
Slow machines are handled, not just tolerated. Generation time budgets are derived from Clikoda's measured speed on your machine (a short calibration call at startup, then every answer): a CPU-only laptop gets slow answers instead of timeouts. Below ~2 tokens/s (8× slower than the reference Apple Silicon machine), budgets stop stretching and long answers give up rather than leave the screen waiting indefinitely — down to ~0.9 token/s in economy mode, never more than a quarter of an hour per answer. If the model does not fit in memory, the reader says so plainly.
Economy mode (Settings ▸ Clikoda) is what makes a 4 GB laptop usable: one context for every request so the model is never reloaded, compact prompts that fit in it, no background work (document summaries, language episodes), no spontaneous help, lexical search only, the model unloaded after five idle minutes — and the reader announces the wait ("answer within N min at most") with a Cancel button. "Automatic" turns it on with the tiny model or below 8 GB of RAM; you can force it either way.
Each release ships one
archive per platform, with a SHA256SUMS.txt:
| Platform | Archive | Notes |
|---|---|---|
| Apple Silicon Mac | macos-arm64.zip |
move Meta-Capp.app to Applications, then open it |
| Intel Mac | macos-x86_64.zip |
built on GitHub's last Intel runner, available until August 2027 |
| Windows 10/11 x64 | windows.zip |
keep the unzipped folder whole; uses WebView2 (built into Windows 11 and up-to-date Windows 10) |
| Linux x86_64 | linux-x86_64.tar.gz |
run ./Meta-Capp/Meta-Capp from a terminal and keep it open; opens in your browser |
Clikoda runs on the gemma4 family — plus one tiny model for 4 GB machines — and which
one is a setting, not a hard-coded name.
« Automatic » (the default) picks the most capable model you have installed that your
machine's memory can actually load and that stays fluent on it: a model whose writing
speed, measured at startup, falls below 15 tokens/s is set aside for the next best one
(for 14 days, on this machine; any later measure above the threshold brings it back).
Settings ▸ Clikoda shows what it chose, why — including which model was set aside
and at what speed — and the ollama pull command for anything you are missing. An
explicit choice is always honoured. The table lives in
nwol/config/settings.py:LLM_MODELS.
| model | download | RAM needed | for |
|---|---|---|---|
qwen3:1.7b |
1.4 GB | 4 GB | a 4 GB laptop: slower, more mistakes, text only (no page image), economy mode on |
gemma4:e2b |
7.2 GB | 8 GB | a light machine |
gemma4:e4b |
9.6 GB | 12 GB | the standard choice |
gemma4:12b |
8.0 GB | 12 GB | better answers, much slower (~12 tokens/s against ~30 for e4b on a 16 GB Apple M4) |
gemma4:26b / gemma4:31b |
18–20 GB | 32 GB | a workstation |
ollama pull gemma4:e4b # or e2b on a lighter machine, qwen3:1.7b on a 4 GB one
ollama pull embeddinggemma # optional (~600 MB): semantic search inside the document you readWithout
embeddinggemma, Clikoda's search inside the current document stays lexical (BM25).
Requires Python 3.11 and Node 20+ (to build the web UI).
git clone https://github.com/cyyyp100/meta-capp.git
cd meta-capp
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
cd frontend && npm install && cd ..python main.py # native app window (builds the frontend if needed)
python main.py path/to/document.pdf # import and open a document directly
python main.py --browser # open in the default browser instead of a window
python main.py --debug # DEBUG loggingNo native window? It opens in your browser. The window needs a native web
engine: WebKit (macOS), WebView2 (Windows), GTK or Qt (Linux). When none is
usable — or with --browser — Meta-Capp serves the same app, behind the same
guards, in your default browser. To quit, pick Quit Meta-Capp in the profile
menu, or just close the tab: the app stops by itself three minutes after the last
tab closes. Importing a document then uploads a copy into the data folder,
deleted along with the document. Launching again while it runs reopens it.
Linux: getting a native window
Pick one, inside Meta-Capp's Python environment.
GTK (GNOME, Xfce…) needs system libraries first:
# Debian / Ubuntu
sudo apt install libgirepository1.0-dev libcairo2-dev pkg-config python3-dev gir1.2-webkit2-4.1
# Fedora
sudo dnf install gobject-introspection-devel cairo-gobject-devel pkgconf python3-devel webkit2gtk4.1
# Arch
sudo pacman -S gobject-introspection cairo pkgconf webkit2gtk-4.1
pip install "pywebview[gtk]"Qt (KDE) installs with pip alone (~200 MB):
pip install "pywebview[qt]"
sudo apt install libxcb-cursor0 # Debian/Ubuntu, if Qt cannot load the "xcb" pluginPackage names vary across distributions: the reference is
pywebview's installation guide.
If the window still cannot open, Meta-Capp falls back to the browser and logs why
(Fenêtre native indisponible : …).
Troubleshooting
- Clikoda stays asleep — Ollama is not running, or no model is installed. Settings ▸
Clikoda says which of the two it is, names the model it would use and gives the
ollama pullcommand to copy. - Clikoda is very slow —
ollama psshows where the model runs (PROCESSOR: GPU, CPU or a split). On CPU this is expected: the reader announces the wait and offers Cancel, and the log prints the measured speed at startup (Débit de Clikoda sur cette machine). A lighter model, economy mode and closing memory-hungry apps help. - "Clikoda does not fit in this computer's memory" — the message says what the model
needs; free some RAM or pick a lighter model in Settings ▸ Clikoda (
qwen3:1.7bruns from 4 GB). The rest of the app keeps working. - "Le port 8756 est occupé…" — another program, or an instance that cannot be reopened (an older version), holds the port: close it or reboot.
- Behind a proxy (school or company network) — nothing to configure: Meta-Capp never sends its local traffic (the app, Ollama) through the system proxy.
- Logs — Settings → Help → Report a problem exports them; they live in
logs/inside the data folder (see Your Data).
For iteration, backend and frontend can run standalone:
cd nwol && python -m server.main # FastAPI on 127.0.0.1:8756
cd frontend && npm run dev # Vite on :5173, proxies /apiPackaging a desktop binary
pip install -r requirements-build.txt # pinned PyInstaller
cd frontend && npm run build && cd .. # build the UI first
pyinstaller desktop/metacapp.spec --noconfirm # output in dist_app/PyInstaller builds for the architecture of the machine it runs on: the release
workflow builds on Apple Silicon, Intel macOS, Windows and Ubuntu 22.04 runners,
and smoke-tests each binary. On macOS, ./scripts/build_app.sh does both steps,
smoke-tests the frozen binary and installs it (--desktop puts it on the
Desktop, --no-install just builds).
| Layer | Technology | Role |
|---|---|---|
| PDF Rendering | pypdfium2 (PDFium) | Page rendering, page text, chapter detection |
| Semantic Intelligence | Gemma 4 via Ollama | Contextual answers, interventions, educational reasoning |
| Cognitive Engine | Custom metacognitive system | Gauges, profile, reflection, session memory |
| UI | FastAPI + React (Vite) in pywebview | Reader, floating assistant, stats, flashcards, languages |
| Persistence | SQLite | Documents, sessions, questions, answers, gauges, flashcards, preferences |
Shape of the codebase — UI-agnostic business logic lives in nwol/services/; the FastAPI app and its routers in nwol/server/; the reader is a WebSocket stream; the desktop shell is desktop/pywebview_main.py. The conventions that keep it that way are documented in CONTRIBUTING.md.
meta-capp/
├── main.py # entry point — launches the desktop app
├── desktop/ # native shell (pywebview) + PyInstaller spec
├── frontend/ # React 18 + Vite + TypeScript UI
└── nwol/
├── services/ # ← business logic: the single home for behaviour
├── server/ # FastAPI app factory + routers mounted under /api
├── llm/ # Ollama client, prompts, JSON schemas
├── metacog/ # gauges, long-term profile, reflection
├── db/ # SQLite connection + versioned migrations
├── config/ # settings — the source of truth for every threshold
└── tests/ # backend + services suites
cd nwol && python -m pytest # backend suite
cd nwol && ruff check . # lint
cd frontend && npm run build && npx vitest run # type-check, bundle, UI tests
python -m compileall nwol # static check
python desktop/pywebview_main.py --server-only # headless server smoke testCI runs the backend suite, the frontend build and the security scans (pip-audit, npm audit, secret scanning) on every push and pull request.
This repository is the complete local edition, and it is free forever under the MIT license. It is not a crippled demo: the reader, the assistant, the metacognitive engine, the gauges, the flashcards and the session memory are all here, all working, all offline.
Meta-Capp Pro is a separate, hosted edition for people who want the same pedagogy with a more capable AI — and without owning a GPU.
| Local — this repo | Pro — hosted | |
|---|---|---|
| Price | Free, MIT | Subscription |
| Setup | Install Ollama, pull a model | Nothing to install |
| AI model | On your machine (the gemma4 family, or a tiny model on 4 GB — your choice) | More capable hosted models |
| Answers and corrections on hard material | Bounded by your hardware | Deeper and more reliable |
| Language episodes (story, lesson, written correction) | Written on your machine, a few minutes each, in the background | Generated much faster |
| Works with zero GPU / low-end laptop | Degraded | ✅ |
| Same reader, cognitive engine, gauges, flashcards | ✅ | ✅ |
| Works offline | ✅ | ❌ Needs a connection |
| Your data stays local | ✅ Always | Processing is remote |
Interested in Pro or early access? Open a discussion — that is the fastest way to reach the maintainer.
Contributions to this repository stay in this repository, under MIT. Anything that talks to a remote service, verifies a subscription, or gates a feature behind a plan does not belong here — see CONTRIBUTING.md.
Everything Meta-Capp knows about you sits in one SQLite file on your own disk —
data/nwol.db when running from source, the OS application-data directory when packaged
(~/Library/Application Support/Meta-Capp/ on macOS, %APPDATA%\Meta-Capp\ on Windows,
~/.local/share/Meta-Capp/ on Linux).
- No telemetry, no tracking, no automatic crash reports.
- No account, no activation, no key to enter.
- The application server listens on
127.0.0.1and refuses anything coming from elsewhere. Out of the box, the only connection the app opens is to Ollama, on your own machine. - One opt-in exception: the update check. Off by default. Once you enable it (Settings ▸ Updates), Check now sends a single request to GitHub's public API to read the latest version number — no identifier, no parameter; like any web request, GitHub sees your IP address and the app version. Nothing is downloaded or installed automatically.
- Portability: export everything in one click (Settings ▸ Data ▸ Export my data) — it is a standard SQLite file you can open yourself.
- Erasure: an Erase everything button wipes profile, questions, flashcards, documents, logs and the safety copy kept when a backup is restored. Deleting the application data folder removes the rest. Nothing survives anywhere else.
- Logs stay on your disk until you export them (Report a problem). They hold
file names and error traces, never the text of your documents; your home folder
shows as
~. Read them before attaching them to a public issue.
The full privacy policy is in PRIVACY.md, also linked from Settings ▸ Help ▸ About, next to the third-party licenses.
Issues, ideas and pull requests are welcome — especially around pedagogy, accessibility, and PDF edge cases.
- Questions and ideas go to Discussions: Q&A for help, Ideas for features, where others can upvote them.
- Tried it on a real PDF? The Beta feedback form takes a few minutes and shapes the next releases.
- Read CONTRIBUTING.md for setup, conventions and the review checklist. Every pull request is reviewed and merged by the maintainer.
- By participating you agree to the Code of Conduct.
- Found a vulnerability? Please follow SECURITY.md rather than opening a public issue.
If Meta-Capp resonates with you, star the repo — it is the cheapest way to help it reach the learners it was built for.
Meta-Capp is built around one core idea:
The future of educational AI should not be instant answers, automated thinking, and dependency loops. It should help humans reason better, remember longer, reflect deeper, and remain intellectually active.
Meta-Capp explores what educational software becomes when AI is used not to replace cognition, but to strengthen it — and when the AI itself becomes a discreet, embodied presence beside the document instead of a wall between the reader and the page.
Released under the MIT License — © 2026 Cyprien Vial.
Third-party components keep their own licenses, all free of charge and permissive
(MIT, BSD, Apache-2.0, ISC, PSF, SIL OFL for the fonts); the one weak-copyleft component
is certifi (MPL-2.0, unmodified). The PDF engine is pypdfium2 (Apache-2.0 or
BSD-3-Clause, wrapping PDFium, BSD-3-Clause) rather than PyMuPDF, which is AGPL-3.0 and
would otherwise force that licence onto any closed-source derivative. Every release
embeds THIRD_PARTY_NOTICES.txt, generated by scripts/third_party_notices.py, which
CI also runs to refuse any copyleft or unlicensed dependency.
The language models are not part of Meta-Capp: Ollama downloads them on your machine under their own terms (Gemma 4: Apache-2.0; EmbeddingGemma: Gemma Terms of Use).


