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

@myrialabs/typkit

v0.0.3

Published

Fast TypeScript schema validation with rich inline-compiled constraints, zero-allocation hot path, Standard Schema and JSON Schema export — a Zod/ArkType/TypeBox alternative for Node, Bun & the browser.

Readme


TypKit is a TypeScript validation library. You describe a schema by chaining readable constraints (or with an equivalent config object); the first time you run it, the whole tree is compiled into a single monomorphic function via new Function. Chaining is build-time only — it compiles to the identical validator — so the happy path allocates nothing, and rich constraints (maxLines, charset, blockWords, formats, ranges) compile to inline code instead of closures. Every schema is a Standard Schema and exports JSON Schema.

import { t } from '@myrialabs/typkit';

const Comment = t.object({
  author: t.string().minLength(3).maxLength(20).charset('a-z0-9_'),
  email: t.string().email(),
  body: t.string().nonEmpty().maxLines(500).blockWords(BANNED),
  rating: t.int().min(1).max(5),
  tags: t.string().array().optional(),
  visibility: t.enum(['public', 'private']),
});

Comment.check(value);                  // boolean — zero-allocation hot path
Comment.assert(value);                 // throws on failure, returns typed value
Comment.parse(value);                  // { value } | { issues }
Comment['~standard'].validate(value);  // Standard Schema — Elysia, Hono, tRPC
Comment.toJsonSchema();                // OpenAPI / JSON Schema
type Comment = t.infer<typeof Comment>;
bun add @myrialabs/typkit      # or: npm install @myrialabs/typkit

Why TypKit

  • Rich constraints that stay fast. maxLines, charset, blockWords, allowedWords, and inline format checks (email, uuid, ipv4, Luhn creditCard, …) compile to literal loops. Competitors fall back to .refine()/.check()/.narrow() closures — 2.3–3.2× slower — and TypeBox can't express them at all.
  • Zero-allocation hot path. check() returns a boolean; a validated value is never wrapped in a new object, and an issue path is built only when something fails. It sits in the compiled fast tier with ArkType and TypeBox, and runs 8–90× faster than Zod, Valibot, and effect/Schema — see bench-results.md.
  • Works everywhere, no adapter. Standard Schema means Elysia, Hono, tRPC, react-hook-form, and TanStack Form accept a schema directly.
  • JSON Schema in, OpenAPI out. toJsonSchema() maps 1:1 from the config object, so frameworks generate OpenAPI / Swagger straight from your validation schema.
  • Honest type inference. t.infer<> is full and precise, and stays light on tsc (about a quarter of ArkType's instantiations).
  • Self-documenting fluent API. Chain readable constraints — t.int().min(1).max(5) — with no cryptic gte/lt: min/max are inclusive, greaterThan/lessThan exclusive. Chaining is build-time only, so it compiles to the same validator as the equivalent config object and costs nothing at runtime.
  • Zero runtime dependencies. Node 18+, Bun, and the browser.

Documentation

License

MIT © Myria Labs