npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

aldus

v0.6.1

Published

Pixel-perfect PDF editing over a PDF real content graph, plus a two-agent LLM (reader + editor). One package: the engine+agent (aldus), the embeddable React editor (aldus/editor), and a ready server (aldus/server). `aldus file.pdf` opens the full visual e

Readme

aldus

A framework for building PDF apps on a PDF's real content graph.

Aldus parses the actual content-stream operators into a typed, editable model, lets you mutate them — from code, a CLI, a React editor, or an LLM agent — and splices the result back into the file byte-for-byte. It never rasterizes, never paints a white box over old text, and never redraws with an approximated font.

One package, four entry points:

npm i aldus

| | | |---|---| | aldus | the engine + the agent — Library API | | aldus/editor | the embeddable React editor — Editor | | aldus/server | a ready-to-run backend — Server | | aldus (bin) | the CLI — CLI |

Quick start

aldus doc.pdf                                         # visual editor + AI in your browser
aldus doc.pdf --chat                                  # conversation in the terminal
aldus ask  doc.pdf "What are the payment terms?"      # reader → answer on stdout
aldus edit doc.pdf "Highlight the totals" -o out.pdf  # editor → a new PDF
aldus form.pdf --fields                               # dump fields + positions (no LLM)
aldus form.pdf --fill '{"name":"Ana"}' -o filled.pdf  # fill by name (no LLM)
import { loadDoc, EditSession } from 'aldus';

const doc = await loadDoc('contract.pdf');
const session = new EditSession(doc);

session.editText('p1-y708-x72', 'FINAL');       // reflows the paragraph if it grows
session.addField('signature', 1, 90, 60, 200, 40, 'signature_a');
session.fillField('name', 'Ana');

await session.save('out.pdf');
import { AldusEditor, configureAldusApi } from 'aldus/editor';
import 'aldus/editor/styles.css';

configureAldusApi({ apiBase: '/api' });
<AldusEditor docId={id} />;

Why edit the graph, not the pixels

Every web PDF "editor" cheats: it rasterizes, or paints a white rectangle over the old text and draws new text on top with whatever font it has. Aldus does what Acrobat does — and is honest when it can't:

  • Move / scale / restyle text → the original show operators are re-emitted verbatim (same bytes, same font, same kerning) with a relocated matrix.
  • New text, same font → re-encoded through the embedded font's reverse /ToUnicode map. A glyph missing from the subset → an explicit, reported fallback.
  • Font/style change → an embedded standard font, width-fit into the original slot. Explicit substitution, never a silent guess.
  • Can't locate a segment unambiguously? It refuses to touch it and says why.

Every node has a stable id (p1-y708-x72). Every API addresses nodes by id — so the agent has no coordinates to hallucinate, and needs no vision model.

Documentation

| Doc | What's in it | |---|---| | CLI | The four modes, every flag, and the deterministic (no-LLM) operations. | | Library API | EditSession method by method, the bytes→bytes layer, forms, and exactly what the package root re-exports. | | React editor | <AldusEditor> props, the host-integration seams (your tabs, your boxes, your tools), the API client, forensic mode. | | Server | Every HTTP route with body and response, the env knobs, the agent's NDJSON wire, embedding it in your own app. | | Agent | The two-level architecture, per-page fan-out, auth and models, cost, adding your own tools, the guardrails. |

The agent, briefly

A cheap reader model reads the whole document and either answers or delegates the edit to a stronger editor model running on just the affected pages — in parallel, one editor per page. It edits without vision: the typed graph is in the prompt and the tools take node ids.

Runs on your Claude Code subscription (no per-token bill) or OpenRouter (~1.8¢/turn on a 9-page doc). Full matrix in docs/agent.md.

What it can do

Text edit/move/color/size/delete · paragraph and cross-page section replace · whole-page recompose · images move/delete/insert · highlights · links · watermark · header/footer · form fields: create any type (text/checkbox/radio/select/list/button/signature), move/delete, read values + positions, fill by name, and convert …… placeholders into real fields.

MIT · source