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

@mkpoli/tyler

v0.7.2

Published

Typst package compiler for the ease of packaging and publishing Typst templates.

Readme

Tyler

Tyler is a Typst package compiler for the ease of packaging and publishing Typst libraries and templates.

https://github.com/user-attachments/assets/49bd7e94-8fd3-4ead-bede-2e58471d1a85

Features

  • 📥 Install package locally to be able to use with @local/somepkg:0.1.0
  • 📄 Compile relative entrypoint import (e.g. ../lib.typ) to preview import (e.g. @preview/somepkg:0.1.0)
  • 🔄 Bump the version of the package interactively or with specified semver as CLI argument
  • 🔍 Check if the package manifest (typst.toml) is valid before publishing
  • 📦 Package the library or package into typst/packages ready for publishing
  • 🚀 Semi-automatic publishing that creates a PR to the Typst preview package repository
  • 📝 Prompt for PR fulfillment
  • ℹ️ Display local environment information (Typst executable and package directory)
  • (TODO) Automatic publishing
  • (TODO) Task runner
  • (TODO) Thumbnail compressing
  • (TODO) Thumbnail generating
  • (TODO) Linting / Type Checking

Installation

npm install -g @mkpoli/tyler

or

bun i -g @mkpoli/tyler

Usage

It is recommended to put all your source files in a src directory and run Tyler from the root of your project, or you can specify custom source directory (even root directory) with --srcdir option, however, in that case, you need to add files to --ignore option manually (e.g. --ignore="CONTRIBUTING.md,hello.world,neko/*") to remove them from the distributed package.

Basics

Run the following command in your typst package will check the package and build it, then install the built package to Typst local package group (-i) as well as prepare the package for publish and display instructions to create a PR (-p):

tyler build -i -p

Examples

Check

Check if the package manifest (typst.toml) is valid and required properties / files e :

tyler check

Build

Build the package in current directory and output to dist directory:

tyler build

Build the package then install it to Typst local package group:

tyler build -i

Build the package in /home/user/typst/some-package and output to /home/user/typst/packages/packages/preview/some-package/0.1.0:

tyler build /home/user/typst/some-package --outdir=/home/user/typst/packages/packages/preview/some-package/0.1.0

Publish

You need to have git and it is recommended to have gh (GitHub CLI) installed to publish the package.

tyler build -p

If you are experiencing the following error, you can try to downgrade HTTP/2 to HTTP/1.1 by git config --global http.version HTTP/1.1 (to reverse it, do git config --global http.version --unset):

error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 1143 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Environment

Display the local package directory and the Typst executable path:

tyler env

Configuration

You can pass options to tyler commands directly or via [tool.tyler] section in your typst.toml file. The CLI options will override the config options, and the config options are limited to the following (with the default value noted):

[tool.tyler]
srcdir = "src"
outdir = "dist"
ignore = []

CLI options can be checked with tyler --help and tyler <command> --help command.

Development

bun install

Emulating

bun tyler <command> [options]

Publishing

bun run bump && bun publish

Trivia

Tyler is named after something like Typst + Compiler or Typst + Butler.

License

MIT License © 2024 mkpoli