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

@flukxr/typst-cli

v0.15.1-npm.0

Published

Run the official Typst CLI through npm on Windows, Linux, and macOS

Readme

@flukxr/typst-cli

Unofficial, cross-platform npm distribution of the Typst CLI.

Install and pin the native Typst compiler as a regular npm dependency. npm selects the matching platform package without install scripts or runtime binary downloads.

This project is not affiliated with or endorsed by Typst GmbH.

Installation

Global CLI

npm install --global @flukxr/typst-cli

typst --version
typst compile main.typ

Project dependency

npm install --save-dev @flukxr/typst-cli

npx typst --version
npx typst compile main.typ

Inside npm scripts, typst is available directly:

{
  "scripts": {
    "build:docs": "typst compile main.typ main.pdf"
  }
}

Example main.typ:

= Hello from npm

Supported platforms

npm selects one optional platform package for Windows, Linux, or macOS on x64 or ARM64. Typst 0.6.0 through 0.8.0 do not support Windows ARM64 because their pinned ring 0.16 dependency cannot compile for that target.

Versioning

Versions follow <typst-version>-npm.<packaging-revision>. For example, 0.15.0-npm.0 contains Typst 0.15.0. The npm revision changes only when the packaging needs an update; it does not indicate a Typst prerelease.

Packaging-only changes are listed in the project changelog.

Update through npm so the package manifest and lockfile stay in sync:

npm install --save-dev @flukxr/typst-cli@latest

The native typst update command is blocked because it would modify the executable inside node_modules outside npm's package management.

To stay on one Typst release while receiving packaging fixes:

npm install --save-dev "@flukxr/typst-cli@^0.14.2-npm.0"
npm update @flukxr/typst-cli

Programmatic API

typstPath is the absolute path to the selected native executable. version is the upstream Typst version.

const { spawnSync } = require("node:child_process");
const { typstPath, version } = require("@flukxr/typst-cli");

console.log(`Using Typst ${version}`);

const result = spawnSync(
  typstPath,
  ["compile", "main.typ", "main.pdf"],
  { stdio: "inherit" },
);

if (result.error) throw result.error;
process.exitCode = result.status ?? 1;

Binary provenance and verification

Unchanged official release binaries are used whenever available. Selected historical targets are built from the corresponding official source tag with a pinned Rust toolchain. Package metadata records the source commit, toolchain, target, and SHA-256. Automated publications use npm Trusted Publishing and provenance.

This distribution is unofficial. Typst is licensed under Apache-2.0; generated platform packages include the upstream LICENSE and NOTICE. The JavaScript launcher is licensed under MIT.