Turn study notes into visual lessons, interactive explanations, and practice linked to the ideas you want to review.
A hackathon prototype built with Next.js, React, TypeScript, Zod, and React Flow.
Requires Node.js 20.9 or later.
npm ci
npm run devOpen localhost:3000. The landing page has a single question box and an attachment button. Enter a topic, attach a PDF, Word document (.docx), or text file, and select Make it click. The generated visual lesson opens directly; a preset lesson is never substituted. Up to three files of 10 MB each are supported, with a combined study-input limit of 40,000 characters. Scanned PDFs need selectable text or a pasted transcription.
The landing page retains notes on failure or cancellation. New lesson returns to the same simple input. Completed lessons are saved in browser storage; /study reopens a real generated lesson and otherwise returns to the landing page.
Copy .env.example to .env.local and set the server-only OPENROUTER_API_KEY. SMRTR_OPENROUTER_MODEL defaults to openai/gpt-4.1; select a model with strict structured-output support. OpenRouter takes precedence when its key is set. The existing OPENAI_API_KEY / SMRTR_MODEL connection remains available as a fallback when no OpenRouter key is configured. Restart the development server after changing configuration. No key is requested or stored in the browser.
The flow is tested with simulated provider responses. Live generation stays unavailable until a key is configured; it returns a clear message and keeps the visitor’s material in place.
Existing /?request=... lesson links redirect to /study?request=.... A compatible local MCP chat can still fulfill these requests. See the MCP setup and manual bridge guide for that optional workflow. The website does not automatically access a chat subscription. Requests are stored in ignored .smrtr/requests/; pending requests expire after 24 hours.
If the default npm cache has a permissions problem:
npm ci --cache /tmp/smrtr-npm-cache- Explore a full-screen visual teaching canvas with blue controls and a dismissible details panel. The separate Connections view shows concept relationships.
- Follow a coherent main route: problem, intuitive layers, mechanism questions, reasoning and limits, then transfer. Newly authored lessons keep one continuing scenario through the main explanation.
- Open linked supporting pages, such as Queue → FIFO, then return to the same page, scroll position and simulation state. Optional detours do not add steps to the main route.
- Keep three structures distinct: the teaching sequence, the page hierarchy and the concept relationship graph. Breadcrumbs describe containment; Connections explains how ideas relate.
- Choose among four self-reported confidence levels before generation. The captured profile affects both the suggested route and the authoring instructions/content. Topic labels are entered manually, retain stable IDs, and can use the overall level. A temporary Start more simply route leaves that captured profile intact.
- Read explanations and generated examples separately from original source material.
- Step through a computed BFS graph, change its inputs, predict the next expansion, and inspect paths.
- Check concept questions and final practice, then follow specific review links.
The BFS teaching canvas turns actual graph data into delivery landmarks, roads, waiting parcels, discovery marks and distance layers. The novice opening presents the delivery problem first; later pages reveal the queue and discovery mechanisms. A transfer example is explicitly labeled and can use a different graph. Other topics retain their own generated guided steps without being mislabeled as algorithm simulations.
New chat requests require an authored page hierarchy, meaningful inline links, explicit transitions and confidence routes. Saved older lessons open as Adapted saved lesson using a compatibility hierarchy; they are not presented as newly authored designs. Confidence is self-report, and practice does not claim measured mastery.
The BFS engine uses fixed, tested code with alphabetical neighbor order and discovery on enqueue. It finds paths with the fewest edges in unweighted graphs. Attempts keep the lesson ID and revision; a missed check suggests review and does not assert mastery.
Source records, semantic lessons, activities, simulation state, evaluation and presentation have separate contracts. Prerequisite ordering is checked separately from the general concept graph. Schema validation checks structure; accurate teaching still depends on the authoring chat. Generated executable code is never run.
npm run typecheck
npm test
npm run test:mcp
npm run buildThe optional provider pipeline normalizes notes, validates a compact plan, generates modules independently with at most three calls in flight, computes graph answers, and progressively delivers complete validated modules. Cancellation, stale revisions, and rejected imports cannot overwrite newer work. Browser storage preserves completed lessons and attempts.
See COLLABORATION.md for ownership/shared exports and PROGRESS.md for verified milestones.