ANDF is a new document format. Every .andf file opens instantly in any browser — no install, no extension. And the full document data is embedded as JSON for AI tools to extract in a single regex.
The Transformer architecture, introduced in 2017, fundamentally changed the landscape of natural language processing. In this retrospective, we revisit the original design decisions and examine the emergent capabilities that large-scale transformers have displayed.
| Factor | Exponent | Description |
|---|---|---|
| Parameters | 0.076 | Fixed data & compute |
| Tokens | 0.095 | Fixed params & compute |
| FLOPs | 0.050 | Optimal allocation |
An .andf file is a self-contained HTML file with structured JSON embedded inside a script tag.
Double-click a .andf file. It opens in your browser looking exactly like a PDF — toolbar, white pages, page numbers, zoom. No install, no extension, no server.
AI tools extract the full structured document — sections, blocks, semantic metadata, entities — from a single <script type="application/andf+json"> tag.
Build documents programmatically with a fluent API. Headings, tables, code blocks, callouts, images — all the block types you need.
Pure Python, zero dependencies.
from andf import ANDFDocument doc = ANDFDocument() doc.set_metadata( title="Q4 2025 Report", authors=["Finance Team"], ) doc.set_theme("corporate") sec = doc.add_section("summary", "Executive Summary") sec.paragraph("Revenue grew **23%** YoY to $4.2B.") sec.callout("Record quarter — highest revenue ever.", variant="success") sec.table( headers=["Metric", "Q4 2025", "Change"], rows=[["Revenue", "$4.2B", "+23%"], ["Margin", "31%", "+3pp"]], ) doc.save("report.andf") # → open in browser like a PDF
No preprocessing. No PDF parsing libraries. One regex and you have everything.
import re, json data = json.loads( re.search( r'application/andf\+json[^>]*>(.*?) r'cript>', open("file.andf").read(), re.DOTALL ).group(1) ) # Full document structure, instantly. # No OCR. No layout parsing.
Plain text or Markdown in one call — ideal for LLM context windows.
Automatic chunking by section with configurable token limits.
Every block carries role, importance score, entities, and a summary.
10 block types, 4 themes, fluent Python API.
Toolbar, page numbers, zoom 50–200%, keyboard nav, TOC sidebar, print support.
Default, Academic, Corporate, Minimal — each fully customisable.
One file. Fonts, assets, JS all inline. Email it, share it, archive it.
Structured reference list with DOI support and inline citation markup.
Code blocks with language detection via Prism.js — 200+ languages.
Pure Python stdlib. No Pillow, no lxml, no Pandoc. Just pip install andf.
For developers building with ANDF, or end users who just want to open .andf files.
Python library + CLI. Build, parse, and extract documents programmatically.
Requires Python 3.8+ · Zero runtime dependencies · View on GitHub
Download the app. Double-click .andf files — they open in your browser like PDFs.
↓ Download ANDF ViewermacOS 12+ · No Python required · 868 KB