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

invovate

v0.1.1

Published

Official JavaScript/TypeScript client for the Invovate invoice API — generate PDF, JSON & UBL 2.1 invoices in 11 languages from one call. Zero dependencies.

Downloads

293

Readme

invovate

Official JavaScript / TypeScript client for the Invovate invoice API. Generate PDF, JSON, or UBL 2.1 invoices in 11 languages (incl. Arabic RTL, Japanese, Hindi, Cyrillic) from one call. Zero dependencies — uses the built-in fetch (Node 18+, Bun, Deno, Cloudflare Workers, browsers).

npm install invovate

Quick start

import { Invovate } from 'invovate';

// JSON totals work WITHOUT a key. PDF, UBL, QR codes, and hosted/shareable links
// require a free API key (inv_…) — get one instantly, no card, at https://invovate.com/auth
const client = new Invovate({ apiKey: process.env.INVOVATE_API_KEY });

// 1) Compute totals (no key needed)
const totals = await client.calculateTotals({
  from: { name: 'Acme LLC' },
  to:   { name: 'Globex Corp' },
  currency: 'USD',
  items: [{ description: 'Consulting', quantity: 2, unit_price: 150, tax_rate: 10 }],
});
console.log(totals.grand_total); // 330

// 2) Get a downloadable PDF link (requires a free API key)
const { hostedUrl } = await client.createPdfLink({
  from: { name: 'Acme BV', tax_id: 'NL0012' },
  to:   { name: 'Client KK' },
  language: 'nl', currency: 'EUR', template: 'modern',
  items: [{ description: 'Onderhoud', quantity: 1, unit_price: 450, tax_rate: 21 }],
});
console.log(hostedUrl); // https://invovate.com/api/i/...  (renders the PDF, valid 7 days)

With an API key (direct file bytes)

const pdf = await client.createPdf({ from, to, items, output: 'pdf' }); // Uint8Array
import { writeFile } from 'node:fs/promises';
await writeFile('invoice.pdf', pdf);

const xml = await client.createUbl({ from, to, items }); // UBL 2.1 XML string

API

| Method | Returns | Key | |--------|---------|-----| | calculateTotals(invoice) | totals object | no | | createPdfLink(invoice) | { hostedUrl, invoice } (7-day link) | no | | createPdf(invoice) | Uint8Array (PDF bytes) | yes | | createUbl(invoice) | UBL 2.1 XML string | yes | | batch(invoices) | batch result (≤ 50) | yes | | generate(invoice, { output, hostedLink, idempotencyKey }) | low-level | — |

Idempotent retries: pass { idempotencyKey: 'your-key' } to any generate call.

Errors throw InvovateError with .status, .code, .requestId.

Notes

  • Languages: en, nl, de, fr, es, it, pt, ar, ja, ru, hi. Templates: classic, modern, bold, minimal, navy.
  • Money: ISO 4217 codes; per-line tax_rate (%), or taxes: [{name, rate}] for multi-component (CGST+SGST/VAT).
  • Not regulated e-invoicing. UBL is for interoperability/archival — no Peppol/Factur-X/XRechnung/NF-e compliance.

Docs: https://invovate.com/api · AI agents: https://invovate.com/invoice-api-for-ai-agents · MCP server: https://invovate.com/mcp-invoice-generator

License

MIT © Invovate