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

@vit-foundation/ui

v0.28.0

Published

Fundació VIT's shared Svelte 5 component library with pluggable edit mode

Readme

@vit-foundation/ui

Fundació VIT's shared Svelte 5 component library: the components behind fundaciovit.org, decoupled from any one app, with an optional edit mode that lets a CMS-shaped consumer make the rendered content editable in place.

npm install @vit-foundation/ui

Requires svelte ^5.0.0 as a peer. Import the two stylesheets once:

<script>
	import '@vit-foundation/ui/tokens.css';
	import '@vit-foundation/ui/base.css';
</script>

The library at a glance

Everything exports flat from the root, and again grouped by role:

| Entry point | What lives there | | --------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | /primitives | Button, GhostButton, Link, CardMedia, CardTitle, CopyIntro, DateText, DecorShapes, FilterChips, Pagination, RichText, SearchInput, ShareRow | | /forms | Field, SelectField, TextField, FormFeedback, FormErrorFeedback, FormResultSlot, Honeypot, LocaleField, NewsletterIntentField — plus the remote-form seam: structural types, transport constants, field bounds | | /chrome | PageShell, Nav, Footer | | /content | WeeklieCard, ProjectCard, Timeline, TimelineMilestone, TeamMemberCard, CollaboratorList, JobList, SortSelect, the nine page modules (HomePage … WeeklyPage) — plus the data shapes, the page-copy vocabulary, helpers and the two list rules (createWeeklyList, createUrlFilters) | | /community | AuthPageShell, LoginForm, SignupForm, GoogleAuthForm, AccountPanel, NewsletterSignup, CommentSection, ReactionBar, ContactForm | | /edit | Editable, setEditAdapter(adapter, EDIT_CHROME)/getEditAdapter, descriptors and helpers, collectionEditing, LocalizedText | | /config | UiProvider, UiConfig, the locale set, the default Catalan messages | | /contract | The component-free half: LOCALES, BASE_LOCALE, localize, REACTIONS, PAGE_COPY_KEYS and the edit-descriptor types — the one subpath a host may import from SERVER code | | /testing | createRemoteFormMock — the remote-form stand-in for stories and tests |

Every component renders standalone (Catalan copy, identity hrefs); an app integrates its i18n and router through one UiProvider in the root layout.

Documentation

  • Getting started — install, styles, entry points, wiring UiProvider (with the foundation website's Paraglide + SvelteKit example)
  • Edit mode — descriptors, the EditAdapter contract, the Editable primitive, the editing UX, the save semantics
  • Forms — the remote-form seam: passing preflighted forms in, keyed factories, the shared constants, the form building blocks
  • Theming — the design tokens and the base utilities
  • Component referenceprimitives · chrome · content · community
  • Storybooknpm run storybook: every component has a story; Edit mode/EditMode demos the whole editing loop against an in-memory adapter

Two design rules worth knowing before anything else

  1. The package never talks to a backend. Content arrives as props; edits leave through an injected EditAdapter; remote forms are passed in preflighted by the host against its own schemas. An app that injects nothing gets a read-only render, byte-identical to a build with no edit mode at all.
  2. Shared constants have one owner. The honeypot field name, the newsletter-intent encoding, and the field bounds export from ./forms; host apps import them into their schemas so markup and server envelope can never drift apart.

Development

npm install
npx playwright install chromium --only-shell # once, for component tests
npm run storybook  # component workbench
npm run check && npm run lint && npm run test:unit -- --run
npm run build      # svelte-package + publint

Internally, components live in src/lib/components/<website-group>/ with stories in components/stories/<group>/ and tests in components/tests/<group>/ — the layout they had in fndvit-website, kept diffable against history. The public structure is the semantic entry points above, assembled in src/lib/{primitives,chrome,content-components,community}.ts and src/lib/forms/index.ts.

Releases are MANUAL: bump with npm version, then npm publish. The workflow this paragraph used to describe fired on every v* tag, had no NPM_TOKEN and no lint, check or test step, so it failed every time and was deleted; prepublishOnly (lint, check, unit tests) is the only publish gate now. Push the tag by all means — nothing reads it.