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

flexa-fds-ide

v0.1.0

Published

Editor/IDE support core for the Flexa Design System tokens — completions, off-system diagnostics and hover facts an extension can call, plus a terminal CLI to look tokens up.

Readme

flexa-fds-ide

Editor/IDE support core for the Flexa Design System tokens — the pure functions an editor extension (or your terminal) calls to write token-first values with confidence: completions for a partial token id, diagnostics that flag an off-system token, and hover facts for a known token.

Resolved literals come from flexa-fds-export, so what an editor shows (space.4 → 1rem, color.primary → #2563eb) matches what the frozen CSS emitter renders. Nothing here talks to a specific editor API — that thin, non-testable shell lives outside the monorepo and calls these.

CLI

fds-ide complete color.pri   # id  type  value, best matches first
fds-ide describe space.4     # resolved facts for one token
fds-ide check color.primry   # off-system diagnostic (exit 1 when flagged)
$ fds-ide check color.primry
error: Unknown token "color.primry" in reserved namespace "color". Did you mean "color.primary"?

API

import { completeToken, describeToken, diagnoseToken } from 'flexa-fds-ide';

completeToken('color.pri');   // [{ id:'color.primary', type:'color', value:'#2563eb', rank:0, … }, …]
describeToken('space.4');     // { id, cssVar:'--fx-space-4', type:'dimension', tier:'semantic', value:'1rem' }
diagnoseToken('color.primry');// { severity:'error', message:'…', suggestions:['color.primary', …] }
diagnoseToken('color.primary')// null  — a real token is fine
diagnoseToken('1rem');        // null  — a plain literal, not ours to judge

completeToken ranks whole-id prefixes first, then per-segment prefixes, then substring hits (ties break by id) — so both color.pri and a bare primary surface color.primary.

Off-system diagnostic

A value in a token-first control is either a real token, a plain literal (#fff, 1rem, a third-party myplugin.brand), or a mistake: an id whose first segment is a reserved token namespace (color, space, ref, …) that resolves to nothing. diagnoseToken flags exactly the third case — the same rule the AI validate gate enforces — and offers the nearest real ids as repairs (same-namespace, ranked by edit distance).

Why a separate package

Per the FDS distribution rules, tooling stays out of the zero-dependency flexa-design-system package. This consumes the registry and lives beside it — installing it never adds weight to FDS itself.

Trust

ide.spec.ts locks the behaviour: every completion/hover value equals the resolved literal from flexa-fds-export (which itself dogfoods against the frozen CSS emitter), no unresolved {alias} or var() ever surfaces, and the off-system diagnostic passes real tokens + plain literals while flagging bogus reserved-namespace ids.

Deferred

The VS Code extension host (activation, completion/diagnostic/hover providers wired to the editor API) is a thin shell that can't be unit-tested in the monorepo — it belongs outside, calling this core. Only the pure lookups live here, where they are gate-covered.