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

@nano-ui-kit/a2ui-retrieval

v0.0.1

Published

A2UI retrieval — pattern search, catalog + taxonomy navigation, intent classification, clarity assessment, anti-pattern detection, prompt analysis, feedback/gap stores. The primitive layer every A2UI generator needs; pairs with @nano-ui-kit/a2ui-corpus an

Readme

@nano-ui-kit/a2ui-retrieval

A2UI retrieval primitives — pattern search, catalog + taxonomy navigation, intent classification, clarity assessment, anti-pattern detection, prompt analysis, and the feedback / gap stores. The layer every A2UI generator needs; opinionated on what "A2UI" means but generator-agnostic beyond that.

Pairs with:

Install

npm install @nano-ui-kit/a2ui-retrieval \
            @nano-ui-kit/a2ui-corpus \
            @nano-ui-kit/a2ui-utils

What's inside

Catalog + taxonomy

  • getCatalog(), getComponent(type), getComponentsByCategory(cat) — load and navigate the full NanoUI component registry.
  • classifyIntent(q), getDomain(name), getAllDomains() — domain router.
  • getTraits(), getTraitsByCategory(cat) — trait catalog.

Pattern library

  • getAllPatterns(), getPattern(name), searchPatterns(q, opts) — hand-authored reference patterns. Keyword-ranked.
  • semanticSearchPatterns(q, { llmAdapter }) — embedding-ranked.
  • registerPattern(p) — runtime add; used by pattern-export and training ingestion.
  • getComponentData(type) — per-component a2ui metadata.

Intent processing

  • isConversational(q) — gate on purely chatty inputs.
  • assessClarity(q) — ambiguity / missing-signal detection.
  • decomposeIntent(q), composeSubtasks(subtasks) — multi-part intents.
  • analyzePrompt(q) — concept + signature extraction.

Validation + feedback

  • checkAllAntiPatterns(messages) — anti-pattern detector.
  • checkIntentAlignment(intent, messages) — coverage + drift check.
  • feedbackStore.record(...) + .analyze() — thumbs-up/down corpus.
  • loadGaps(), addGap(...) — gap registry.

Wiring

  • getWiringCatalog() — handlers, actions, controllers available for compose-layer event wiring.

Use outside the compose pipeline

Anyone building their own A2UI generator can use this directly:

import { classifyIntent, searchPatterns, assembleContext } from '@nano-ui-kit/a2ui-retrieval';

const intent = 'pricing table with three tiers';
const domain = classifyIntent(intent);      // → 'layout'
const hits = searchPatterns(intent, { domain, limit: 5 });
const context = await assembleContext(intent, { patterns: hits });

// hand `context` to your own LLM call, emit A2UI.

The data this reads (patterns, compositions, fragments, component schemas) comes from @nano-ui-kit/a2ui-corpus. No hand-wiring required.

Development / design notes

  • Node + browser: filesystem paths are Node-only; the Vite-flavored globs cover the browser build.
  • State: the feedback/ and gaps/ stores are file-backed at @nano-ui-kit/a2ui-corpus/{feedback,gaps}/ — local-session state, not shipped with the corpus tarball.

License

MIT © Kim Granlund