Skip to content
Projetos

Sobre

Self-hosted spaced repetition where every card type is a program: AI grading, FSRS-6, exam deadlines, Anki import and a full CLI for agents

IA e aprendizado de máquina

Como estes números são medidos

O que você pode fazer

  • Write kanji by hand. Draw the character with a mouse, pen or finger. A vision model reads your strokes against a description of the character and tells you what to fix. - Solve chess puzzles on a real board. Tap or drag the move. The answer is checked against the engine-verified list of mates, so any correct move counts.
  • Play chords on a piano. A new root and quality every review. Any voicing or inversion counts, because the grader compares pitch classes. Hear your chord and the right one. - Read music. A new note on the treble or bass staff every review, ledger lines and accidentals included. Answer on the keyboard or with the letter keys.
  • Trace algorithms. Tap the nodes of a generated graph in the order BFS or DFS visits them. The real traversal animates afterwards. - Place history on a timeline. Drag events between fixed anchors. Graded by order and by how many years each one is off.
  • Prepare for an exam. Put the course in a deck, set the exam date as its deadline and study every day. No card is scheduled after the deadline, cards you already know still get one last look before it, and Agenda plus Stats forecast what's left until exam day.

Crescimento medido de estrelas

em 24 h
+2
em 7 dias
+2
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

εtude

Mentioned in Awesome FSRS

Programmable flashcards, a local-first Notebook, interactive Courses and built-in AI agents — in one app.

Etude is a self-hosted spaced-repetition and study app where every card type is a small program. A card can generate fresh numbers to compute on every review, ask you to drag events onto a timeline, play a chord on a piano, find checkmate on a real board, write a proof that renders as you type, or draw a diagram that a vision model grades. Next to your decks sits a full Notebook — rich block pages with math, runnable code and pseudocode, Excalidraw canvases, Kanban boards, PDFs and folders opened straight from disk — alongside sandboxed Courses, an Agenda for deadlines and end-to-end encrypted Sync and shared folders. Scheduling runs on FSRS-6 (or pluggable schedulers), and every action in the app is also a CLI command with JSON output or an MCP tool, so any AI agent can build decks, edit notes, quiz you and track weak spots.

Library: today's session, decks with exam deadlines and the Notebook sidebar

Notebook: rich block pages with inline KaTeX math, numbered Pseudocode blocks and callouts

A proof by induction graded by AI, with feedback

Browse: search, preview and edit, with a chess card open

Stats: recall now, true retention, streak and review activity

Why another flashcard app

Classic flashcards test recognition: you see the front, think of the back, flip the card and judge yourself. That works for vocabulary. It works badly for most of what people actually study, where the skill is doing something: computing, deriving, tracing an algorithm, explaining why. Etude keeps what makes spaced repetition work, changes what a card is, and puts your notes, deadlines and practice in the same place.

Classic flashcard apps Etude
What a card is A front and a back A program: template, script and grader
Who grades it You You, a script, AI, or a script that hands hard cases to AI
Calculation practice Same numbers every time, so you end up memorizing the answer A generator makes a new variant every review
Open answers You compare with the back An AI verdict plus a few sentences on what was missing
Math answers Shown, never checked Typed with live rendering, graded by equivalence (x(x+1) = x^2+x)
Notes and courses A separate app Built-in Notebook (pages, canvases, Kanban, PDFs, disk folders) and Courses
Exam dates Intervals ignore them Deadlines pull every card in before the exam and show up in Agenda
Automation Add-ons, or editing the database 364 CLI commands with JSON output, plus etude mcp and in-app agents

With AI or without it

AI is optional. Etude doesn't need an account, a key or an internet connection, and nothing is sent anywhere until you turn AI or Sync on.

Without AI, Etude is a local-first flashcard and notes app you fully control. Your collection is one SQLite file on your own machine, and local folders stay as plain files on disk. Most card types are checked by scripts, not by a model: numbers with a tolerance, math by equivalence, code against tests, chess moves against the engine's list, chords by their notes, or you rate yourself as in any flashcard app. Every card type, theme and scheduling setting is yours to edit.

