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

@frontera-sdk/blueprint

v1.50.19

Published

React hooks for reading Blueprint data and invoking governed Actions from inside a Frontera app.

Readme

@frontera-sdk/blueprint

React hooks for reading Blueprint — the organization-wide model of object types, properties, links and metrics — from inside a Frontera app.

bun add @frontera-sdk/blueprint @frontera-sdk/core react @tanstack/react-query
import { blueprintProvider } from '@frontera-sdk/blueprint/provider'
import { useObjects } from '@frontera-sdk/blueprint/hooks'
import { createFronteraApp } from '@frontera-sdk/core/create-frontera-app'

createFronteraApp(<App />, { providers: [blueprintProvider] })

function App() {
  const { data, isLoading } = useObjects('Shipment', {
    where: { property: 'deliveryStatus', op: 'eq', value: 'late' },
    pageSize: 20,
  })
  return <p>{isLoading ? 'Loading…' : `${data?.rows.length} late`}</p>
}

Generate workspace types

Inside a Frontera App, run:

frontera blueprint generate-types

This writes src/generated/frontera-blueprint.ts, which augments the SDK from the active Blueprint slice granted to the authenticated workspace. When that file is part of the TypeScript project, object names and returned rows are inferred automatically; filter, projection, and ordering property names are checked as well.

const shipments = useObjects('Shipment', {
  where: { property: 'status', op: 'eq', value: 'delayed' },
  select: ['shipmentId', 'status'],
})

Commit the generated file. Run frontera blueprint generate-types --check in an authenticated CI freshness gate; do not generate during install or build. Apps without a generated registry retain the existing string-keyed behavior, and explicit calls such as useObjects<MyRow>('Shipment') remain supported.

Filter on the server

where compiles into the object set, so the server filters and pages. Filtering the returned array instead narrows one page and misreports every total — a filter matching 8,961 records renders 5 of them under "Page 1 of 1". For the same reason a total is its own query (useAggregate with a count over the same object set), never rows.length.

Page with cursors

The query API uses stable cursor pagination, not page numbers. Omit pageToken for the first request, then pass the response's nextPageToken to the next request:

const rows = useObjects('Shipment', { pageSize: 25, pageToken })
const next = rows.data?.nextPageToken

nextPageToken is present exactly when hasMore. Keep previously received tokens in UI state if the experience needs a Previous button. Changing a filter, projection, or ordering invalidates that history and must return to the first page.

Entry points

| Import | What it is | |---|---| | @frontera-sdk/blueprint/hooks | useObjects, useAggregate, useObjectInstance | | @frontera-sdk/blueprint/provider | the provider createFronteraApp takes | | @frontera-sdk/blueprint/blueprint-client | the client underneath the hooks | | @frontera-sdk/blueprint/types | request and response types, WhereNode |

Every read is scoped by the credential the host handed over at handshake, so an object type the workspace was not granted is absent rather than forbidden.

License

Apache-2.0. See LICENSE.