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

@overscore/client

v0.20.0

Published

React hooks for Overscore dashboards — one useQuery() hook: load once into DuckDB-WASM, query many

Readme

@overscore/client

React hooks for Overscore dashboards. One useQuery() hook: load once into DuckDB-WASM, query many.

Your dashboard's queries are registered server-side and run against your warehouse. This package fetches the results as Arrow, loads them into DuckDB in the browser, and lets you filter, join and aggregate them locally — so a dropdown change is a millisecond, not a round trip.

Install

npm install @overscore/client

Use

Wrap your app once:

import { OverscoreProvider } from "@overscore/client";

<OverscoreProvider
  projectSlug={import.meta.env.VITE_OVERSCORE_PROJECT_SLUG}
  dashboardSlug={import.meta.env.VITE_OVERSCORE_DASHBOARD_SLUG}
>
  <App />
</OverscoreProvider>

Then read a registered query by name:

import { useQuery } from "@overscore/client";

const { data, loading, error } = useQuery("revenue_by_month");

Querying locally

Pass SQL as a second argument and it runs in DuckDB against the loaded result, not your warehouse:

const { data } = useQuery(
  "revenue_by_month",
  `SELECT month, SUM(total_revenue) AS revenue
   FROM revenue_by_month
   WHERE month >= '2026-01'
   GROUP BY month
   ORDER BY month`
);

Join across several registered queries by passing an array. This is the reason the local engine exists — combining two results in JavaScript means looping over both raw datasets, which is how a metric ends up computed somewhere nobody can read or audit:

const { data } = useQuery(
  ["revenue_by_month", "targets_by_month"],
  `SELECT r.month, r.revenue, t.target
   FROM revenue_by_month r
   JOIN targets_by_month t USING (month)`
);

Re-run on dependency change by passing a third argument, the same way you would with useEffect:

const { data } = useQuery("orders", `SELECT * FROM orders WHERE region = '${escapeSql(region)}'`, [region]);

Also exported

| Export | Purpose | |---|---| | usePreload, useLoadingProgress | warm queries at mount, report load progress | | useOverscore, useRefreshAll | provider context, force a refresh of every query | | useCsvExport | CSV export with a row cap | | toCsv, downloadTextFile, safeFilename | export primitives | | escapeSql | escape a value before interpolating it into local SQL |

Docs

License

Proprietary. Part of the Overscore platform.