Dan · for macOS
A tutor that draws what it is saying.
Ask Dan something you want to understand. It answers out loud and builds the picture on a stage as it speaks, in the spirit of a 3Blue1Brown video, except that this one is made for your question and you can stop it at any sentence.
On Windows, or with another AI than Claude? Say what you would use Dan on.

Ask it anything
Type or speak a question in your own words. The answer is a short lesson in parts: the simplest whole case first, then one idea at a time.
It draws as it talks
Graphs, formulas, 3D, graphs of boxes and arrows, arrays being sorted. Each thing lands on the word that names it, and a pointer goes where the voice is.
Stop it at any sentence
A lesson is not a video. Pause, step back a sentence, ask for another explanation of the step you lost, or click a thing in the picture and ask about it.
Install
Open Terminal (press ⌘ Space, type Terminal, press Return), paste this line and press Return.
curl -fsSL https://danielsohel.com/dan/install.sh | bashIt downloads Dan from its GitHub release, checks the download against its checksum, puts Dan in your Applications folder and opens it. It never asks for your password. Everything Dan runs comes inside the app, except Claude.
- A Mac with an Apple chip
- M1 or newer
- macOS 13.5 or later
- Ventura, Sonoma, Sequoia, Tahoe
- A Claude plan
- Pro or Max: Dan thinks with your own Claude
The first start
Dan shows these steps itself when it opens and ticks each one off as it is done. They are here so you know what is coming.
Install Claude Code
Dan asks Claude through Claude Code, Anthropic's own program. In Terminal:
curl -fsSL https://claude.ai/install.sh | bashSign in to your Claude plan
Your browser opens. Sign in with the account your Pro or Max plan is on, then go back to Dan.
~/.local/bin/claude auth loginGive it a voice optional
Without a key Dan teaches in silence, with subtitles. The voice is Inworld's, which is free to start: make an account, open API Keys, choose Create Inworld API key, Standard, then Copy key, and paste it into Dan (the set-up has a field for it, and so does Settings).
Update
Paste the same line again.
curl -fsSL https://danielsohel.com/dan/install.sh | bash- If there is a newer Dan, it closes the one that is open, replaces the app and says what changed.
- Your lessons, courses, settings and voice key stay exactly as they were.
- If you already have the newest, it says so and changes nothing.
- In Dan, Settings → Check for updates tells you whether there is something newer. Dan never checks by itself.
On Windows, or with another AI?
Today Dan runs on a Mac and thinks with Claude. If you would use it on Windows or Linux, or with ChatGPT or Gemini, say so. It is three questions and needs no account.
The questions are a Google Form. It asks for no name. Leaving an email is optional, and it is used only to tell you when the version you asked for is ready.
Good to know
- Where your things are
- Lessons, courses and settings live in
~/Library/Application Support/Dan, outside the app, which is why an update cannot touch them. Videos you save go to~/Movies/Dan. - What leaves your Mac
- Your questions go to Claude, through Claude Code and your own sign-in. The sentences to be spoken go to Inworld, under your own key. Nothing is sent to me, and there is no tracking of any kind.
- Saving a lesson as a video
- That one button needs ffmpeg on your Mac (
brew install ffmpeg). Without it the button is simply not shown. - Removing it
- Drag Dan from your Applications folder to the Trash. Your lessons stay in the folder above until you delete that too.
- Something went wrong
- The installer says what it could not do and changes nothing when it fails, so pasting the line again is always safe. If it keeps failing, open an issue with what it printed.
Under the hood
A language, an engine, and a tutor that writes one for the other
A language model is good at deciding what to show and bad at deciding where. So Dan splits the work: the model writes a few declarative lines, and an engine I wrote owns every pixel.
derivative.dan
title "The derivative is a limit"
schema axes x=[-0.5,3] y=[-1,9]
mark f path fn={x^2} label="f(x) = x²"
mark h label value=1 label="h"
mark p dot x=1 y={f(1)} label="P"
mark q dot x={1+h} y={f(1+h)} label="Q"
mark sec line x1=1 y1={f(1)} x2={1+h} y2={f(1+h)} extend=1 label="secant"
Say: "Now let h shrink toward zero, |shrink| and watch Q slide down to P."
@shrink morph h.value 1 -> 0.01 4s ease=smoothPart of a script from the repository, and the engine playing it. No coordinates, no colours, no timings: the point Q is defined from h, so when h shrinks, everything drawn from it moves.
A language
Claude never gives a pixel. It writes Dan, a small declarative markup: mark, link, morph, focus, Say. What to show is the model’s; layout, timing, colour, scales and the camera are the engine’s.
An engine
C++20 on raylib. A layered graph layout, a map-style label placer, an exact overlap checker, one CPU projection for 3D, LaTeX through MathJax, and streaming speech whose word times fire each line on its word.
A tutor
A Node server runs Claude Code, sends the stage one sentence at a time while the answer is still being written, checks every scene, and feeds what the checker found back into the next turn.
- pixels written by the AI
- 0
- pixels written by the AI
- axioms enforced in code
- 6
- axioms enforced in code
- lines of C++
- 19k
- lines of C++
- engine test cases
- 167
- engine test cases
- Six axioms, enforced in code. Nothing is deleted, scales are fixed for a whole script by a prescan, two things share a colour only when the script relates them, every change is an eased morph, focus lasts one sentence, and the engine can print any scene back as markup and re-parse it to the same scene.
- The voice drives the drawing. The speech comes back with word timestamps, so a cue fires on its word, a formula read aloud is written term by term as it is said, and the pointer leaves for a thing a third of a second before its name.
- A lesson is its script, never a video. That is why it can be paused at a sentence, replayed from any part, explained again from the picture as it stood, or asked about by clicking the thing itself.
- Measured, not guessed. An evaluation harness has Claude write scenes for sets of real questions and a judge score the frames, so a prompt or engine change is checked against a baseline before it stays.
- Shipped like software. One command builds the app with everything it runs inside it, tries it in an empty home folder, and publishes a release; the install line above verifies a checksum and swaps the app atomically, so a failed update leaves the old one in place.
graphs, laid out by their links
fields and contours
LaTeX, bound to the data
area under a curve
one dot a sample
3D, the camera in words