With AI, Etude goes further:

  • Feedback on your answers. Explanations, proofs and drawings get a verdict and a few sentences on what was missing and how to fix it.
  • Ask Etude and your own agents. Open the in-app Ask panel to build decks from lecture notes or PDFs, reorganize trees, edit Notebook pages, or run custom agents over the Agent Client Protocol (Hermes, Antigravity, Claude Code, Codex, Gemini CLI or any command).
  • MCP and CLI automation. Point Claude Code, Codex, Cursor or any MCP client at etude mcp, or hand an agent the bundled skill to work through the CLI directly.
  • Knowing what to review next. An agent can read etude stats weak, tell you which topics are slipping and quiz you right inside a chat with live interactive flashcards.

AI grading works with Etude's hosted AI option, your ChatGPT Plus or Pro plan, OpenRouter, or any OpenAI-compatible endpoint (including a local llama.cpp or Ollama server).

What a card can be

Every card below is a real card type from the showcase pack, screenshotted after answering it. Each one is a folder of HTML, CSS and JavaScript you can open and change, and each is graded by something that actually checks the work.

Write kanji by hand. Draw the character with a mouse, pen or finger. A vision model reads your strokes against a description of the character and tells you what to fix.

Writing the kanji for water by hand, graded by a vision model with feedback

Solve chess puzzles on a real board. Tap or drag the move. The answer is checked against the engine-verified list of mates, so any correct move counts.

A mate-in-one chess puzzle solved on the board

Play chords on a piano. A new root and quality every review. Any voicing or inversion counts, because the grader compares pitch classes. Hear your chord and the right one.

Building an A major 7th chord on a piano keyboard, with each chord tone checked

Read music. A new note on the treble or bass staff every review, ledger lines and accidentals included. Answer on the keyboard or with the letter keys.

Middle C on a treble staff with a piano keyboard to answer on

Trace algorithms. Tap the nodes of a generated graph in the order BFS or DFS visits them. The real traversal animates afterwards.

Tapping the nodes of a generated graph in breadth-first order

Place history on a timeline. Drag events between fixed anchors. Graded by order and by how many years each one is off.

Dragging computing milestones onto a timeline

The pack also has ear training (name the interval you hear), regexes with live tests, spotting the buggy line in a listing, binary and two's complement switches, the unit circle, points on a graph, balancing chemical equations, colors from hex codes, Fermi estimates on a log slider and 30-second arithmetic sprints. Import it and try them all:

etude pack import examples/showcase.pack.json

Decks from the Market

Whole decks, card types, themes, courses and plugins can be shared and installed in one click through the Market.

Market: discover decks, courses, card types, themes and plugins

These are some of the first decks:

Countries of the world. All 197 countries in one subdeck per continent, on a real map with zoom and pan. Name the highlighted country, or find the one that's named. Names in English, Portuguese, Spanish and French count, typos too, and a wrong pick tells you if it was a neighbour.

Brazil highlighted on a map of South America, answered correctly

The periodic table. All 118 elements, each asked eight ways: symbol, name, find it on a blank table, name a lit cell, atomic number and position, mass, family and block, electron configuration.

Finding iron on the periodic table, with its tile and electron configuration

Flippy Bit. One card that's a whole arcade game. Invaders fall carrying a hex number and you flip eight bits to shoot them down before they land. It runs on the drill scheduler, so it never runs out and every run is kept.

Flippy Bit: hex invaders falling over a city, with eight bits to flip

The Market also carries Morse code, the Showcase, single card types, courses, plugins and community themes including Catppuccin, Gruvbox, Nord, Tokyo Night, Rosé Pine and Dracula.

Notebook, local folders, Courses and Agenda

Etude includes a full workspace alongside your decks so notes, boards, PDFs and exercises live next to the cards they produce.

