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

@kodezen/storeengine-headless

v1.0.0

Published

Framework-agnostic SDK, hooks, components and Gutenberg bridge for headless StoreEngine storefronts. Next.js and Astro bindings included.

Readme

@kodezen/storeengine-headless

SDK, hooks, components, and Gutenberg bridge for StoreEngine headless storefronts on Next.js 16 + React 19.

npm i @kodezen/storeengine-headless

Quick start

// app/layout.tsx
import { StoreEngineProvider } from "@kodezen/storeengine-headless/providers";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        <StoreEngineProvider
          config={{
            wpUrl: process.env.NEXT_PUBLIC_WP_URL!,
            embedKey: process.env.STOREENGINE_EMBED_KEY,
          }}
        >
          {children}
        </StoreEngineProvider>
      </body>
    </html>
  );
}
// app/api/se/[...path]/route.ts
import { createProxyHandler } from "@kodezen/storeengine-headless/proxy";

const handler = createProxyHandler({
  wpUrl: process.env.NEXT_PUBLIC_WP_URL!,
  embedKey: process.env.STOREENGINE_EMBED_KEY,
});

export const GET = handler;
export const POST = handler;
export const PUT = handler;
export const PATCH = handler;
export const DELETE = handler;
export const OPTIONS = handler;

What's in the box

| Path | Exports | |---|---| | @kodezen/storeengine-headless/sdk | Typed fetcher seFetch, paths(), every API function (products, cart, checkout, /me/*), every TS type | | @kodezen/storeengine-headless/auth | useAuthSession, useAuth, authOpts, register, resetPassword | | @kodezen/storeengine-headless/auth/server | createAuthRoutes, readSession, buildAuthorizeUrl — no React, safe on the server | | @kodezen/storeengine-headless/cart | useCart Zustand store | | @kodezen/storeengine-headless/providers | <StoreEngineProvider> | | @kodezen/storeengine-headless/proxy | createProxyHandler() factory | | @kodezen/storeengine-headless/hooks | useMe, useOrders, useDownloads, useSignedDownload, useProducts, useCheckout, …| | @kodezen/storeengine-headless/wp | <WPContent>, <TemplatePart>, <ThemeJsonStyles>, listPages, getPageBySlug, … | | @kodezen/storeengine-headless/format | formatPrice, formatDate |

Registry CLI

npx storeengine list                 # see available components
npx storeengine init                 # create storeengine.json
npx storeengine add storefront/product-card

Components are copied into your project (shadcn-style) so you fully own and can customize them. Registry deps come along automatically, and files you already have are never overwritten.

Full command reference: docs/cli.md.

Two modes

  • Custom UI — write your own React + Tailwind, use the SDK for data.
  • Block Theme — pull layout + design from the active WP block theme via <TemplatePart> and <ThemeJsonStyles>.

Mix-and-match per route.

Docs

License

MIT