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

@tishlang/vite-plugin-tish

v0.1.0

Published

Vite plugin for Tish: in-graph .tish compilation with HMR and source maps for dev.

Readme

@tishlang/vite-plugin-tish

Official Vite plugin for Tish. It compiles each .tish file directly into Vite's module graph, so editing a module hot-swaps in place (HMR) instead of triggering a full page reload, and dev builds carry source maps back to the original .tish.

This replaces the common out-of-band shim that ran tish build over the whole program and sent { type: 'full-reload' } on every change.

Requirements

  • Vite 5 or newer.
  • The tish CLI on your PATH (from @tishlang/tish), or pass tishPath.
  • Tish module output (tish build --target js --format esm) — the same per-module ESM emit the plugin relies on. See the JS target docs.

Install

npm install -D @tishlang/vite-plugin-tish

Usage

// vite.config.js
import { defineConfig } from "vite";
import tish from "@tishlang/vite-plugin-tish";

export default defineConfig({
  plugins: [tish()],
});

Import .tish modules as normal ES modules:

<script type="module" src="/src/main.tish"></script>
// src/main.tish
import { makeCounter } from "./counter.tish"

let next = makeCounter(0)
console.log(next())

Editing counter.tish updates the running app without a full reload, and runtime errors point back to the .tish source in Vite's overlay and the browser debugger.

Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | tishPath | string | $TISH_PATH or tish | Path to the tish binary. | | projectRoot | string | Vite root | Root for resolving bare specifiers / node_modules. | | mode | "hmr" \| "full-reload" | "hmr" | hmr hot-swaps modules; full-reload reloads the whole page on any .tish change. |

When to use full-reload

For apps compiled to --target bytecode (the wasm VM owns all engine state), per-module HMR does not apply — use mode: "full-reload" as the documented fallback.

How it works

The plugin registers resolveId + load so each .tish import becomes one module in Vite's graph, compiled via tish compile-module --target js --format esm --vite-dev. Relative .tish specifiers are preserved so Vite resolves dependencies through the plugin per module; a self-accepting import.meta.hot.accept() boundary is injected so leaf edits hot-swap. handleHotUpdate returns the changed module node(s) to Vite for per-module invalidation instead of a full reload.

License

PIF