Kanban board in Notebook with card covers, labels, due dates, checklists and column limits

  • Rich block pages. Edit with / commands and Markdown shortcuts: headings, to-dos, callouts, toggles, tables, multi-column layouts, $math$ and $$ equations (KaTeX), syntax-highlighted code blocks, Pseudocode mode (numbered lines with inline KaTeX math), runnable Python (Pyodide) and JavaScript blocks, live sandboxed HTML widgets, embedded flashcards (/cards, /create-card), [[wiki links]], backlinks and an interactive note graph.
  • Canvases, Kanban boards, PDFs and files. Draw on Excalidraw canvases (standalone or embedded), organize tasks on Kanban boards with card sheets, due dates, labels and column limits (exportable to Obsidian Kanban Markdown), read PDFs with chapter outlines and thumbnails, edit plain code/text files (with optional Vim bindings), and embed live web files, canvases or boards inside any page with /portal.
  • Tabs, split panes and zoom. Open notes, chats and desktop screens (Library, Browse, Stats, Market, Settings, Study, Courses) as tabs, organize them into colored tab groups, split up to four panes side by side, and zoom panes independently.
  • Local folders on disk. Open any existing folder (such as an Obsidian vault) in place without copying or importing. Markdown, code, PDFs and HTML stay in their native formats on disk, native Etude pages save as .etude files beside them, outside edits merge live, and Sync can carry local folders across devices. See docs/folders.md.
  • Courses. Import standalone HTML or Course Kit (course/1) packages into your Library alongside decks, run them in a sandboxed viewer with live theme sync and saved local progress, and manage them with etude course.
  • Agenda. View all deck exam deadlines and Kanban card due dates together in one place (or via etude agenda list).
  • Built-in Notebook tutorial. Fresh collections include a guided Notes showcase folder (re-addable anytime with etude note tutorial).

Sync and shared notes

  • End-to-end encrypted Sync. Keep your decks, review history, media, Notebook and chosen local folders in sync across desktop, the web edition (etude.study/app) and mobile devices — either through Etude Sync or your own shared folder. Events are encrypted on your device before leaving it. See docs/sync.md and docs/account.md.
  • Shared Notebook folders. Share any Notebook folder or page by email with Can edit or Can view permissions. Changes merge block by block within seconds, live cursors and presence show who is on the page, removing someone rotates the folder key, and the server only ever holds ciphertext. See docs/sharing.md.

Ask Etude, external agents and MCP

  • In-app Ask panel. Press Ctrl+J (⌘+J on Mac) or click the corner launcher to chat with Minimi or your own agent profiles. Agents can run Etude commands, attach images/PDFs/Anki packages, stream rich replies (interactive HTML widgets, charts, inline reviewable flashcards and side-by-side layouts), accept mid-turn Steer instructions, and take automatic collection snapshots so any reply that changed data can be undone in one click. Destructive actions wait for your confirmation according to your permission level (ask, dangerous or allow).
  • Bring your own computer agent (ACP). Connect Hermes, Antigravity (agy acp), Claude Code, Codex, Gemini CLI or any custom Agent Client Protocol command directly inside Ask, complete with live tool steps, permission prompts and background-task tracking. See docs/agent.md.
  • MCP server. Run etude mcp (for example claude mcp add etude -- etude mcp) to expose your collection, decks and Notebook directly to external MCP clients — even while the Etude desktop app is open. See docs/mcp.md.

Plugins

Plugins extend Etude on desktop and web (mobile stays plugin-free). Every plugin runs inside a sandboxed iframe (sandbox="allow-scripts") with a strict Content-Security-Policy and explicit, revocable permissions, managed through Settings → Plugins or etude plugin. Pomodoro ships as a bundled starter plugin. See docs/plugins.md.

