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-pdf

v0.7.0

Published

Pixel-perfect PDF editing over a PDF's real content graph, plus an LLM agent — read, edit, highlight, link, fill/build forms. `aldus file.pdf` opens the full visual editor + AI in your browser; also a library and a scriptable CLI.

Readme

aldus-pdf

A framework for building PDF apps on a PDF's real content graph: parse the content-stream operators into an editable model, mutate them from code, the aldus CLI, or an LLM agent, and splice the result back byte-for-byte — no rasterizing, no white boxes, no approximated fonts. Read/edit/move text, highlight, link, place images, and read/fill/build forms & signature fields.

Bundled build of the aldus monorepo (@aldus/core + @aldus/agent) → one self-contained package.

Install

npm i aldus-pdf      # library + the `aldus` CLI

CLI

aldus doc.pdf                                         # opens the VISUAL EDITOR + AI in your browser
aldus doc.pdf "Describe the content"                 # one-shot agent (LLM)
aldus doc.pdf "Highlight the totals" -o out.pdf --open
aldus doc.pdf --chat                                  # interactive chat in the terminal
aldus form.pdf --fields                               # dump fields + values + positions (no LLM)
aldus form.pdf --fill '{"name":"Ana"}' -o filled.pdf  # fill by field name (no LLM)

aldus file.pdf with no prompt boots a local server (editor + CASPER agent) and opens the browser — no database, no accounts. --fields / --fill are deterministic (no LLM). Agentic prompts run on the auth below.

Auth (agent)

Two-level agent (cheap chat/router → strong editor). Two providers:

Claude Code subscription (default) — no per-token bill:

  • Interactive / your machine: just run without ANTHROPIC_API_KEY.
  • Headless / servers: set CLAUDE_CODE_OAUTH_TOKEN (from claude setup-token).
  • Models: ALDUS_MODEL (editor, claude-sonnet-5), ALDUS_CHAT_MODEL (router, claude-haiku-4-5).

OpenRouter (ALDUS_PROVIDER=openrouter, OPENROUTER_API_KEY) — for hosted demos / cheaper runs. Recommended: Gemini. Put the cheap model on the chat (it reads every page) and the good one on the editor:

  • ALDUS_OPENROUTER_CHAT_MODEL=google/gemini-3.1-flash-lite (router)
  • ALDUS_OPENROUTER_MODEL=google/gemini-3.5-flash (editor)

That combo (the default) is ~1.8¢/turn on a 9-page doc and ~3–9s per turn.

Library

import { loadDoc, EditSession, runTurn, serializeDoc } from 'aldus-pdf';
import { readFormFields, setFieldValues } from 'aldus-pdf'; // deterministic form I/O

const doc = await loadDoc('form.pdf');
const session = new EditSession(doc);
await runTurn({ doc, session, prompt: 'Fill the form: name Ana, plan Pro' });
await session.save('filled.pdf');

What the agent can do

Text edit/move/color/size/delete · images move/delete/insert · highlight (create/ recolor/remove) · links · watermark · header/footer · form fields: create any type (text/checkbox/radio/select/list/button/signature), move/delete, read values + positions, and fill (by field name or by the [[id]] of the reading view). It's aware of the full geometry & style of every element.

MIT · source