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

@decocms/start

v0.22.1

Published

Deco framework for TanStack Start - CMS bridge, admin protocol, hooks, schema generation

Readme

@decocms/start

npm version license

Framework layer for Deco storefronts built on TanStack Start + React 19 + Cloudflare Workers.

Provides CMS block resolution, admin protocol handlers, section rendering, schema generation, edge caching, and SDK utilities. This is not a storefront — it's the npm package that storefronts depend on.

Install

npm install @decocms/start

Architecture

@decocms/start        ← Framework (this package)
  └─ @decocms/apps    ← Commerce integrations (VTEX, Shopify)
       └─ site repo   ← UI components, routes, styles

Package Exports

| Import | Purpose | |--------|---------| | @decocms/start | Barrel export | | @decocms/start/cms | Block loading, page resolution, section registry | | @decocms/start/admin | Admin protocol (meta, decofile, invoke, render, schema) | | @decocms/start/hooks | DecoPageRenderer, LiveControls, LazySection | | @decocms/start/routes | CMS route config, admin routes | | @decocms/start/middleware | Observability, deco state, liveness probe | | @decocms/start/sdk/workerEntry | Cloudflare Worker entry with edge caching | | @decocms/start/sdk/cacheHeaders | URL-to-profile cache detection | | @decocms/start/sdk/cachedLoader | In-flight dedup for loaders | | @decocms/start/sdk/useScript | Inline <script> with minification | | @decocms/start/sdk/useDevice | SSR-safe device detection | | @decocms/start/sdk/analytics | Analytics event types | | @decocms/start/matchers/* | Feature flag matchers (PostHog, built-ins) | | @decocms/start/types | Section, App, FnContext type definitions | | @decocms/start/scripts/* | Code generation (blocks, schema, invoke) |

Worker Entry Request Flow

Request → createDecoWorkerEntry()
 ├─ Admin routes (/live/_meta, /.decofile, /deco/render, /deco/invoke)
 ├─ Cache purge check
 ├─ Static asset bypass (/assets/*, favicon)
 ├─ Cloudflare edge cache (profile-based TTLs)
 └─ TanStack Start server entry

Edge Cache Profiles

| URL Pattern | Profile | Edge TTL | |-------------|---------|----------| | / | static | 1 day | | */p | product | 5 min | | /s, ?q= | search | 60s | | /cart, /checkout | private | none | | Everything else | listing | 2 min |

Peer Dependencies

  • @tanstack/react-start >= 1.0.0
  • @tanstack/store >= 0.7.0
  • react ^19.0.0
  • react-dom ^19.0.0

Development

npm run typecheck   # tsc --noEmit
npm run lint        # biome check
npm run check       # typecheck + lint + unused exports

This is a library — no dev server. Consumer sites run their own vite dev.

License

MIT