midad new
midad new <dir>
Writes a project into a new directory and prints what to do next:
$ midad new notes
created notes
next:
cd notes
midad check . # type-check and audit permissions
midad run . # serve http://127.0.0.1:8787
midad run main.md # run the exec block and print
What it writes:
notes/
midad.toml the manifest
main.md the entry file: imports and route mounts
README.md what the project is
lib/greeting.md a module
routes/health.md two handler functions
midad run . serves it and prints hello world.
midad check . answers ok on the scaffold: routes/health.md holds the two
handler functions and main.md mounts both by name, which is the shape the
layout rules ask for. A project explains why
the handler and the mount live in different files.