@zh-xx/antu
v0.17.0
Published
Antu: legal diagrams (fact, procedure, relationship, justification) from JSON, as one offline HTML page. The command line, the MCP server, and the entries to embed a diagram in an application.
Maintainers
Readme
@zh-xx/antu
Antu draws legal diagrams (fact timelines, procedure flowcharts, relationship diagrams, justification trees) from JSON, as one HTML page that opens offline. This package holds its two commands.
antu: the command line (validate,layout,render,preview,schema,guide,examples,version;antu --version).antu-mcp: the MCP server, started by an MCP client over stdio.
And three entries for an application's own code (each one file, everything inside):
@zh-xx/antu/embed:mount(element, spec, options)draws a diagram inside a page, in a shadow root.@zh-xx/antu/validate:validate(spec),layout(spec),kinds(),versions().@zh-xx/antu/html:renderHtml(spec, options), the self-contained page as a string (Node).
The contract of the three is in the repository, spec/embed.md.
Install guidance for each client, the guides and the source are in the repository: https://github.com/zh-xx/Antu
Licence: AGPL-3.0-or-later (LICENSE); the notices of the code of others inside the files are in THIRD-PARTY-NOTICES.md.
