Product
One program writes papers, slides, web pages and exams, with live code and figures.
IDoc is a document format with a single introducer, @. It covers the ground LaTeX and Markdown cover and then keeps going: the questions, the code and the grading live in the same program as the prose.
Two pages from IDoc's library, popping out of the book
Midtown, out of the page
IDoc's Flyover page extrudes real OpenStreetMap buildings to their true heights, 64,030 of them. These 360 stand around Bryant Park. The tallest is 366 m.
@graph(type=flyover, source=Flyover.assets/manhattan.bdem, sat=Flyover.assets/manhattan_sat.webp, buildings=Flyover.assets/manhattan.bld, exag=2.0, width=940)
Building data © OpenStreetMap contributors
Turn the page: physics
The Physics Sandbox builds its pendulum from one @sim block. The source is on the left page, and the page it makes is on the right.
@sim system: pendulum length: 1.2 gravity: 9.81 angle: 35 damping: 0.02 @end
Then it swings
Length 1.2 m, gravity 9.81, released at 35°, damping 0.02. The source says the period matches 2π√(L/g) for small angles. At 35° each swing takes a little longer.
- Time
- —
- Energy left
- —
- Period, measured
- —
- 2π√(L/g)
- 2.20 s
- 59widgets
- 16live-code languagesplus Octo, which runs MATLAB and Octave code

Questions
- Multiple choice in four layouts, fill-ins that check exact text, numbers with tolerance, regular expressions or algebra
- Matrices, truth tables, matching, ordering, Likert scales, essays with rubrics and freehand drawing
- @qc(10) sets the points; @qc(30, choose=3) counts the best three answers.
Maths and print
- Maths without backslashes: KaTeX on screen, Typst in the PDF
- The text in the PDF stays selectable.
- Ten paper venues, and the same program exports to EPUB
Instruments in the page
- A breadboard with an Arduino: a real circuit solver, an ATmega328P written in TypeScript, sketches compiled by avr-gcc
- Schematics simulated with ngspice, and a board studio for PCBs
- CAD, a mesh editor, a spreadsheet with about 60 functions, and logic, automata, chemistry and physics sandboxes
Paper exams
- @scanform adds registration marks and a barcode to every paper, so the scans can be sorted easily.
- Handwriting is read by a local model only, so student work never leaves the machine.
- idoc-autograde grades scans from the command line.
Access
- Read-aloud with spoken maths, and @braille with an STL you can 3D print
- A 33-layout on-screen keyboard
- Offline voice commands, with no language model involved
A course is a folder
- ECE231.course and an ECE231.lms folder hold the roster, the grades, the submissions and the log.
- Embed any document in any web page with one script tag and an <idoc-doc> element
@qc(10) Using only NAND gates, how many are needed to build a 2-input XOR? @q(fn: 4)
Where it stands
Live at idoc.page since August 2026, running Rutgers ECE 231 Digital Logic Design for about 350 students. The desktop app runs on macOS (Apple silicon), Windows, and Linux.