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

@victorylabs/kit

v0.18.0

Published

Opinionated distribution layer for the @victorylabs/* framework. Composes every plugin via defineApp(), provides defineClient() for HTTP clients, ships scaffolds consumed by @victorylabs/cli, and enforces FSD-flavored folder layout via shared biome rules.

Readme

@victorylabs/kit

Opinionated distribution layer for the @victorylabs/* framework. Composes plugins via defineApp(), builds HTTP clients via defineClient(), authors scaffolds via defineScaffold(), and enforces a shared Biome config.

If you're building an app, start here. defineApp() accepts a tuple of withXModule(...) factories and returns a typed App<TModules> surface — app.<module>.<member> exposes each composed module's hooks and callables.

Install

pnpm add @victorylabs/kit

Quick start

import { defineApp } from '@victorylabs/kit'
import { withAuthModule } from '@victorylabs/kit/auth'
import { withNotificationModule } from '@victorylabs/kit/notification'
import { withRouterModule } from '@victorylabs/kit/router'
import { withThemeModule } from '@victorylabs/kit/theme'
import { withTokenModule } from '@victorylabs/kit/token'
import { withUserModule } from '@victorylabs/kit/user'

import { App } from './App'
import { routes } from './routes'

export const app = defineApp({
  target: '#app',
  root: <App />,
  modules: [
    withTokenModule(),
    withUserModule(),
    withRouterModule({ routes }),
    withThemeModule({ defaultMode: 'system' }),
    withNotificationModule({ autoDismissMs: 3000 }),
    withAuthModule({ strategy: myAuthStrategy }),
  ],
})

await app.bootstrap()

// Optional ergonomic single-liners — extract once for frequent callables:
export const { notify } = app.notification
export const { useAuth } = app.auth

Each withXModule(...) factory is the only static-import edge for its plugin class — modules you don't compose never enter the bundle. Skip a module by simply leaving it out of the tuple.

Modules vs. plugins

  • modules: [withXModule(...)] — kit's first-class domains (auth, router, theme, …). Each contributes a typed leaf to app.<module>.<member>.
  • plugins: readonly Plugin[] — consumer-authored plugins. Registered on Core, NOT on the typed app.<module> surface. Reach via custom hooks you author or app.core.get(MyPluginToken).

Key exports

  • defineApp(options) — composes an App<TModules> from a modules tuple plus an optional plugins array. Registers MountReactPlugin last so React-provider contributions are collected before mount.
  • defineClient(options) — opinionated wrapper over FetchPlugin.createClient. Combines withAuth() + withErrorToast() with your custom middleware.
  • defineScaffold(scaffold) — typed identity helper for authoring scaffolds consumed by @victorylabs/cli.
  • KitModule, MODULE_BRAND, getActiveCore, resetActiveCore — public extension points for authoring custom-domain withXModule factories.

Subpath re-exports

Every kit module has a subpath export (@victorylabs/kit/<plugin>) that ships the withXModule factory, the underlying plugin class + token, the React companion (where applicable), and helper factories. Hooks (useAuth, useTheme, useNotification, …) live on the typed app.<module> surface — extract them once in your app/core.tsx if you want single-import ergonomics across files.

import { withThemeModule, ThemeMode } from '@victorylabs/kit/theme'
import { withFetchModule, onStatus, onSlow } from '@victorylabs/kit/fetch'
import { withAuthModule, withAuth, jwtStrategy } from '@victorylabs/kit/auth'

Plugin defaults (logger/token/fetch/theme/etc.) are applied inside each withXModule factory. Override by passing options through the factory (withThemeModule({ defaultMode: 'dark' })).

See also

  • @victorylabs/core — the plugin primitives kit builds on (auto-installed alongside kit; only declare it directly if you need to import core under a strict-pnpm setup)
  • @victorylabs/cli — project scaffolding CLI (consumes kit's scaffolds)