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

@stetcms/config

v0.1.1

Published

The shape of stet.config.ts, shared by the Vite plugin and CLI of Stet, the CMS for marketing and engineering.

Downloads

319

Readme

@stetcms/config

CI Docs License

The shape of stet.config.ts: one file describing a project's whole Stet integration, read by @stetcms/vite and @stetcms/cli so the two can never disagree about which Stet a project talks to.

Stet is the CMS where marketing owns the content model and engineering gets a typed client generated from it.

Install

npm install @stetcms/config

Usage

// stet.config.ts
import { defineAnalytics, event } from '@stetcms/analytics';
import { defineStet } from '@stetcms/config';
import { z } from 'zod';

export default defineStet({
  output: 'src/stet.gen.ts',
  analytics: defineAnalytics({
    events: { signup: event({ plan: z.enum(['free', 'paid']) }) },
  }),
});

| Key | Default | Description | | ----------- | --------------------------------- | -------------------------------------------------------------------------------------------- | | origin | STET_ORIGIN or the hosted cloud | The Stet deployment to generate from and send to. | | apiKey | STET_API_KEY | Organization API key. Prefer the environment (see below). | | output | src/stet.gen.ts | Where the generated content client goes. | | watch | true | Regenerate while the dev server runs. | | analytics | none | The tracking plan, from defineAnalytics(). |

A plugin option or a CLI flag beats the config file, which beats the environment, which falls back to the default. resolveStetConfig() is that ladder, exported so both tools run the same one.

Keep the key out of the file

apiKey exists for unusual setups, but a key written here is a key in your git history. Export STET_API_KEY instead and leave it unset; everything else in the config is safe to commit, and committing it is what keeps type checks working without a running Stet.

Why its own package

defineStet has to be loadable in two places that share no other code: build tools load it under plain Node, and your app loads it again at runtime to serve the analytics route. So this package has no dependencies and no relative imports, and it keeps analytics opaque — the content client never has to know what an event is, and the analytics SDK never has to know about codegen.

License

Apache-2.0