What you can do with it

  • Prepare for an exam. Put the course in a deck, set the exam date as its deadline and study every day. No card is scheduled after the deadline, cards you already know still get one last look before it, and Agenda plus Stats forecast what's left until exam day.
  • Practise calculations instead of memorizing answers. A numeric item can carry a generator, so "the transmission delay of an L-byte packet on an R Mbps link" comes back with different numbers every time. The seed is stored with each review, so any variant can be reproduced.
  • Explain things in your own words. Free-answer cards are graded against a reference answer and a rubric. You get a verdict and two to four sentences on what was missing and how to fix it, in the language of the card.
  • Write math and code the way you would on paper. Answer fields are live Markdown editors: $math$, code blocks and formatting render as you type, so a derivation can be the answer. Code cards have a real editor with highlighting for about 140 languages, and JavaScript answers run against hidden tests in a sandbox.
  • Draw your answer. Write kanji or hanzi by hand, sketch a graph, a circuit or a molecule, and a vision model grades it.
  • Learn skills that aren't text. Music (including Web MIDI keyboards), chess, algorithms and history become cards you play, move, tap and drag, as in the gallery above. If the skill you want isn't there, a card type is a web page, so you can build it.
  • Keep notes and cards together. Take lecture notes in Notebook or your existing Obsidian folder, embed live review cards right inside the page, and ask an agent to turn weak concepts into new cards.
  • Train a skill you measure. Put a deck on the drill scheduler and a card comes back as often as you want, with no rating buttons. Adaptive drills track target success rates, and Stats charts the metrics from every run over time.
  • Gate advanced cards behind prerequisites. Tag cards with concept:: and needs:: so new material unlocks automatically once its foundation is mastered.
  • Study in the browser, on any device. etude.study/app runs the full engine in WebAssembly with nothing to install and works offline. Or run Etude on your computer and open it from your phone or tablet, or point the desktop app at another machine's Etude in remote mode. A compact study view at /embed fits inside other apps.

