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

@teamem/schema

v0.2.0

Published

Shared contract types for teamem — concept page schema, ingestion API types, Zod validators (open format, MIT)

Readme

@teamem/schema

Shared contract types for teamem: concept page schema, ingestion API types, and Zod validators.

License: MIT — unlike the rest of this repository (AGPL-3.0-only), this package is deliberately MIT-licensed. It is the carrier of teamem's open knowledge format: clients, connectors, and third-party tools are meant to import it freely, without copyleft obligations.

Status

Contract status: v0.3-additive, based on the frozen v0.2 contract. The v0.2 baseline was frozen on 2026-07-17 after five review rounds. The Zod schemas in src/ ARE the contract text ("the appendix is the code"): error envelope, cursor, auth vocabulary, ingestion request/response, batch, compilations, concept/evidence, event, job, audit, and search DTOs.

src/index.ts exports the executable CONTRACT_STATUS and CONTRACT_ADDITIVE_CHANGES. The currently enumerated amendments are:

  • DUA-129: the generic connector persistence seam;
  • DUA-203: search request and response DTOs;
  • DUA-222: users/sessions/invites/memberships DTOs (M2 auth identity);
  • DUA-229: SessionStart context injection DTOs;
  • DUA-230: team/project governance + web-side key minting DTOs;
  • DUA-232: public invite-lookup response DTO;
  • DUA-234: concept contributor/evidence display refs;
  • DUA-248: OKF bundle format contract (bundle layout, per-concept frontmatter with the canonical UUID preserved, teamem://concept/<uuid> → relative Markdown link resolution — see src/export.ts).

src/contract.test.ts pins both the frozen decisions and the additive changelog. Contract changes must remain explicit, versioned, impact-assessed, and tested; casual edits are not allowed.

Install

External consumers install a released version from the public npm registry:

pnpm add @teamem/schema

The package published to npm contains JavaScript and declaration files under dist/. Consumers must use a semver release from the registry; sibling file:, cross-repository workspace:, Git URL dependencies, and copied DTOs are not supported integration paths.

Inside the teamem-server monorepo only, applications continue to use workspace:*. That is an internal development link and is never part of the published CLI dependency graph.

Release

Initial bootstrap

The first public version, 0.1.0, was published manually because npm trusted publishing can only be configured from an existing package's settings page. The one-time bootstrap procedure was:

mkdir -p /tmp/teamem-schema-release
pnpm --filter @teamem/schema pack --pack-destination /tmp/teamem-schema-release
npm publish /tmp/teamem-schema-release/teamem-schema-0.1.0.tgz --access public
npm view @teamem/[email protected] version

Do not run this procedure again for 0.1.0, and do not push a schema-v0.1.0 tag after the manual publication: npm package versions are immutable, so the automated workflow would attempt to publish a version that already exists.

Configure npm trusted publishing

Configure this once after the initial package publication:

  1. Sign in to npm and open the @teamem/schema package.

  2. Open Settings, find Trusted Publisher, and select GitHub Actions.

  3. Enter the following values exactly:

    | Field | Value | | --- | --- | | Organization or user | teamem-ai | | Repository | teamem-server | | Workflow filename | publish-schema.yml | | Environment name | Leave blank | | Allowed actions | npm publish |

    The workflow field accepts the filename only, not .github/workflows/publish-schema.yml. The environment must remain blank because the publish job does not declare a GitHub environment.

  4. Save the trusted publisher.

npm does not validate these values when they are saved. Field values are case-sensitive, and a mismatch is only reported when a workflow attempts to publish.

The workflow uses a GitHub-hosted runner, Node 24, npm 11.5.1, and id-token: write, which satisfy npm's OIDC requirements. It does not require an NPM_TOKEN; npm exchanges the GitHub OIDC identity for a short-lived publishing credential and automatically records package provenance.

Publish a subsequent version

All releases after 0.1.0 use the .github/workflows/publish-schema.yml trusted-publishing workflow:

  1. Update packages/schema/package.json to the intended semver version.

  2. Build, test, pack, and smoke-test the package in the release pull request.

  3. Merge the pull request into main.

  4. From the updated main, create and push an annotated tag whose version exactly matches the package manifest:

    git switch main
    git pull --ff-only
    git tag -a schema-v0.1.1 -m "Release @teamem/schema 0.1.1"
    git push origin schema-v0.1.1
  5. Watch the Publish schema package GitHub Actions run. The workflow: verifies that the tag is annotated, matches the manifest version, and points to main; runs repository validation; creates the release tarball; installs it in an isolated consumer project; and publishes that exact tarball to npm through OIDC.

  6. Verify the public release:

    npm view @teamem/[email protected] version

Replace 0.1.1 in the example with the intended release version. Never reuse or move an existing release tag, and never add a long-lived npm write token to repository secrets.

If publishing fails with ENEEDAUTH, first confirm that the npm trusted publisher fields match the repository and workflow filename exactly and that the workflow still has id-token: write.