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

@uplink-code/vocabulary

v0.2.0

Published

Uplink semantic vocabulary — zod schemas + TS types + JSON Schema + JSON-LD context for connector output types (Paystub, Employment, Coverage, Policy, Route, Vehicle, SportsActivity, Claim, AggregateStat).

Readme

Uplink Semantic Vocabulary

Canonical entity types that connector bundles emit. Consumers (Trove, chatbots, dashboards, ETL, whatever) reason about output at the level of what a thing is rather than how a specific connector shaped its response.

Type identifiers use the uplink: URI prefix. Arrays are denoted by [] suffix — e.g. uplink:Route[].

Design

  • Semantic, not presentational. Types describe entities — no guidance about rendering. That's the consumer's decision.
  • Additive. New types don't break older consumers; older consumers simply don't know about the new type and fall back to whatever their default handler is (raw JSON, drop, etc.).
  • Versioned. Once a type ships, its shape is frozen at v1. Breaking changes bump to uplink:Route/v2 — consumers can support multiple versions during migration.
  • Bundle-declared. A connector's action manifest declares outputType: 'uplink:Route[]' so consumers can discover typed outputs without executing the action.

Layout

vocabulary/
  package.json               @uplink-code/vocabulary (npm package)
  tsconfig.build.json
  README.md                  this file
  schemas/
    AggregateStat.json       uplink:AggregateStat v1
    Claim.json               uplink:Claim v1
    Coverage.json            uplink:Coverage v1
    Employment.json          uplink:Employment v1
    Paystub.json             uplink:Paystub v1
    Policy.json              uplink:Policy v1
    Route.json               uplink:Route v1
    SportsActivity.json      uplink:SportsActivity v1
    Vehicle.json             uplink:Vehicle v1
  src/
    <type>.ts                zod schema + inferred TS type per vocabulary type
    context.ts               JSON-LD @context map
    ld.ts                    annotate() helper
    index.ts                 re-exports
  dist/                      built JS + .d.ts (gitignored)

Each schemas/*.json file is a JSON Schema (draft 2020-12); the $id field is the canonical type identifier. The src/ directory carries the same shapes as zod schemas + inferred TS types for runtime consumers — bundles import them via the published package rather than re-declaring, so a change to a vocabulary type lands in one place.

The two representations are kept in sync by hand today. When the vocabulary surface stabilizes, we'll pick one (zod or JSON Schema) as the source of truth and derive the other.

Consuming from a bundle

import { PaystubSchema, type Paystub, annotate } from "@uplink/vocabulary";

const paystub: Paystub = PaystubSchema.parse(raw);
return annotate(paystub, "uplink:Paystub/v1"); // stamps @context/@type

Bundles resolve @uplink/vocabulary via their deno.json imports map to npm:@uplink-code/vocabulary@^0.1.0 — same pattern as @uplink/connector.

annotate() is optional. It embeds the JSON-LD @context + @type on the wire payload so downstream consumers (LLMs, partners, stored records) can identify the type without side-channel metadata. If ctx.transform() already tags the transform event with a semanticModel, embedding is duplicative — skip it unless the payload will be consumed outside the invocation context.

Consuming from other repos

Any Node / TS repo installs @uplink-code/vocabulary from npm:

import { PaystubSchema, type Paystub } from "@uplink-code/vocabulary";

Consumers that only need the JSON Schemas (validators, code-gen for other languages, docs) can point at node_modules/@uplink-code/vocabulary/schemas/*.json.

Where this lives

The vocabulary is a package inside the connectors repo, published to npm and GitHub Packages as @uplink-code/vocabulary. Bundles import it via the @uplink/vocabulary alias (mapped in each bundle's deno.json), matching the @uplink/connector pattern. Other repos (fishbone, console, docs, iOS SDK) install @uplink-code/vocabulary directly.

Adding a type

  1. Draft the JSON Schema at schemas/{Name}.json with $id: "uplink:{Name}/v1".
  2. Add the zod schema + TS type at src/{name}.ts, mirroring the JSON Schema.
  3. Re-export from src/index.ts. Add the type to context.ts.
  4. Bump package.json version. Merge to main → publish workflow ships it.
  5. Update any connector bundles that should emit the new type in their outputType.
  6. Consumers add renderers/handlers for the new type at their own pace.