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

@chasket/chasket

v0.3.1

Published

Chasket - Template-first Web Component compiler. Compiles .csk template files into JavaScript Web Components.

Readme

@chasket/chasket

Part of the Chasket ecosystem.

Template-first compiler that transforms .csk files into native Web Components.

Zero runtime, zero dependencies. Outputs standard HTMLElement classes with Shadow DOM, scoped CSS, and built-in reactivity.

Installation

npm install @chasket/chasket

CLI Usage

# Create a new project
npx chasket init my-app

# Build for production
npx chasket build

# Type check without emitting
npx chasket check

# Start dev server with live reload
npx chasket dev

Compiler API

const { compile } = require('@chasket/chasket');

const result = compile(source, 'my-component.csk', {
  target: 'js',
  optimize: false,
});

if (result.success) {
  console.log(result.output);  // Generated JavaScript
}

Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | target | 'js' \| 'ts' | 'js' | Output target | | optimize | boolean | false | Enable tree-shaking optimization | | componentRegistry | Map | - | Component registry for auto-imports |

Result

interface CompileResult {
  success: boolean;
  output?: string;             // Generated JavaScript
  dtsOutput?: string;          // TypeScript declarations (.d.ts)
  diagnostics: Diagnostic[];   // Errors and warnings
  sourceMap?: object;
  meta?: {
    name: string;
    shadow: string;
    form: boolean;
  };
}

ES Module & TypeScript Support (v0.3.0)

Components can import from external .ts / .js files. When imports are present, the compiler outputs ES Module format (no IIFE wrapper).

<meta>
  name: "my-app"
</meta>

<script>
  import { createStore } from '../lib/store';

  const store = createStore();
  state count: number = 0
</script>

<template>
  <button @click="increment">{{ count }}</button>
</template>

TypeScript files in src/lib/ are automatically transpiled (type-stripped) to dist/lib/. The dev server also serves .ts as .js on the fly.

# Build with TypeScript output for individual components
chasket build --target ts

Load the bundle with type="module":

<script type="module" src="dist/chasket-bundle.js"></script>

See docs/module-and-typescript.md for the full guide.

Example

<meta>
  name: "x-counter"
  shadow: open
</meta>

<script>
  state count: number = 0
  fn increment() { count += 1 }
</script>

<template>
  <button @click="increment">Count: {{ count }}</button>
</template>

<style>
  button { padding: 8px 16px; border-radius: 8px; }
</style>

Ecosystem

| Package | Description | |---------|-------------| | @chasket/chasket-ssr | Server-side rendering | | @chasket/chasket-router | Client-side SPA router | | @chasket/chasket-store | Reactive state management | | @chasket/chasket-ui | Pre-built UI components | | @chasket/chasket-lsp | Language Server Protocol | | @chasket/vite-plugin-chasket | Vite integration with HMR |

License

MIT