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

cvexp

v2.1.0

Published

Render a resume JSON file to a polished A4 PDF (and matching HTML). React SSR + Tailwind v4 + headless Chrome. Single template, zero theming.

Readme

cvexp

JSON → A4 PDF resume. One template, no theming knobs.

Pipeline: React SSR → Tailwind v4 (compiled at build time) → Uint8Array via a caller-supplied Puppeteer-compatible browser. No browser is bundled — works on Node.js and Cloudflare Workers alike.

Install

npm i cvexp

Usage

generate(input, browser) validates input, renders HTML via React SSR, then uses the provided browser to produce a PDF. Returns { html: string; pdf: Uint8Array }. Validation throws an Error whose cause is a ZodError — pretty-print with z.prettifyError(cause).

Node.js

import { launch } from "chrome-launcher";
import puppeteer from "puppeteer-core";
import { generate } from "cvexp";

const chrome = await launch({ chromeFlags: ["--headless=new"] });
const { webSocketDebuggerUrl } = await fetch(`http://127.0.0.1:${chrome.port}/json/version`).then((r) => r.json());
const browser = await puppeteer.connect({ browserWSEndpoint: webSocketDebuggerUrl });

const { html, pdf } = await generate(resumeData, browser);

await browser.disconnect();
chrome.kill();

Cloudflare Workers

import puppeteer from "@cloudflare/puppeteer";
import { generate } from "cvexp";

const browser = await puppeteer.launch(env.BROWSER);
const { html, pdf } = await generate(resumeData, browser);
await browser.close();

return new Response(pdf, { headers: { "Content-Type": "application/pdf" } });

HTML only (no browser required)

import { renderResumeToHTML } from "cvexp";
const html = renderResumeToHTML(resumeData);

A complete sample lives in examples/resume.json.

Schema

Add a $schema reference to your resume JSON for IDE autocomplete:

{
  "$schema": "./node_modules/cvexp/dist/cvexp.schema.json",
  "basics": { "name": "Jane Doe" },
  "summary": "...",
  "experience": { "items": [] }
}

Top-level keys: basics, summary, experience, education, skills, languages. Every field has a default — {} is valid and renders a blank page. Full field-level descriptions in the published cvexp.schema.json.

Styling

One template. Recolour by editing a single token in src/styles/tailwind.css:

@theme {
  --color-accent: #3b82f6;
}

No theme-switcher, no template gallery — by design.

Development

pnpm install
pnpm generate    # tests/sp.json → output/ (requires local Chrome)
pnpm verify      # format:check + lint + typecheck + knip + build + publint + attw + test + smoke

Releases

Automated via semantic-release. Push a Conventional Commit to main and a release ships itself — feat: bumps minor, fix:/refactor:/perf:/build: bump patch, BREAKING CHANGE: bumps major. chore:/test:/style:/ci: produce no release. Never bump the version manually.

License

MIT — see LICENSE.