Free and open source

Command-line tools

Free command-line tools to draft, check and publish a factfile.md. They run on your own computer with npx, so there is nothing to install apart from Node.js 18 or later.

Open source under the MIT licence. Source code on GitHub, package on npm.

Prefer not to use a terminal? The generator on this site runs the same code in your browser.

Draft a file from your website

npx factfile generate example.com

Reads your home page and up to 10 of the pages most likely to hold facts (prices, booking, contact, services, about, delivery, returns), respecting robots.txt. It writes factfile.md using only what your site visibly says, with a link to the page each fact came from.

It never invents a fact. What websites rarely say, such as who a business is not for, is marked TODO for you to answer. The validator will not pass a file until every one is done.

It also writes factfile-setup.md, a guide to putting the file online for your site’s platform.

Check it

npx factfile validate factfile.md     # a file on your computer
npx factfile validate example.com     # the live file, with every online check

Reports the level the file reaches and every problem, line by line, in plain words. Each level includes the one before it.

  • BasicThe required fields and sections, and no superlatives, hidden text or instructions to AI.
  • ComparableAdds category, publisher, structured pricing and the profile section.
  • CheckedEvery fact is visible on the website and every number links to a live page that states it.

Make the human page

npx factfile page factfile.md

Turns the file into a plain “Key facts” web page for /factfile: factfile-page.html to paste into a site builder, or factfile.html as a complete page to upload. See this site’s own page.

Make it findable

npx factfile setup example.com

AI agents do not yet look for factfile.md on their own, so your site points to it with five signposts: a “Key facts” link in your home page’s main content, the /factfile page, a footer link, a line in llms.txt, and link tags. This writes copy-paste code for each and shows which ones are already in place. Platforms covered:

  • WordPress
  • Shopify
  • Wix
  • Squarespace
  • Webflow
  • Next.js
  • Common servers

Limits

  • The specification is version 0.1, a draft for public comment, so the tools may change before version 1.0.
  • These tools run in a terminal. The web generator does the same in a browser. There is no platform plugin yet.