A local-first study workspace for question packs, exams, revision, and portable backups.
Explore the docs · Open RecallForge · Product guide and FAQ · Report a bug · Request a feature
Table of Contents
RecallForge (formerly ExamEngine) helps learners turn reference material into question packs, take exams offline, and use their results to focus the next study session. It pairs a source-grounded MCQ generator skill with a deterministic browser exam engine.
RecallForge 2.1 adds eight workspace areas:
- Appearance and layout: focused, compact, or spacious presets; timer and palette placement; themes and accents; separate interface/question fonts; reading size, width, and line height; reduced motion; home-card ordering.
- Portable backups: full-workspace JSON export, optional password encryption, previewed merge or replace, and one restore recovery snapshot.
- Pack authoring: saved drafts, question editing/reordering/duplication, timing and scoring settings, validation, JSON export, and stable pack revisions.
- Local sources: text/Markdown, images, and PDFs with question-level file/page/excerpt bindings and a source viewer.
- Adaptive requests: configurable topic, count, difficulty, and question-type exports for a separate generation workflow.
- Custom mocks: deterministic, topic-balanced selection from saved packs with difficulty/recency filters, timing, and source or uniform scoring.
- Daily revision: a due queue using 1/3/7/14/30-day intervals, confidence ratings, mistake reasons, and “still unclear” notes.
- Progress: saved detailed attempts, pack/revision/session-context filtering, topic sample counts, score history, matching-question first/retest comparisons, answer-time and confidence summaries, and a wrong-answer notebook.
These extend the existing exam/study flow: single/multiple answers, sections, flags, weighted and negative marks, overall/per-question/combined timers, seeded shuffling, result exports, and legacy pack support. The verification report records deterministic, native-storage, browser-workflow, and offline checks, with the tested platforms and remaining limits.
The app remains single-user and local-first. There is no account service, automatic cloud sync, instructor backend, proctoring, or in-browser AI generation. The generation skill still runs separately in your own compatible agent.
See Product, Design, Architecture, and Roadmap.
- Vanilla JavaScript, HTML, and CSS; deterministic exam/workspace functions.
- Native IndexedDB for workspace data, Web Crypto for encrypted backups, and small
localStorageappearance/legacy keys. - PDF.js for local PDF rendering and text selection.
- esbuild for the bundled single-file distribution.
- Python standard library for pack validation; Node's test runner for deterministic/controller tests.
- Bundled Source Sans 3, Lexend, Atkinson Hyperlegible, and Lora fonts, with license notices.
- GitHub Actions for verification, generated artifacts, and Pages deployment.
No backend, API key, or external service is required to use the built viewer. npm dependencies are required to rebuild it.
The repository includes a ready-to-open offline viewer, a nine-question Cell Biology sample pack, and ten-question introductory demos for CFA fundamentals, CMT technical analysis, and FRM risk concepts. Choose a Sample pack, then Load sample pack; all four are embedded for offline use. Node.js and Python are needed only for development or CLI validation.
The finance demos are original, untimed study practice with explanations and public references. Their difficulty is inferred, not calibrated against official exams. They do not provide complete exam preparation or establish readiness, and RecallForge is not affiliated with or endorsed by CFA Institute, CMT Association, or GARP. See the source and review record.
Use RecallForge online or save the self-contained HTML to your device for offline use. Hosting is free; no login or payment is required.
- Use the viewer: a modern browser with JavaScript, IndexedDB, Blob/worker support, and Web Crypto. HTTPS or localhost is recommended; storage/crypto behavior for local files varies by browser. See verified coverage.
- Clone: Git and access to this repository.
- Build and test: Node.js 22.13.0 or newer with npm, plus Python 3.
- Generate questions with the included skill: an agent environment that supports repository skills, such as Antigravity, and your reference material.
-
Clone the repository and enter its directory:
git clone https://github.com/DagerottDev/RecallForge.git cd RecallForge -
Open
mcq-exam-website/index.htmlin your browser. The generated file embeds the styles, JavaScript, and sample pack, so it can run offline without a web server.
The generated viewer includes its runtime code, PDF worker, fonts, styles, and sample. No npm installation, environment variables, API keys, or external services are needed to use that existing file. To regenerate it from source, follow Development. If you already have the checkout, use its existing directory.
If your browser restricts storage for local files, serve the checkout locally instead:
python3 -m http.server 8000 --bind 127.0.0.1Then open the local viewer. Keep using the same browser and URL to retain that browser's local history.
- Open the viewer and leave Mode set to Use pack setting. Choose shuffle options and an optional seed before loading a pack.
- Select Load sample pack to start the Cell Biology test: nine questions, nine maximum marks, a 15-minute exam limit, and 60 seconds per question. Each wrong answer deducts 0.25 marks.
- Select answers, move with Previous, Next, or the question palette, and use Mark for review as needed. Multi-select questions require all correct options.
- Select Submit exam and confirm. Review your score, explanations, source references, and topic performance. Topics below 70% of their available marks are identified as weak.
- Use Retest wrong answers for an untimed study session containing wrong and skipped questions, Export result to save result JSON, or Adaptive request options to choose the next generation request.
To study with immediate feedback, choose Study before loading a pack and use Check answer. Study mode keeps the pack's timing settings; use timing.mode: "none" in a pack for untimed study.
To load your own content, drop a JSON pack onto the upload area or click it to browse. Uploads are limited to 5 MiB. Valid legacy v1 content is migrated for the session; newly generated packs should use schema v2.
Saved unfinished sessions appear on the landing page with Resume and Discard controls. The overall exam deadline continues to elapse while the page is closed. Per-question remaining time is preserved across navigation, so revisiting a question does not grant a fresh timer. When the overall timer expires, the exam submits automatically; when a question timer expires, the viewer moves forward or submits at the last question.
Keyboard shortcuts during a session: ← / → navigate, F marks for review, and A–H select the corresponding option.
Open the repository in your agent environment and invoke the mcq-pack-generator skill. Supply the exact question count, source material, and, when available, two to five representative target-exam questions. Include timing and scoring preferences if needed.
The generator skill is open source under the same MIT license as the app.
In Codex, open the repository and invoke $mcq-pack-generator; in another
compatible agent, load its SKILL.md using that tool's skill mechanism.
To reuse it in another project, copy the entire
.agents/skills/mcq-pack-generator/ directory, including LICENSE, scripts/,
resources/, and examples/. For a copy installed elsewhere, validate with
python3 <skill-folder>/scripts/validate_pack.py <pack.json>.
Generation runs in your own AI tool, separately from the free website. Any AI provider charges depend on your tool and account. You can also author packs manually using the schema; the skill is not required to load a valid JSON pack. Only publish question packs and reference material you have permission to share.
The skill maps sources, calibrates difficulty, plans coverage, generates questions, and checks grounding, distractors, duplicates, answer-position balance, metadata, and marks consistency before validation. Without a sample paper, it uses moderate difficulty and reports that the difficulty was inferred. Its default output directory is mcq-packs/.
Validate any generated or hand-edited pack from the repository root:
python3 .agents/skills/mcq-pack-generator/scripts/validate_pack.py path/to/pack.jsonFor an adaptive follow-up, open Adaptive request options after a session. Choose 1–100 questions, focus topics, difficulty, and single/multi/mixed question type. Export the request, then give it and the relevant reference material to the generator. The request carries pack/attempt context, source references, and question identities to avoid. It does not contain the attached source file bytes or call an AI service. Generate new stems, validate the pack, and import it into the library.
Use the canonical schema and complete sample pack as references. This complete one-question example uses both timers and question-level scoring:
{
"schemaVersion": "2.0",
"exam": {
"title": "Cell Biology Practice",
"subject": "Biology",
"examType": "Practice",
"totalMarks": 1
},
"difficulty": "easy",
"timing": {
"mode": "both",
"examDurationSeconds": 300,
"defaultQuestionSeconds": 60
},
"scoring": { "mode": "question" },
"delivery": {
"mode": "exam",
"shuffleQuestions": false,
"shuffleOptions": false,
"seed": "cell-practice-01"
},
"questions": [
{
"id": 1,
"question": "Ribosomes are composed of which of the following?",
"options": ["RNA and proteins", "DNA and proteins", "Lipids and RNA", "Only proteins"],
"answerIndex": 0,
"marks": 1,
"negativeMarks": 0.25,
"explanation": "Ribosomes are nucleoprotein complexes made of rRNA and proteins.",
"topic": "Cell organelles",
"difficulty": "easy",
"cognitiveLevel": "remember",
"learningObjective": "Recall ribosome composition.",
"sourceRefs": ["cell-unit:p2"],
"tags": ["ribosome", "rRNA"],
"confidence": 0.99
}
]
}- Answer indices are zero-based. Single-answer questions use
answerIndex; multi-select questions usemultiSelect: trueandanswerIndices, with noanswerIndex. Multi-select correctness is exact-set and all-or-nothing. - Timing modes are
none,exam,question, andboth. Per-question limits can override the default withquestionTimeSeconds. - Scoring modes are
questionanduniform.exam.totalMarksmust equal the sum of question marks, orquestions.length × scoring.correctMarksfor uniform scoring. Uniform scoring also requiresscoring.negativeMarks. - Optional sections use matching section IDs on questions. Learning metadata includes topic, difficulty, cognitive level, learning objective, source references, tags, and confidence.
Optional packId, per-question questionUid, and sourceBindings add workspace identity and local file/page/excerpt links without changing schema version 2.0. New ordinary packs do not need those fields; imported content receives identities when saved. Pack JSON does not embed local source files.
Use Library to find packs/questions by text, topic, or difficulty. Imported packs are saved before launch. Choose Create pack or Edit to change questions, answers, marks, timing, explanations, topics, tags, learning objectives, and sources. Drafts autosave; Validate and publish adds a revision. Exact content reimports deduplicate. Stem, option, or correct-answer changes receive a new question identity; cosmetic edits can retain it.
Build a custom mock from selected packs/topics with a count, seed, difficulty, recent-question filter, timer, and scoring rule. Selection fails visibly if too few questions match. Untimed mocks use study delivery. Study today and Study use due questions from the review queue. Correct confident reviews advance at most once per local day; guesses/unsure answers retain their stage and return tomorrow, while wrong/skipped/still-unclear answers reset to the first interval.
Use Progress to filter attempts by pack revision and review scores, topic accuracy/sample counts, timing, confidence, and mistake notes. Legacy history is marked summary-only. Mixed-pack scores are not directly comparable, and small topic samples do not establish mastery.
Under Settings → Customize appearance, preview changes before applying them. Place the timer at the header left, header right, or sticky bottom; put the question palette on either side or collapse it. Choose system fonts, Source Sans 3, Lexend, or Atkinson Hyperlegible independently for controls and questions; Lora is also available for question text. Adjust text size, reading width, line height, theme, accent, and motion. Fonts are embedded for offline use, and motion follows your device preference by default.
Home cards support drag ordering and accessible Move up/Move down buttons. Reset layout and Reset all appearance provide separate recovery options. Presentation changes preserve answers, scoring, and timer deadlines.
- In Library → Local source library, import a supported file.
- Open a question in the editor. Select the source, optionally enter a PDF page and excerpt/location, and choose Link source. Multiple bindings are supported.
- In study feedback or result review, select the source link to open the local text/image/PDF viewer. PDFs provide page controls, zoom, and a text layer; a download link preserves the original file.
| Input | Limit |
|---|---|
| Question-pack JSON | 5 MiB |
| Text or Markdown source | 1 MiB per file; valid UTF-8 |
| PNG, JPEG, or WebP image | 5 MiB per file |
| PDF source | 25 MiB per file |
| All attached sources | 40 MiB total |
| Full backup file | 100 MiB |
File MIME/signatures, sizes, and SHA-256 hashes are checked. sourceRefs remain textual/external provenance; sourceBindings point to locally attached files. A pack JSON export contains references, not attachment bytes. Use a full backup when sharing a workspace that needs those files. Selecting an external source URL can require a network connection. See tested source/PDF workflows and their limits in E2E_REPORT.
Settings → Data and backups → Download backup exports packs/revisions, drafts, source file bytes, attempts, review state, notebook, preferences, and any saved session.
Leave both password fields empty for readable JSON. For encryption, enter and confirm a password with at least 12 characters. Encrypted files use AES-256-GCM with a password-derived key. Passwords are not stored; a forgotten password cannot be recovered. A plain backup contains readable questions, answers, study history, and attachments.
Save the downloaded file to iCloud Drive, Google Drive, another folder, or your own backup system. RecallForge does not sign in to those providers or synchronize files automatically. On the destination device, open RecallForge, choose the backup file, enter its password if needed, and inspect the preview:
- Merge preserves the current session and local preferences by default. It deduplicates matching records, preserves/remaps conflicts, and rebuilds review state from merged attempts. Tick the preference option to import appearance choices too.
- Replace restores the complete backed-up workspace, including preferences and saved session. Complete/discard a current saved session before replacing it.
- Undo last restore restores the pre-restore recovery snapshot. Only one snapshot is kept; export a backup before further changes or clearing browser data.
Restoration requires persistent IndexedDB storage. A restored timed session keeps its original deadline; restoring or moving devices does not grant extra time. Actual downloads and offline restore were verified in Chromium; broader browser coverage is tracked in E2E_REPORT. Encryption protects the exported file; the working browser database remains local and unencrypted.
The RecallForge rename preserves existing browser storage keys and the examengine-backup file format, so older workspaces and backups remain compatible. New backup downloads use a recallforge-backup- filename. The hosted app moves to /RecallForge/ on the same origin. GitHub repository links redirect, but the old Pages URL returns 404; update bookmarks to the new app address.
Workspace data belongs to the browser profile and site origin (scheme, host, and port). Switching browser/profile, changing a localhost port, moving between the hosted demo and a local file, or clearing site data can make the previous workspace unavailable. Private browsing and browser eviction can also remove data. Keep external backups; requesting persistent storage is not a backup.
Legacy v2 localStorage resume/history/notebook/theme data migrates once into IndexedDB when available. Originals remain intact; old history lacks detailed answers and becomes summary-only. If persistent storage is unavailable, the app reports temporary mode instead of silently promising saved data.
The app makes no account-backed upload of your local question packs or attempts. Project/support links open the relevant external website. Answers are included in JSON packs and the client; this is a personal-study tool, with no server-side assessment integrity controls. Only use and share source material you have permission to distribute.
On the production site, an optional notice offers Allow analytics and Don’t allow. Nothing is sent and no analytics identifier is created before consent. Change your choice under Settings → Privacy → Usage analytics. Declining stops new events and removes the identifier; allowing again creates a fresh one. Choices synchronize across tabs and stay separate from backups, restore/undo, and appearance resets.
Explicit usage events go to PostHog Cloud in the US using native fetch. There is no analytics SDK, automatic click capture, person profile, or recording. Questions, answers, scores, notes, filenames, attachments, workspace/session IDs, passwords, full URLs, and query strings are excluded. A fixed traffic category replaces raw referrer URLs. Requests omit cookies and the HTTP referrer; project IP anonymization is enabled. PostHog still receives the connection needed to process a request.
| Event | Allowed application properties |
|---|---|
app_opened |
app_version, traffic (Reddit, X, GitHub, search, direct, other) |
screen_viewed |
screen (home, library, study, progress, settings, exam, results) |
session_started |
kind (exam, study, mock, revision, retest), question_count |
session_resumed |
kind |
session_completed |
kind, submission (manual, timer) |
pack_imported |
source (sample, file), result (added, deduplicated) |
pack_published |
question_count |
backup_exported |
encrypted (boolean) |
backup_restored |
mode (merge, replace) |
appearance_applied |
preset (focused, compact, spacious) |
Each payload also includes the public project token, event name, random browser distinct_id, action timestamp, and fixed $process_person_profile: false / $geoip_disable: true. Timestamps preserve action order when requests arrive out of order. Unknown event names and fields are discarded. Success events follow successful action/save boundaries; resume does not emit another start. Screen events follow navigation rather than rendering. app_opened is attempted once per page load after consent. Offline/blocked events are dropped without a queue or retry and never delay timers, rendering, or saving. Unavailable browser storage keeps collection off.
Collection is restricted to https://dagerottdev.github.io/RecallForge/ and its index.html URL. Localhost, previews, forks, other paths, and downloaded file:// copies do not collect events. Configuration contains only a public project token, never an administrative key. Set the token to an empty string and rebuild to disable collection globally.
Owners can view the RecallForge Usage dashboard in the dedicated PostHog project (sign-in required). Counts are consenting browser estimates, not exact people. Declined consent, offline use, blockers, multiple devices, cleared storage, and consent resets affect totals. Funnels link a browser’s starts and completions, rather than an individual session ID. Seven-day retention needs seven days of collected history; earlier usage cannot be reconstructed. See the analytics report for dashboard access and deployment verification.
Run commands from the repository root with Node.js 22.13.0+ and Python 3. The lockfile pins the build/PDF dependency graph.
npm ci
npm run verify
npm run build
npm run build:check
# Install the isolated test browser once, then run acceptance checks
npx playwright install chromium --only-shell
npm run test:browserverify runs the Node core tests, Python validator tests, and sample-pack validation. build:check checks that the committed offline viewer matches the current sources without rewriting it.
After editing source files or the embedded sample, regenerate the distribution:
npm run buildFor individual checks, use npm test, npm run test:validator, or npm run validate:sample.
| Path | Purpose |
|---|---|
src/core/exam-engine.js |
Validation, migration, seeded delivery, timing, scoring, and analytics |
src/core/workspace.js, src/core/backup.js |
IndexedDB, identity, mocks/reviews, validated backups and restore |
src/app.js, src/workspace-ui.js |
Session controller, workspace views, editor, sources, preferences, and exports |
src/index.html, src/styles.css |
Development shell and styles |
scripts/build.mjs |
Combines source and sample into the offline HTML file |
mcq-exam-website/ |
Generated viewer and sample pack |
schema/ |
Canonical v2 JSON Schema |
.agents/skills/mcq-pack-generator/ |
Generator workflow, schema copy, examples, and Python validator |
tests/ |
Core and validator tests |
docs/ |
Architecture, dated project status, and roadmap |
Edit the modular files in src/, then build; direct changes to the generated viewer will be overwritten. Serve and test the generated local viewer. The raw src/index.html has bare package imports and is not the standalone browser entry point. build:check verifies artifact consistency; it does not exercise the browser.
Existing Codex skills used for this implementation include Ponytail, Impeccable, UI UX Pro Max, Playwright, and repo-readme. They are development guidance, not viewer dependencies; no additional skill installation is required. The included mcq-pack-generator remains the separate, optional generation workflow.
The CI workflow runs core tests, validator tests, sample validation, deterministic build checks, and isolated Chromium storage/workflow/offline acceptance on pull requests and pushes to main or goal/**. On successful push runs, it commits and pushes the regenerated viewer if the output changed. Deterministic/controller tests do not replace browser coverage. Browser screenshots and reports are uploaded as CI artifacts. Current browser evidence and remaining platform checks are tracked in E2E_REPORT.
After verification, pushes to main also deploy the built viewer to GitHub Pages.
Pull requests and goal/** branches do not deploy. A manual workflow run on
main can redeploy the current version.
RecallForge uses static GitHub Pages hosting at dagerottdev.github.io/RecallForge. The app needs no server, database, or paid hosting subscription.
To host your own fork:
- Create a public repository on GitHub. GitHub Pages supports public repositories on GitHub Free.
- Open Settings → Pages → Build and deployment → Source and select GitHub Actions.
- Push a change to
main, or run Actions → RecallForge CI → Run workflow onmain. Tests and validation must pass before deployment. - Find your site URL in Settings → Pages or the workflow's
github-pagesdeployment. A project site normally useshttps://<owner>.github.io/<repo>/. - Update this README and the source/support links for your fork, retaining the
MIT notices. Run
npm run buildafter changing source files.
CI publishes only mcq-exam-website/, including the viewer, sample JSON, and a
license copy. The generator is shared through the source repository and runs in
users' own AI tools.
Use the supplied github.io address to keep hosting at ₹0. A purchased
domain, AI generation, and payment-provider fees are separate optional costs.
GitHub Pages has usage limits and is not intended for paid SaaS or sites primarily
focused on commercial transactions; this app stays free with optional external
support links. See GitHub Pages availability
and usage limits.
The roadmap preserves the complete eight-area study-workspace scope and its acceptance gates, then tracks deeper learning, content-management, release, and optional hosted/instructor work. Source implementation, verified behavior, and planned extensions are recorded separately.
Discuss bugs and proposed changes through repository issues or a pull request. Include the pack, reproduction steps, and browser details for exam-workflow problems. Run npm run verify and npm run build:check before submitting changes; regenerate the viewer when source or sample content changes.
Distributed under the MIT License. This covers the app, documentation,
schemas, and author-owned generator skill and examples. The skill includes its
own license copy, and the generated HTML embeds the full notice for offline reuse.
PDF.js retains its Apache-2.0 license; bundled fonts retain their SIL Open Font License notices in src/assets/fonts/. The build embeds PDF.js/font notices with the MIT notice. Third-party source books, papers, and user-supplied material retain their own rights.
RecallForge is free to use. If it helps your study sessions, you can support its development:
- Buy me a coffee — international support.
- Buy me a chai on Bondin — support from India.
Support is optional. Payments are handled on the providers' websites; their fees and terms apply. Bug reports, contributions, and documentation improvements are welcome too.
Use the RecallForge repository and issue tracker for project support.
- The included biology sample pack credits NCERT Biology — Class XI, “Cell: The Unit of Life,” as its source material.
- README layout inspired by Best-README-Template.
