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

@tapizlabs/app-kit

v0.1.1

Published

Framework-agnostic app infra shared across Tapiz products (ActionResult, MySQL/Aiven pool config).

Readme

@tapizlabs/app-kit

Framework-agnostic application infrastructure shared across Tapiz spoke products.

"How a spoke technically works" — the plumbing every product duplicates, with no tie to identity (@tapizlabs/identity) or design (@tapizlabs/ui).

Exports

@tapizlabs/app-kit (zero-dependency)

The ActionResult discriminated union for server actions / use cases.

import { ok, fail, isOk, type ActionResult } from "@tapizlabs/app-kit";

function load(): ActionResult<User> {
  if (!user) return fail("Not found", "NOT_FOUND");
  return ok(user);
}

code? is optional — for callers that map machine-readable error codes to UI (FREE_LIMIT_REACHED, PROFILE_MANAGED_BY_LMS, …).

@tapizlabs/app-kit/db (Node only)

buildMysqlPoolOptions(env) — serverless-safe MySQL pool options for an Aiven-hosted spoke DB. Returns a plain options object with zero runtime dependency; the consumer passes it to its own mysql2.createPool(...).

import mysql from "mysql2/promise";
import { buildMysqlPoolOptions } from "@tapizlabs/app-kit/db";

const pool = mysql.createPool(buildMysqlPoolOptions(process.env));
  • Defaults connectionLimit to 1 (Vercel serverless + Aiven free tier: each warm lambda holds its own pool, so N×limit easily exceeds max_connections). Override via DATABASE_POOL_LIMIT.
  • When DATABASE_SSL_CA_BASE64 is set, enables strict TLS with the decoded Aiven CA.

Three-package discipline

@tapizlabs/ui (design) · @tapizlabs/identity (who-you-are / what-you-may) · @tapizlabs/app-kit (how the spoke runs) + @tapizlabs/sdk (LMS API client). Do not add a 4th — anything else risks becoming a junk drawer.

Install

npm install @tapizlabs/app-kit

ESM only. The root entry is zero-dependency; /db is Node-only and expects the consumer to provide mysql2.