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

tekivex-templates

v0.1.2

Published

Pre-built PDF templates — Biodata, Invoice, Certificate, Resume, Ticket, Boarding Pass, Receipt — built on tekivex-pdf. Drop in, render, ship.

Readme

tekivex-templates

Pre-built PDF templates for tekivex-pdf. Drop in, render, ship.

Seven structured-document templates, all built on the public PDF primitive API. Each is a single React component you compose with your data and render via renderToPDF().

Install

npm install tekivex-templates tekivex-pdf @react-pdf/renderer

tekivex-pdf is a peer dependency — install both as a pair.

What's in the box

| Template | Use case | Page size | |---|---|---| | BiodataTemplate | South-Asian matrimonial profile | A4 portrait | | InvoiceTemplate | Sales invoice with tax + totals | A4 portrait | | CertificateTemplate | Recognition / completion certificate | A4 landscape | | ResumeTemplate | ATS-friendly single-column CV | A4 portrait | | TicketTemplate | Event admission with QR stub | Half-letter | | BoardingPassTemplate | Airline boarding pass | Wide 612×252 | | ReceiptTemplate | POS thermal-printer receipt | 80mm × auto |

Quick example

import { renderToPDF } from 'tekivex-pdf';
import { BiodataTemplate } from 'tekivex-templates';

const buffer = await renderToPDF(
  <BiodataTemplate
    data={{
      name: 'Priya Sharma',
      photoUrl: 'data:image/jpeg;base64,…',
      personal: [
        { label: 'Date of Birth', value: '14 Aug 1998' },
        { label: 'Height', value: "5'4\"" },
      ],
      education: [
        { label: 'Degree', value: 'B.Tech (Computer Science)' },
      ],
      family: [
        { label: 'Father', value: 'Rajesh Sharma' },
      ],
    }}
    watermark="PREVIEW · session-abc123"
  />
);

// In a Next.js / Express / Vercel handler:
return new Response(buffer, {
  headers: {
    'Content-Type': 'application/pdf',
    'Content-Disposition': 'inline; filename="biodata.pdf"',
  },
});

Subpath imports for tree-shaking

Each template lives at its own subpath, so consumers using only one template don't pay for the others:

import { BiodataTemplate } from 'tekivex-templates/biodata';
import { InvoiceTemplate } from 'tekivex-templates/invoice';

The root tekivex-templates re-exports all of them for convenience.

Why a separate package vs everything in tekivex-pdf

The audit recommended this split for three reasons:

  1. Independent versioning — template-data shape changes shouldn't force a tekivex-pdf major bump
  2. Smaller coretekivex-pdf stays a clean primitive layer; people using only PDF primitives don't pay for templates they're not using
  3. Forkability — templates are opinionated (font choices, layouts, decorative elements). Splitting them out makes it cleaner to fork and customise without forking the core

Customising a template

Every template accepts a theme prop (PDFThemeTokens) plus its data shape. For deeper customisation:

  1. Copy the template's source from this package into your repo
  2. Edit freely — it's all built on the public tekivex-pdf primitive API
  3. Render with renderToPDF(<YourCustomBiodata data={…} />)

Or use npx tekivex-add (shadcn-style scaffolder) to copy a template's source into your project automatically.

Status

Preview. Source-available; npm publish on demand.