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

@graphenedata/cli

v0.0.16

Published

<div align="center"> <br/> <a href="https://graphenedata.com"> <img height="125" alt="Graphene Logo" src="./assets/logo.png" /> </a> <br/> <br/> </div>

Readme

Why Graphene?

In the future, we believe most low-level data analytics work will be done by agents, allowing humans to focus on insights and decision-making. However, today's tools weren't built with agents in mind:

  • They are GUI centric. Lots of actions can only be done via GUI and aren't accessible to external agents like Claude.
  • They focus on raising the floor at the expense of lowering the ceiling (limited viz types, simplified querying APIs).
  • They assume the human user has the tribal knowledge and business context necessary for analysis.

If we really want agents to be more productive with data, an entirely new toolset is needed.

Graphene is:

  • [x] Built for agents. Everything is code, written only in languages that are prevalent in training data (SQL, Markdown, HTML). All actions are CLIs; nothing is trapped in a button.
  • [x] High-ceiling. Agents can create any visualization that's supported by ECharts, one of the most feature-complete visualization libraries. And Graphene's query language is as powerful as ANSI SQL, which supports 170+ functions, CTEs, subqueries, set operations, window functions, arrays, and more.
  • [x] Optimized for agent context. Graphene's SQL language contains a semantic layer which allows metrics and join relationships to be invoked in queries. When combined with agent skills for general business context and best practices, agents perform at human levels of competency.

Open, forever

Importantly, Graphene is open. You can use this project for internal purposes for free, forever, and aren't locked in to a contract with us. More details below.

Rich visualizations

Graphene pages support visualizations, input components for filtering and dynamic behaviors, and layout modes for monitoring-oriented dashboards vs. narrative-oriented notebooks.

Powerful workflows

When you deconstruct data analytics into code, CLIs, and coding agents, things that used to be hard become easy:

  • Promote metrics from pages into the model, or demote metrics out of the model back into pages
  • Bulk refactors in a single atomic commit/PR
  • Ability to use extensive skill/MCP ecosystem to augment agent behavior
  • Iterate on a dashboard (edit, run, view) without needing to push up to some API or open a SaaS portal
  • Validate SQL and page syntax instantaneously as you type
  • Set up a recurring agent that de-bloats, consolidates your model over time

Get started

Graphene currently supports Snowflake, BigQuery, ClickHouse, and local data (via DuckDB) as data sources. It is easy for us to add more - just ask.

Once your project is set up, simply start the dev server via npm exec graphene serve (or pnpm graphene serve, etc. based on your package manager) and then prompt your coding agent to do analytics work: answer a data question, build a dashboard, edit the model, etc.

How it works

A Graphene project can either be a standalone repo or a directory within a larger codebase (such as dbt). It is comprised of:

  • Semantic models, via .gsql files. GSQL is both a modeling language and a query language, in the same way that SQL has both DDL and DML.
  • Pages, via .md files. Pages are typically used for dashboards, but can also contain notebook-style narratives, documentation, and other visual content.

Graphene itself is a CLI which can be installed via npm (or pnpm, yarn, etc.). The CLI can run and compile GSQL queries, render pages in the browser, check syntax, print screenshots, and more.

GSQL and Graphene markdown

Semantic models are defined like so:

table orders (
  id BIGINT
  user_id BIGINT
  amount FLOAT
  status STRING

  join one users on user_id = users.id  -- many orders per user

  is_complete: status = 'Complete'      -- dimension (scalar expression)
  revenue: sum(amount)                  -- measure (agg expression)
  aov: revenue / count(*)               -- measures can compose
)

table users (
  id BIGINT
  name VARCHAR

  join many orders on id = orders.user_id
)

Models are then queried via select, either directly via CLI or inside a Graphene markdown page like this.

```sql top_customers
select
  users.name as name,   -- Use the dot operator to traverse the modeled join relationship
  revenue               -- Invokes the measure
from orders             -- A join statement here is not needed
group by 1
order by 2 desc
limit 10
```

<BigValue data="orders" value="revenue" />
<BarChart data="top_customers" x="name" y="revenue" />

Documentation

Graphene's entire documentation ships as an agent skill in the Graphene npm package. The source files are available here.

FAQ