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

@zoobzio/foundation

v0.0.2

Published

A design system for Vue 3 + Nuxt, delivered as a **single Nuxt layer**. Foundation spans the full range from behavior-free HTML element wrappers up to stateful, generic data widgets — consumed by extending one layer.

Readme

@zoobzio/foundation

A design system for Vue 3 + Nuxt, delivered as a single Nuxt layer. Foundation spans the full range from behavior-free HTML element wrappers up to stateful, generic data widgets — consumed by extending one layer.

Usage

Extend Foundation from your app's nuxt.config:

export default defineNuxtConfig({
  extends: ["@zoobzio/foundation"],
});

Pre-1.0 — published to npm as an early alpha under the alpha dist-tag, so install it explicitly: pnpm add @zoobzio/foundation@alpha. A 0.x release is the running alpha; expect breaking changes between minors until 1.0.

Architecture

Foundation is one Nuxt layer rooted at app/, organized into tiers by responsibility:

| Tier | Directory | What it is | | ---------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Elements | components/common/ | Behavior-free HTML wrappers + slot-through primitives, with a modifier system (variant, size, color, radius, density, elevation). No JS behavior. | | Components | components/core/ | Stateful/interactive components composing elements + reka-ui primitives, with full passthrough & slotthrough. | | Widgets | components/data/ | Factory-driven, generic data widgets (table, chart, deck, form, preview). | | System | components/system/ | App-shell composition (workspace layout). |

Data widgets

Each widget pairs a factory (createTable, createForm, …) that returns a reactive interface with a component that renders it:

  • DataTable — paginated, sortable, filterable data grid
  • DataForm — programmatic form over T with zod validation
  • DataChart — configurable chart visualizations
  • DataDeck — infinite-scroll card feeds
  • DataPreview — code / markdown content viewer

Imports

Auto-import is disabled — everything is imported explicitly. Foundation-owned modules use the #foundation/* alias, an absolute path to the layer's app/ so it keeps resolving to Foundation even when the layer is extended by a consumer app:

import Button from "#foundation/components/common/button.vue";
import { createTable } from "#foundation/factories/data/table";
import type { ButtonProps } from "#foundation/types/common/button";

Framework symbols (Vue, Nuxt, VueUse) come from Nuxt's virtual #imports.

Project structure

app/
  components/
    common/     — HTML element wrappers + slot-through primitives (57)
    core/       — interactive components (23)
    data/       — data widgets: table, chart, deck, form, preview (18)
    system/     — app-shell composition (1)
  composables/  — usePassthrough, useRecipe, useToasts, useHighlight, …
  factories/    — data-widget + workspace factories
  schemas/      — zod snapshot schemas
  types/        — per-component prop/emit types
  utils/        — pure helpers (dates, markdown, formatting, codemirror, …)
  constants/    — shared constants
  app.vue · error.vue · app.d.ts
tests/          — vitest suite mirroring app/ (123 files)
nuxt.config.ts  — layer config (auto-import off, #foundation alias)

Development

pnpm install
pnpm dev          # run the layer in a Nuxt dev server
pnpm test         # run the vitest suite
pnpm typecheck    # nuxi typecheck
pnpm lint         # eslint (lint:fix to auto-fix)

Or via make (make help lists all targets):

| Command | Description | | ---------------- | ----------------------------- | | make install | Install dependencies | | make dev | Start the Nuxt dev server | | make lint | Run ESLint | | make lint-fix | Run ESLint with auto-fix | | make typecheck | Type-check (nuxi typecheck) | | make test | Run all tests | | make coverage | Run tests with coverage | | make check | Lint + typecheck + test | | make clean | Remove generated files |

Testing

Tests run under vitest (happy-dom). Because the layer uses explicit imports, Nuxt's virtual #imports is shimmed for the test environment (tests/mocks/imports.ts — real Vue/VueUse + stubbed Nuxt composables), and #foundation / #test are aliased in vitest.config.ts. Component tests mount with @vue/test-utils using the shared stubs in tests/stubs.ts (commonStubs / coreStubs / dataStubs).

Companion modules (in progress)

Theming, i18n, auth, telemetry, and icons are being extracted into standalone modules — @zoobz-io/untheme, @zoobz-io/rosetta, @zoobz-io/rampart, @zoobz-io/crucible, @zoobz-io/iconic. Until they land, the components that depend on them (auth / theme / locale controls, the icon sprite) are not wired up.

Contributing

  • Conventional commits: feat:, fix:, docs:, test:, refactor:, chore:
  • Tests required for all new code
  • make check (lint + typecheck + test) must pass before opening a PR
  • Add a changeset (pnpm changeset) in any PR that should ship a release
  • Node 22, pnpm 9.10.0

Releasing

Versioning runs on changesets. Each PR that changes published behavior carries a changeset (pnpm changeset, then commit the generated file); pre-1.0, minor = feature, patch = fix.

Releases are cut manually via the Release workflow (Actions tab → Run workflow, or gh workflow run Release). It applies every pending changeset — bumping the version, rewriting CHANGELOG.md, committing the bump, publishing to npm, and pushing the tag. Publishing uses npm OIDC trusted publishing (no NPM_TOKEN; provenance is attested), so the package must have a trusted publisher configured on npmjs pointing at this repo's Release workflow.

License

MIT