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

@v-tilt/core

v1.0.0

Published

Shared framework-agnostic primitives for the vTilt SDKs (internal, bundled, not published)

Readme

@v-tilt/core

Framework-agnostic primitives shared by the vTilt SDKs.

Internal package. @v-tilt/core is private and not published to npm. It is bundled into @v-tilt/browser and @v-tilt/node at build time, so integrators never install it directly. It exists only to keep cross-SDK logic in one place.

What lives here

Only logic that is genuinely identical across SDKs and depends on nothing but the JavaScript runtime (so it runs in the browser, Node, Cloudflare Workers and Deno alike):

| Module | Exports | Why it is shared | | ------------------ | --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | compression.ts | Compression, MIN_COMPRESSION_SIZE, jsonStringify, withCompressionParam, gzipToBytes | Both SDKs POST batches to the same ingestion endpoint, which decodes compression=gzip-js over the raw bytes. The gzip call, the compression= URL flag, and the bigint-safe JSON serializer must stay byte-identical. | | uuidv7.ts | uuidv7 | Time-ordered $insert_id generation used for idempotency/ordering. | | event-emitter.ts | EventEmitter, Listener | Minimal typed emitter for SDK lifecycle hooks, with no dependency on Node's events. |

What does NOT belong here

  • Anything that touches the DOM, navigator, XMLHttpRequest, Blob, or browser transport selection — that stays in @v-tilt/browser (request.ts, session-recording.ts).
  • Anything that depends on Node-specific globals.
  • The browser's SimpleEventEmitter — it is intentionally separate: it is string-keyed with once/wildcard support and logger integration, and is wired into many browser-only features.

Consumption

Both SDKs add @v-tilt/core as a workspace:* dev dependency and bundle it (Rollup node-resolve). fflate stays external so a single copy is deduped by the consuming package. Build @v-tilt/core before the SDKs — Turborepo's ^build ordering handles this automatically.

# from repo root
pnpm --filter @v-tilt/core build
pnpm --filter @v-tilt/node build

Scripts

pnpm run build        # rollup → dist (CJS + ESM + d.ts)
pnpm run type-check   # tsc --noEmit
pnpm run lint         # eslint
pnpm run test         # jest