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

@devxcommerce/knya-types

v0.9.0

Published

Knya BFF response types + Strapi/Shopify codegen output. Consumed by knya-bff (BFF-internal) and knya-mobile (root export only) per ADR-0016.

Readme

@devxcommerce/knya-types

Brand-scoped types package for Knya. Per workshop ADR-0016: three subpath exports.

| Export | Audience | Contents | |---|---|---| | . (@devxcommerce/knya-types) | mobile + BFF | Per-route response types under src/routes/ (split by BFF module) + leaf primitives under src/{customer,orders,wishlist,tracking}.ts | | ./strapi | BFF-internal only | Strapi codegen output (DocumentNodes + types) at src/strapi/generated.ts | | ./shopify | BFF-internal only | Shopify Storefront + Admin codegen output at src/shopify/{storefront,admin}.ts |

Layout

types/src/
├── index.ts                  ← root barrel (re-exports everything below)
├── routes/                   ← per-BFF-module response types
│   ├── auth.ts               ←   /v1/auth/*
│   ├── account.ts            ←   /v1/account/{profile,addresses}/*
│   ├── cart.ts               ←   /v1/cart/embroidery/upload
│   ├── orders.ts             ←   /v1/orders/*
│   ├── wishlist.ts           ←   /v1/wishlist/*
│   ├── pages.ts              ←   /v1/pages/:handle (C3 — pre-baked, not shipped)
│   ├── collections.ts        ←   /v1/collections/:handle{,/products} (C4 — pre-baked)
│   └── products.ts           ←   /v1/products/:handle (C5 — pre-baked)
├── customer.ts               ← leaf: CustomerProfile, CustomerAddress, MailingAddressInput
├── orders.ts                 ← leaf: OrderSummary, OrderDetail, DisplayStatus, Embroidery
├── tracking.ts               ← leaf: ClickPostWaybillResult, ClickPostStatusObject
├── wishlist.ts               ← leaf: WishlistProductNode
├── strapi/                   ← codegen output (BFF-internal subpath)
│   ├── index.ts
│   └── generated.ts
└── shopify/                  ← codegen output (BFF-internal subpath)
    ├── index.ts
    ├── storefront.ts
    └── admin.ts

Adding a new route: land the BFF handler at bff/src/modules/<domain>/handlers.ts → add the response type to types/src/routes/<domain>.ts. The barrel re-exports everything in routes/.

Regenerating codegen output

# From the repo root:
bun run codegen             # regen from committed SDL snapshots (offline)
bun run codegen:introspect  # refresh SDL snapshots from live endpoints (rare)

Codegen writes to types/src/strapi/generated.ts, types/src/shopify/storefront.ts, types/src/shopify/admin.ts.

CI drift check: bun run codegen && git diff --quiet runs in the quality job — catches .gql edits that weren't paired with a bun run codegen run before commit (per workshop ADR-0015). Offline; reads only the committed SDL snapshots.

Publishing

@devxcommerce/knya-types is published to GitHub Packages (npm.pkg.github.com) as a private package.

package.json is publish-ready (publishConfig, repository, files whitelist, 0.1.0 version stamped). The actual publish workflow (.github/workflows/release.yml) lands as a separate task — defer until mobile begins consuming the package, since the BFF resolves it via workspace:* in this monorepo and doesn't need a published artifact.

To dry-run a publish locally:

bun --cwd types pack    # produces a tarball; inspect contents before publishing