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

@novahelm/client

v2026.6.1

Published

NovaHelm client — NovaRPC client and NovaState (createNovaApp / defineState).

Readme

@novahelm/client

Unified client SDK for NovaHelm — tRPC client setup with React Query, auth hooks, file uploads, remote config, push notifications, collection CRUD, module access, and design config.


Quick Start

pnpm add @novahelm/client
import { createNovaClient, NovaProvider } from "@novahelm/client";

const client = createNovaClient({
  baseUrl: "https://api.example.com",
  projectSlug: "my-app",
});

export default function App({ children }) {
  return (
    <NovaProvider client={client}>
      {children}
    </NovaProvider>
  );
}

Auth Hook

import { useAuth } from "@novahelm/client";

function Profile() {
  const { user, signIn, signOut, isLoading } = useAuth();

  if (isLoading) return <span>Loading...</span>;
  if (!user) return <button onClick={() => signIn()}>Sign In</button>;

  return <span>Hello, {user.name}</span>;
}

Collection Hooks

CRUD operations on platform collections (schema-builder tables):

import { useCollection, useCollectionRow, useCollectionMutation } from "@novahelm/client";

function PostsList() {
  const { data, isLoading } = useCollection("posts", {
    limit: 20,
    orderBy: "createdAt",
  });

  return data?.map((post) => <div key={post.id}>{post.title}</div>);
}

function PostDetail({ id }) {
  const { data: post } = useCollectionRow("posts", id);
  const { create, update, remove } = useCollectionMutation("posts");

  return <button onClick={() => update(id, { title: "Updated" })}>Save</button>;
}

File Upload

import { useUpload } from "@novahelm/client";

function UploadButton() {
  const { upload, progress, isUploading } = useUpload({
    endpoint: "/api/upload",
    onSuccess: (url) => console.log("Uploaded:", url),
  });

  return <input type="file" onChange={(e) => upload(e.target.files[0])} />;
}

Module Hooks

Check module availability and access module extensions at runtime:

import { useModuleEnabled, useModuleConfig, useModuleComponent } from "@novahelm/client";

function FeatureGate() {
  const enabled = useModuleEnabled("project-docs");
  if (!enabled) return null;

  const DocsWidget = useModuleComponent("project-docs", "sidebar-widget");
  return DocsWidget ? <DocsWidget /> : null;
}

API Reference

| Export | Description | |--------|-------------| | createNovaClient(config) | Create tRPC + React Query client | | NovaProvider | React context provider for the client | | useNovaClient() | Access the client instance from context | | useAuth() | Authentication state and actions | | useUpload(opts) | File upload with progress tracking | | useConfig(key, opts) | Fetch configuration values by key | | usePushNotifications() | Push notification registration and permissions | | useExperiment(key) | A/B experiment variant access | | useWebVitals(opts) | Core Web Vitals monitoring | | useCollection(table, opts) | List collection rows with pagination | | useCollectionRow(table, id) | Fetch a single collection row | | useCollectionMutation(table) | Create, update, delete collection rows | | useModuleEnabled(slug) | Check if a module is enabled | | useModuleConfig(slug) | Get module configuration | | useModuleComponent(slug, key) | Get a React component from a module | | useModuleHook(slug, key) | Call a module hook function | | useDesignConfig(opts) | Access resolved design/theme config |