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

tkeron

v5.1.0

Published

CLI build tool for vanilla web development with TypeScript.

Readme

Tkeron

CLI build tool for vanilla web development. TypeScript compilation, component organization, zero runtime.

Powered by Bun.

Install

# Install Bun first
curl -fsSL https://bun.sh/install | bash

# Install Tkeron
bun install -g tkeron

Features

  • TypeScript → vanilla JavaScript
  • HTML components (.com.html) - inline at build time
  • TypeScript components (.com.ts) - dynamic generation
  • Markdown components (.com.md) - write content in Markdown, rendered to HTML at build time
  • Pre-rendering (.pre.ts) - DOM manipulation at build time
  • Dev server with hot reload
  • Zero config

Usage

tk init my-site    # Create project
tk dev             # Dev server (localhost:3000)
tk build           # Build to web/

Examples

HTML Component:

<!-- counter-card.com.html -->
<section>
  <h2>Counter</h2>
  <button id="increment">Click me!</button>
  <div>Clicks: <span id="count">0</span></div>
</section>

TypeScript Component:

// user-badge.com.ts
const count = com.getAttribute("count") || "3";
const items = [];
for (let i = 1; i <= parseInt(count); i++) {
  items.push(`<li>Item ${i}</li>`);
}
com.innerHTML = `<ul>${items.join("")}</ul>`;

Pre-rendering:

// index.pre.ts
const response = await fetch("https://api.quotable.io/random");
const data = await response.json();
document.getElementById("quote").textContent = data.content;

Documentation

📖 Full Documentation

Commands

tk init <name>           # Initialize new project
tk build                 # Build project (websrc → web)
tk dev [port] [host]     # Dev server with hot reload (default: localhost:3000)

Aliases: tk i, tk b, tk d

See CLI Reference for all options.

MCP Server (AI Integration)

Tkeron includes a Model Context Protocol server for AI agents.

Setup:

bun install -g tkeron

Configure in VS Code (~/.config/Code/User/mcp.json):

{
  "servers": {
    "tkeron": {
      "command": "tkeron-mcp"
    }
  }
}

Note: Other editors may use different configuration formats.

See MCP Documentation for details.

Testing API

Tkeron exports a testing helper to validate your built projects:

import { getBuildResult } from "tkeron";
import { expect, it } from "bun:test";

it("should render my component", async () => {
  const result = await getBuildResult("./websrc");
  const dom = result["index.html"].dom;

  const myComponent = dom.getElementById("my_component");
  expect(myComponent.innerHTML).toBe("expected content");
});

Returns: Record<string, FileInfo> with:

  • dom - Parsed DOM (HTML files only)
  • getContentAsString() - File content (text files only)
  • fileName, filePath, path - Path info
  • type - MIME type
  • size - File size in bytes
  • fileHash - SHA-256 hash

Requirements

  • Bun runtime (Node.js not supported)
  • Linux, macOS, or Windows (WSL)

Examples

Check the examples/ directory for working projects:

  • init_sample/ - Template with all features
  • with_pre/ - Pre-rendering examples
  • with_com_html_priority/ - Component resolution
  • with_com_ts/ - TypeScript components

License

MIT


📖 Read the full documentation to learn everything about Tkeron.