SuperAPI AI Directory

visimark

VisiMark is a "document integrity layer" for Markdown documents, used to verify whether every computed value in a document is still consistent with the formula that generated it. It writes formulas directly into ordinary Markdown files, and a machine verifies whether the values match the formulas, failing CI when they do not. The document remains pure Markdown and renders normally in GitHub, VS Code preview, and pandoc. It is mainly aimed at numeric documents written or edited by AI agents, such as reports, budgets, quotes, invoices, project plans, and financial summaries, and provides a command-line tool, an MCP server, an Obsidian plugin, and various Markdown lint integrations.

Open website

About this tool

VisiMark is a document integrity layer for Markdown documents. Its core goal is to make computations in documents explicit, changes reviewable, and numerical correctness enforceable, while keeping documents as pure Markdown.

Purpose Ordinary Markdown cannot express "this number comes from these inputs and must remain consistent with them," so once an input changes, all downstream numbers can only be re-checked manually. VisiMark fills this gap: every computed value carries the formula that produced it, and a machine can prove that the two are still consistent, failing CI when they are not. It is especially suited to Markdown documents written or edited by AI agents—agents are good at writing formulas but not at arithmetic, and writing formulas instead of numbers directly turns numbers from "assertions" into "derivations," making them reviewable in diffs, re-runnable, and enforceable in CI.

Main capabilities

  • Declare formulas for tables in Markdown using vmark blocks and name worksheets; column rules are uniform (e.g., Net = Price * Qty applies to every row), and columns without rules are treated as input columns and are not overwritten.
  • Aggregate values are declared as scalars, replacing total rows and keeping the table rectangular.
  • Anchors can materialize scalars into sentences; HTML comments are invisible in all target renderers, so the body text reads normally while numbers remain machine-verifiable.
  • Parse documents, build a cross-worksheet dependency graph, topologically sort it, and evaluate with decimal arithmetic; circular dependencies report the full path.
  • Reject ambiguous expressions: dates accept only ISO 8601 (YYYY-MM-DD), thousands separators are rejected; a single column cannot mix two currencies; units are declared in square brackets and propagate along formulas, and unit mismatches cause check to fail; duplicate binding names within the same scope raise an error; there are no boolean literals.
  • No plugin architecture: document numbers depend only on their own text and the VisiMark version, not on extension modules, configuration files, the environment, the network, or the clock.

Usage The command-line tool is the core of the product, with seven commands in total, of which check is the most important and is read-only, so it can safely be pointed at any file; fmt only fixes stale values and only reports other issues without modifying them. The other commands are used to bring documents into a state where check can strictly validate them, to explain behavior, or to perform what-if scenario analysis (eval --scenario). Pre-commit hooks, remark-lint-visimark, and markdown are provided.Integration methods such as lint-rule-visimark and a composite GitHub Action. In CI, a one-line npx command can be used, exiting with a non-zero status on the first inconsistency. Agents can access the same engine via MCP through visimark-mcp; all commands except simulate are provided as tools, and nothing is written unless the operator enables the write gate. Obsidian users can use a plugin to mark every computed value in Reading view and Live Preview. visimark infer can infer rules that exactly reproduce every number for a plain table with no formulas at all; --write only inserts the corresponding blocks and anchors and does not rewrite anything else; a rule that fits all rows but misses by one row is not written, but reported as a near-miss.

Use cases For agents and reviewers to verify documents a model has just written; for analysts, founders, and capacity planners doing what-if analysis; for projects that already have a Markdown lint workflow; for engineering and scientific documents with units; for Obsidian number-base users; for financial scenarios (NPV, IRR, PMT, and decimal precision declarations). Examples include a B2B invoice that can compute itself, an invoice with a drift problem, and a plain-text quote.

Limitations Dates support only ISO 8601; thousands separators are rejected; no unit conversion is performed, and $ is not read as USD; there are no boolean literals; there is no plugin architecture; if a document truly has no derivable content, the marker <!--vmark:no-formulas--> must be written into the file, otherwise a document that contains tables but no rules will be treated as a problem by check.