Features

  • Programmable card types. Twelve built-in types ship as editable files: basic, typed answer, cloze, numeric, multiple choice, match, order, free answer, math, code, drawing and image occlusion. Custom types are written the same way, organized in folders, can bundle shared assets (3D models, maps, data), and edit in the app with a live preview.
  • Four kinds of grader. self (you rate), script (checked by code, with partial credit and optional retry hints), ai (a decision model plus feedback) and hybrid (a script that hands the cases it can't decide to the AI). Grading instructions cascade from the item's rubric through its tags, decks and type.
  • AI providers you choose. Use Etude's hosted AI option, sign in with your ChatGPT Plus or Pro plan, or add an API key. The API defaults use OpenRouter (liquid/d1-ultra for verdicts, a fast chat model for feedback and a vision model for drawings), and any OpenAI-compatible endpoint works, including local llama.cpp or Ollama. AI stays off until you enable it.
  • FSRS-6 scheduling & pluggable schedulers. Learning steps, fuzz, per-deck daily limits, new and review ordering, sibling burying, suggested ratings, exam deadlines, practice ahead, undo, history replay and built-in FSRS Optimize. Swap FSRS per deck for drill, leitner, or your own schedule.js, plus adaptive drills and prerequisite gating (concept:: / needs::).
  • Deck tree, Deck Homes and Search. Drag decks to nest or reorder, inherit presets down the tree, attach custom Deck Home pages, and query anything with the unified search language across Browse, filtered study and CLI.
  • Notebook, Local Folders, Courses and Agenda. Rich pages, Excalidraw canvases, Kanban boards, PDFs, plain code/Markdown files, live portals, disk folders, Course Kit packages and unified deadline views.
  • End-to-end encrypted Sync and Shared Spaces. Offline-first sync (Etude Sync or folder sync) plus live collaborative shared Notebook folders.
  • Ask Etude, external ACP agents and MCP. Customizable agent profiles, model or local-agent brains, mid-turn steering, rich interactive replies, collection undo snapshots and etude mcp.
  • Sandboxed Plugins. Desktop and web extensions with explicit permissions and bundled Pomodoro.
  • Statistics and opt-in Activity. Recall now against target, true retention, streaks, forgetting curve, memory strength, 24-hour study clock, exam forecast, recall per tag, per-scheduler metrics and optional local-only Activity time/typing stats (etude activity, off by default and never synced).
  • Themes and zoom. Nine built-in themes (system, snow, night, midnight, graphite, dusk, contrast, daylight, paper), nine preset accent colors (plus custom hex), custom CSS themes and global plus per-pane zoom.
  • Complete CLI and Packs. 364 CLI commands with stable JSON output, machine-readable etude commands catalog, --dry-run on 118 write commands, idempotent JSON Packs, Anki .apkg/.colpkg import (docs/anki.md), one-click GitHub updates (etude update) and the Market.

Quick start

In the browser, with nothing to install: open etude.study/app. Your collection runs locally in WebAssembly, works offline, and Settings → Data downloads a backup of it. Etude Sync keeps it in step with your other devices.

The app, with everything inside, from etude.study/download or the latest release: Mac (Apple Silicon, Intel), Windows, Linux (.deb, .rpm, AppImage). Windows and the AppImage update themselves.

From source, Etude needs Node 24 or newer. Node runs the TypeScript sources directly, so the server has no compile step.

git clone https://github.com/Zibhelina/etude.git
cd etude
npm install
npm run build        # builds the web app into web/dist
npm start            # same as: node src/cli/main.ts serve

Open http://127.0.0.1:4610. Your collection lives in ~/.etude/etude.db.

Paste an image, audio or video file into a card field or Notebook page and Etude copies it into its own media folder, normally ~/.etude/media. Pasted local file paths and file:// URLs are copied too; the card uses the copy even after the original is moved or deleted. Settings → Data shows the folder, and etude media add ./picture.png imports a file from the terminal. Back up the media folder along with the database. Settings → Clean up (or etude media prune) removes unreferenced media files and leftover cards on faces their type no longer produces.

To see what cards can be, import the showcase: one card for each of the 32 card types (12 built-in + 20 showcase types). It opens in Watch mode, a tour where each card can show a graded example answer so you see how it works right away:

node src/cli/main.ts pack import examples/showcase.pack.json

npm link puts the etude command on your path, so etude serve and etude pack import file.json work from anywhere.

npm run desktop opens the same app in its own window instead of a browser tab (Electron, installed into desktop/ the first time). It runs the engine from this folder, attaches to an existing etude serve for the same collection, or connects to a remote Etude instance via ETUDE_REMOTE / desktop.json.

Turn on AI grading

With your ChatGPT plan. If you have ChatGPT Plus or Pro, open Settings → AI and click Continue with ChatGPT. Sign in in the browser and grading uses your plan's included usage, with no API key (or run etude settings chatgpt login from a terminal on the machine running Etude).

With an API key. Paste it in Settings → AI → API keys (or during first-run setup). Keys save to ~/.etude/.env (mode 600, never stored in the database). From a terminal, pipe it in so it stays out of shell history:

printf %s "$OPENROUTER_KEY" | etude settings key set OPENROUTER_API_KEY

With Etude AI or a local server. Settings → AI also supports Etude's hosted AI credits as well as presets for OpenRouter, OpenAI and local OpenAI-compatible servers, with a button that grades a sample answer to verify the setup. SECURITY.md lists exactly what is sent to the provider.

Use it from your phone

By default the server only listens on your own computer. To reach it from other devices on your network, give it a token:

etude serve --host 0.0.0.0 --token "$(openssl rand -hex 16)"

Open http://<your-computer>:4610/?token=<token> on the phone and add it to the home screen. For access away from home, use a private network such as Tailscale, or a reverse proxy with TLS.

Configuration

~/.etude/.env API keys, one per line, e.g. OPENROUTER_API_KEY=.... Read at startup, and written by Settings or etude settings key set. Keys are never stored in the database or shown in the app.
--db PATH or ETUDE_DB Collection file. Default ~/.etude/etude.db. Pasted media, imports and drawings are saved in a media/ folder next to it.
ETUDE_HOME Where .env, snapshots and the default database live. Default ~/.etude.
--port or ETUDE_PORT Default 4610.
--host or ETUDE_HOST Default 127.0.0.1. Any other address requires a token.
--token or ETUDE_TOKEN Every /api request must then send Authorization: Bearer <token> or ?token=<token>.
ETUDE_SQL Set to wasm to run Node against SQLite WebAssembly instead of node:sqlite.

AI providers, the feedback language, when feedback is written automatically, the hour a new study day starts and the learn-ahead limit are set on the Settings page or with etude settings.

Packs

A pack is one JSON file. Every key except etude is optional, and decks named by items are created as needed.

{
  "etude": "pack/1",
  "name": "Networks",
  "decks": [{ "name": "Networks", "instructions": "Accept answers in ms or s if the conversion is right." }],
  "items": [
    {
      "id": "net.dtrans-1",
      "type": "numeric",
      "deck": "Networks::Delay",
      "fields": { "prompt": "A 1,500-byte packet on a 10 Mbps link. Transmission delay?", "answer": 1.2, "unit": "ms" }
    },
    {
      "id": "net.why-packets",
      "type": "free",
      "deck": "Networks::Switching",
      "fields": {
        "prompt": "Why can packet switching serve more users than circuit switching on the same link?",
        "reference": "Users are idle most of the time, so the link is shared statistically instead of reserving capacity per user.",
        "rubric": "Must mention that users are not all active at once."
      }
    }
  ]
}

Import it from the Library page, Settings → Data, or a terminal:

etude pack check networks.pack.json            # validate every item, including generated variants
etude pack import networks.pack.json --dry-run # report what would change
etude pack import networks.pack.json
etude pack new starter.pack.json               # one working item of each built-in type, to edit

Items are matched by id, so importing an edited pack updates the content and keeps the scheduling. docs/packs.md documents the format, generators and the fields of every built-in type.

Card types

A card type is a folder: type.json (fields and grader), template.html, style.css, card.js (runs in the card's frame), an optional prepare.js (turns stored fields into what the card shows and keeps the answer key out of the frame) and an optional grade.js. The built-in types in types/ and the showcase types in examples/showcase/types/ are the best examples.

etude type export mcq -o mcq/     # a type as editable files
# edit them
etude type import mcq/            # create or update the type

The Card types page does the same in the browser, with an editor and a live preview. docs/types.md is the full reference.

Scheduling

Cards are scheduled with FSRS-6 (via ts-fsrs). Settings come in layers: the defaults, then for each deck from the root down, its preset and its own overrides. Retention, learning steps, limits, ordering, FSRS weights and how scores turn into suggested ratings are all set per layer.

FSRS is the default, not the only choice. Each deck picks a scheduler: drill for skills you train and measure (a typing test comes back every day and keeps every WPM, with no rating buttons), leitner for classic boxes, or your own few lines of JavaScript. Stats charts what a drill measured instead of predicting recall. See docs/schedulers.md.

A deck can have an exam deadline. No card in it is scheduled after the deadline minus a margin (12 hours by default). A card that would come back later is pulled in, usually to halfway between now and the deadline, so even a well-known card gets one more look. After changing retention, steps or a deadline, etude card reschedule --deck NAME replays the review history with the new settings; the deck page offers the same when you save such a change.

Search

The same language works in Browse, in filtered study sessions and in etude search:

deck:"Networks"       the deck and everything below it      (deck:net* wildcards)
tag:net::w1           the tag and every tag below it        (tag:exam::* wildcards)
type:numeric  id:net.w1.*  source:ch1
is:new is:learning is:review is:relearning is:due is:suspended is:buried is:archived
is:leftover           cards on faces their type no longer makes (see Settings → Clean up)
prop:lapses>=2  prop:reps=0  prop:stability<3  prop:difficulty>7  prop:due<=1 (days from now)
rated:1  rated:7:1    reviewed in the last N days (optionally with that rating)
word  "a phrase"      text in any field, ignoring case (not markup or media file names)
front:word  front:    text in one field, by name (empty: the field is empty)
-term  a OR b  (grouping)   implicit AND between terms

With free text, results come best match first: items whose title is the word, then those whose title starts with it, then the rest. --order (or the Browse menu) picks another order.

CLI for people, scripts and agents

etude <group> <verb> [args] [flags]

  deck      the tree, settings inheritance, presets, descriptions and grading instructions
  preset    named settings shared by several decks
  item      the content behind one or more cards
  card      per-card scheduling: suspend, bury, reset, due dates, reschedule
  media     copy images, audio and video into the collection's media folder
  tag       hierarchical labels, with grading instructions
  type      card types: fields, template, prepare script, assets and grader
  scheduler who decides when a card comes back: FSRS, a drill, Leitner boxes or your own script
  study     the queue, presenting a card, submitting answers, ratings, undo
  stats     overview, forecast, recall per tag, weak cards
  agenda    unified view of deck exam deadlines and Kanban due dates
  note      Notebook pages, folders, blocks, canvases, Kanban boards, PDFs and tutorial
  folder    open, browse, edit, patch and sync local folders on disk
  course    import, inspect, export and manage standalone or Course Kit packages
  plugin    install, check, enable and manage sandboxed plugins and permissions
  sync      end-to-end encrypted cross-device Sync (cloud or shared folder)
  share     encrypted shared Notebook folders, invites, roles and presence
  account   Etude account sign-in, passkeys, two-step auth, devices and data export
  agent     Ask Etude conversations, prompts, models and undo snapshots
  agents    agent profiles, brains (model or external ACP), permissions and defaults
  view      control tabs, panes, tab groups, sidebar, zoom and active screen in the open app
  activity  opt-in local-only time and typing statistics
  settings  AI providers and models, day start, learn-ahead, ChatGPT sign-in
  theme     app colors and custom CSS
  pack      import, export, check, new
  anki      import an .apkg or .colpkg collection
  market    browse, install and publish themes, decks, card types, courses and plugins
  db        backups, integrity, schema version

  mcp       expose your collection and Notebook over Model Context Protocol (stdio)
  serve     run the web app and HTTP API
  update    update this copy from GitHub
  search    find cards with the search language
  commands  every command as JSON: args, flags, defaults, examples, whether it writes

Etude ships 364 CLI commands with JSON output on stdout, structured {"error", "code"} errors on stderr with distinct exit codes, and --dry-run on 118 write commands (check etude commands for per-command flags). docs/cli.md has recipes and the full reference.

Agents that use Etude should read skill/SKILL.md. It can be dropped into an agent's skills folder as is.

Notes work by path as well as id (etude note read "Fall 2026/CMPT 307/Week 1"), and everything you can do to a note in the app has a command: note patch (find-and-replace on a page's Markdown or a file's text, touching only what changes), note append (under a heading, at a block or line), note block (any block as the editor's JSON: columns, toggles, colours, portals), note canvas add|edit|delete (shapes, text, arrows between shapes, pictures), plus note kanban, folder, view, share and sync. skill/references/notes.md has the Notebook reference.

For agents that speak MCP (Claude Code, Codex, Claude Desktop, Cursor and others), etude mcp serves your collection as tools: claude mcp add etude -- etude mcp. The app can stay open, and a page open in it takes changes live. docs/mcp.md has the setup for each agent and the tool list.

Architecture

The model

Etude keeps three questions apart: what you practice (an item), how you answer it and get marked (its card type and grader), and when it comes back (the deck's scheduler). Each one can be swapped without touching the others, so a 3D anatomy card can run on FSRS and a typing test can run on a daily drill.

flowchart TD
  deck["Deck"] -->|holds| item["Item<br/>fields and tags"]
  item -->|one card per face| card["Card<br/>scheduling state"]
  card -->|you study it| type
  subgraph type ["Card type"]
    direction LR
    prepare["prepare(fields)"] -->|view + key| template["template<br/>sandboxed frame"]
    template -->|your answer| grader["grader"]
  end
  type -->|score 0 to 1| review["Attempt, then review"]
  review -->|rating| scheduler["Scheduler<br/>chosen by the deck"]
  scheduler -->|next due date| card
Concept What it is
Deck A node in a tree (Biology::Cells). Holds items and settings; subdecks inherit settings from their parents.
Preset Named settings shared by several decks: daily limits, retention, how scores become ratings, which scheduler. A deck can override any of them.
Item The content: a JSON object of fields, plus tags, source and notes. Like a note in Anki. It has no scheduling state of its own.
Card What enters the study queue. An item makes one card per face of its type (forward and reverse, or c1, c2… for a cloze). The card keeps the scheduling state: FSRS stability and difficulty, or a JSON sched_state for other schedulers, plus suspended and buried.
Card type The pluggable part: a small app that defines the item's fields, a template (HTML, CSS and JS running in the card's sandboxed frame), an optional prepare script (turns fields into view and key, so the answer never reaches the frame), a grader, and optionally faces, assets (meshes, data, images shipped once with the type), a demo answer for Watch, metrics to chart and showVerdict. The built-in types (basic, typed, numeric, mcq, order, match, cloze, free, math, code, draw, occlusion) use exactly the same format as custom ones.
Grader Turns an answer into a score from 0 to 1. self: you rate yourself. script: a JS function in the sandbox. ai: a model decides and another writes feedback, with instructions layered from the item, its tags, the deck and the type. hybrid: the script first, the AI when the script defers. The preset's autoRate thresholds turn the score into a suggested Again / Hard / Good / Easy.
Attempt One graded answer, kept whole: the view shown, the answer and everything the grader returned (a typing test's WPM lives here).
Review An attempt once a rating is applied and the scheduler has moved the card. History, Stats and the FSRS optimizer read these.
Scheduler Decides when a card comes back. One per deck, inherited by subdecks. fsrs (default) predicts when you'd forget. drill asks for no rating and brings the card back N times a day, charting the type's metrics. leitner is the classic boxes. Your own is a folder with scheduler.json and schedule.js.
Pack One JSON file of types, schedulers, decks and items. Items match by id, so re-importing an edited pack updates content and keeps history.
Market A Git repository of decks, card types, themes, courses and plugins, installable from the app or the CLI.

Everything above is reachable from the web app, the HTTP API, the etude CLI and etude mcp, and Ask Etude uses that same engine and CLI as its tools. Deeper references live in docs/types.md, docs/schedulers.md, docs/packs.md, docs/folders.md, docs/sync.md, docs/sharing.md, docs/agent.md, docs/mcp.md and docs/plugins.md.

The code

src/core/     the engine, no HTTP: SQLite store (node:sqlite or WASM), FSRS and pluggable
              schedulers, search compiler, QuickJS sandbox, AI grading, Notebook, local
              folders, Sync, shared spaces, plugins, courses, Ask/ACP agents and packs
src/server/   Hono HTTP API, strict CSRF/CSP middleware, card/plugin/course frame documents,
              static assets for the web app
src/cli/      the etude CLI (364 commands) and stdio MCP server
src/browser/  serverless WebAssembly build (SQLite WASM + worker running the same Hono API
              for etude.study/app and mobile shells)
runtime/      runtime.js, mathexpr.js and card.css loaded inside every card frame
types/        the 12 built-in card types, one folder each
schedulers/   built-in script schedulers (drill, leitner)
web/          React, Tailwind and Vite app (Library, Study, Notebook, Ask, Market, Stats)
desktop/      the Electron desktop app around the engine (npm run desktop)
site/         public website and legal docs (etude.study)
examples/     showcase.pack.json (built from examples/showcase/), Notes tutorial, sample plugins
skill/        the agent skill and Notebook/authoring references
docs/         packs, card types, schedulers, folders, sync, sharing, agents, MCP, plugins, CLI
test/         node:test unit suites and Playwright E2E scripts

The desktop app, web edition, CLI and MCP server all run over the same core engine, so behavior stays aligned across every surface.

Security

Card, course and plugin code runs in sandboxed iframes with opaque origins and strict Content-Security-Policy headers, user scripts run in QuickJS inside a WebAssembly sandbox, mutating local API routes enforce strict JSON MIME and same-origin checks, and the server only listens on localhost unless you set a token. SECURITY.md explains the trust model, what AI grading sends and how to report a vulnerability.

Support

Etude is free and made by one person in his free time. If it helps you study, you can buy me a coffee on Ko-fi or on Buy Me a Coffee.

Legal

The Terms, Privacy Policy, Refund Policy and Creator Terms cover the optional account, Sync and the paid Market. Their source is in site/legal/. They are drafts that haven't been reviewed by a lawyer yet.

Contributing

See CONTRIBUTING.md. Bug reports and new card types are very welcome.

License

Etude is free software under the GNU Affero General Public License v3.0 (AGPL-3.0). You can use it, study it, change it and share it. If you distribute a modified version, or run one as a service other people use over a network, you have to make your source code available to those users under the same license.

Commercial license. If you want to build Etude into a closed-source product or run it as a service without the AGPL's obligations, write to [email protected] for a commercial license.

Name and logo. The AGPL covers the code, not the Etude name or the ε logo. See TRADEMARK.md.

Explore projetos relacionados

Carregando…