Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

postext-cli

Latest version: v1.98.4

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: drnachio
17 Stars
6 Forks
160 Versions
14.3K Downloads
TypeScript Repo language

Scan summary

postext-cli was last scanned on 25 Nov 2026 at version 1.98.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 160 versions; the latest 5 were published within 2 days (24 and 25 Nov 2026).
  • Findings: No rules fired in version 1.98.4.
  • Downloads: 14,280 downloads.

Versions

160 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.98.4 LATEST 25 Nov 2026 No rules fired
1.98.3 25 Nov 2026 No rules fired
1.98.2 25 Nov 2026 No rules fired
1.98.1 24 Nov 2026 Not shown
1.98.0 24 Nov 2026 Not shown

No rules fired in 1.98.4

Findings

Findings for v1.98.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.98.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

postext-cli

The postext command line.

postext turns a book written in Markdown into a PDF, HTML, an EPUB, page images or a Word file, from a terminal, a script or an agent. It is one self-contained executable per system: the Bun runtime, the postext engine, the PDF, EPUB, HTML and Word writers, the page painter (Skia), HarfBuzz, the default fonts (EB Garamond, Open Sans) and the ICC print profiles are all inside it. There is nothing to install.

Get it

Every postext release attaches the executables to its GitHub Release, with SHA256SUMS and readme.txt:

File System
postext-macos-arm64 macOS, Apple silicon
postext-macos-x64 macOS, Intel
postext-linux-x64 Linux x86-64 (glibc)
postext-linux-arm64 Linux ARM64 (glibc)
postext-linux-x64-musl Linux x86-64, musl (Alpine: apk add libstdc++ libgcc)
postext-windows-x64.exe Windows x64
curl -fL -o postext https://github.com/drnachio/postext/releases/latest/download/postext-linux-x64
chmod +x postext
./postext

With Node.js, npx postext-cli downloads the executable of your system from npm and runs it.

Use

postext                                        # help
postext help pdf                               # options of a command
postext pdf book.postext -o book.pdf
postext pdf book/ --pdfx x4 --profile fogra51  # print-ready PDF/X-4
postext html book.postext -o book.html         # one self-contained page
postext epub book.postext --layout reflowable
postext image book.postext --page 12 -o p12.png
postext images book.postext --pages 1-10 -o pages/ --dpi 100 -f webp
postext docx book.postext -o book.docx
postext import-docx manuscript.docx -o manuscript/
postext idml book.postext -o out/book.idml --fonts  # InDesign package, fonts beside it
postext import-idml book.idml -o book/ --report     # an InDesign document (IDML) as a new book
postext import-idml package.zip -o book.postext     # a zipped InDesign package, with its fonts and pictures
postext pack book/ -o book.postext
postext unpack book.postext -o book/
postext design book.postext -o house.postext      # the book's design, no chapters
postext pdf other/ --design house.postext         # another book in that design
postext info book.postext --pages
postext check book.postext --json
postext build book/ --pdf out/book.pdf --html out/book.html --watch

A book is any of:

  • a .postext bundle, the file the Sandbox exports and opens;
  • an unpacked book folder, with its preset.json, chapters, resources and fonts;
  • loose Markdown files, one chapter each, in the order given (a folder: its .md files by name), with an optional --config JSON, a --resources folder of pictures (each named by its file name, or described in a resources.json) and a --fonts folder.

postext idml writes the laid-out pages as an InDesign Markup package with the postext-idml package: --images embed|link keeps the pictures inside the file or puts them beside it in Links/ (a picture imported from a TIFF or Photoshop file goes in as that original, as the PDF prints it), --lines keep|reflow ends every line where Postext ended it (keep, the default) or leaves the paragraphs to InDesign's composer, and --fonts writes the font files of the faces used beside the package, in Document fonts/ (-o has to name a file; a family the book may not redistribute is left out, with a warning). postext build --idml FILE writes the same package beside the other outputs, with --idml-images, --idml-lines and --idml-fonts.

postext import-idml reads an InDesign Markup package (an .indd is not read: save it as InDesign Markup first) and writes a new book, a folder or a .postext, as composed pages that follow the document or as a flowing book (--layout auto|pages|flow). A book exported from Postext comes back with the same lines; a document made in InDesign is read with losses, which the summary counts and --report lists. The file may also be a zipped InDesign package (the folder File › Package makes, zipped, with Include IDML ticked): its IDML is imported with the pictures of its Links/ and the font files of its Document fonts/, which the book carries (--document PATH names the IDML when the zip holds several; an .indd alone is refused). Linked pictures are read from --links first, then from the package, then from beside the file and its Links/; with a package, a face found in --font-dir is carried instead of the package's.

--set path=value changes one setting without editing the book (--set page.dpi=150, --set bodyText.fontFamily=Lora), and --chapters 2-4 lays out part of it.

Fonts

A family the book does not carry is looked up in the --font-dir folders, then among the faces compiled in (EB Garamond, Open Sans), then in the cache, then downloaded once from Google Fonts (from Fontsource when Google Fonts does not have it) into ~/.cache/postext (%LOCALAPPDATA%\postext\cache on Windows; POSTEXT_CACHE_DIR or --cache-dir moves it). --offline never downloads. A weight or a slant a family does not ship is set in its nearest face as it is, in the page images as in the PDF. A family found nowhere is set in EB Garamond, with a warning, so the layout and the PDF still agree.

Scripts and agents
  • --json prints one JSON object on stdout: the outputs written, the page count, every warning (with the chapter file and line, and the page), and the time each step took. Messages go to stderr.
  • Exit codes: 0 done, 1 failed, 2 wrong usage, 3 check found errors (or any warning with --strict).
  • -o - writes a single output to stdout (postext image book.postext -p 1 -o - | …).
  • postext build lays the book out once for several outputs, and --watch keeps the engine and the fonts loaded: a change is laid out again in a fraction of a second.

Develop

pnpm --filter postext-cli start pdf book.postext      # run from the sources
pnpm --filter postext-cli test                        # bun test (units and end to end)
pnpm --filter postext-cli build:bin                   # every executable into bin/
pnpm --filter postext-cli build:bin --current         # this machine's only
sh scripts/smoke.sh bin/postext-macos-arm64           # smoke test an executable

scripts/build-bin.ts cross-compiles every target from one machine: it fetches Skia's native addon for each platform from npm and embeds it. The release workflow builds them, runs scripts/smoke.sh on Linux (glibc and Alpine), macOS and Windows runners, attaches them to the GitHub Release and publishes the npm packages (scripts/npm-publish.mjs).

License

MIT. The embedded EB Garamond and Open Sans are under the SIL Open Font License (fonts/).

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm postext-cli

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229