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

@renderyes/server

v0.1.1

Published

The backend a host runs: catalog/UI registries and the /compose pipeline behind @renderyes/react.

Readme

@renderyes/server

The backend a host runs alongside @renderyes/react: the capability and UI registries, the /compose pipeline, and the HTTP routes that expose them.

import { createViewServer, createViewHttpHandler } from "@renderyes/server";
import { toNodeHandler, createFileCatalogStore } from "@renderyes/server/node";

const server = createViewServer({
  host,
  resolveSession,
  allowedUpstreamOrigins: ["https://api.example.com"],
  catalogStore: createFileCatalogStore(new URL("./data", import.meta.url)),
  // Required to publish a GraphQL capability catalog, which is most hosts:
  // GraphQL carries no notion of where a row came from, so the host says. A
  // publish without it throws and names the field, but the mount is where you
  // would rather find out. See @renderyes/capability-catalog's GRAPHQL.md.
  graphql: { resolveProvenance },
});

await server.restorePublishedCatalogs();

const handler = createViewHttpHandler(server, {
  requireAdmin: (request) => isAdmin(request),
  // Omit entirely when the app and this handler are same-origin. Nested under
  // `cors` — a top-level `allowedOrigins` is not a config field, and in plain
  // ESM nothing rejects it: the handler sends no CORS headers and answers
  // every preflight with 405.
  cors: { allowedOrigins: ["https://your-site.example"] },
});

createViewHttpHandler returns a fetch-standard (Request) => Promise<Response> and owns its route paths; toNodeHandler adapts it to node:http. Published catalogs are held in memory because a capability carries a live executor closure, so they survive a restart only through a catalogStore plus restorePublishedCatalogs() at boot. requireAdmin is required and has no default. CORS is off unless cors is supplied; there is no wildcard, and no default.

The full guides ship with this package, in docs/:

  • docs/QUICKSTART.md — the order to do things in, from install to a composed view.
  • docs/INTEGRATION.md — backend wiring, publishing, cost controls, and persistence.
  • docs/AUTHORING_VIEWS.md — written to be handed to whoever writes the components.
  • docs/CATALOG.md — discovery, review, approval, and publishing.
  • docs/BUILD_A_HOST.md — an end-to-end host implementation.
  • docs/API.md — public behavior and defaults.
  • docs/TROUBLESHOOTING.md — symptom, cause, fix.
  • docs/HOST_INTEGRATION_STEPS.md — the integration sequence at a glance.
  • docs/EXAMPLE_HOST.md — the example domain used throughout the guides.

They also live at https://github.com/mozilor-technologies/RenderYes/tree/main/docs.

The shipped .d.ts files document each config field in context.