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

@davvidbaker/flame-chart

v0.3.0

Published

Standalone React flame chart, plus Flambe's production chart embed (ChartHarness).

Readme

@davvidbaker/flame-chart

Two exports:

  • @davvidbaker/flame-chart — a generic span renderer. No Flambe types, Redux, or Phoenix.
  • @davvidbaker/flame-chart/flambe — Flambe’s production Timeline / FlameChart, seeded from fixture trace data (the same ChartHarness Storybook uses). No login and no backend.

The Flambe app does not render the generic export as its chart. Develop the product chart in the app Storybook.

Install

From npm (when published):

npm install @davvidbaker/flame-chart

From this repo, after building the package:

cd frontend/packages/flame-chart
npm install
npm run build

# in the consuming app
npm install /absolute/path/to/flambe/frontend/packages/flame-chart

React and React DOM are peer dependencies. The /flambe embed also needs styled-components (peer).

Flambe chart (fixture / trace)

This is the API for embedding Flambe’s chart on another site (for example a Next.js page). Pass activities, events, and threads as an AppChartFixture. Mark the module as a client component; the chart uses window, canvas, and localStorage.

'use client';

import { ChartHarness, type AppChartFixture } from '@davvidbaker/flame-chart/flambe';

const you = { id: 1, name: 'you', rank: 0 };
const sketch = {
  id: 10,
  name: 'Ship a weekend sketch',
  categories: [1],
  thread: you,
  thread_id: 1,
};

const fixture: AppChartFixture = {
  traceId: 1,
  traceName: 'demo',
  threads: [you],
  categories: [
    { id: 1, name: 'coding', color_background: '#efc360', color_text: '#000000' },
  ],
  attentionShifts: [],
  events: [
    { id: 101, timestamp: Date.now() - 12_000, phase: 'B', activity: sketch },
    { id: 102, timestamp: Date.now() - 1_000, phase: 'E', activity: sketch },
  ],
};

export function Demo() {
  return <ChartHarness fixture={fixture} height={480} />;
}

createAppChartFixture() and createFrontiersFixture() are also exported for the Storybook samples. Pass viewport and demoOverlays={false} when rendering a frozen share snapshot.

Next.js: import from a Client Component (or next/dynamic with ssr: false). The chart will not render during SSR.

Generic spans

import { FlameChart, type FlameSpan } from '@davvidbaker/flame-chart';

const spans: FlameSpan[] = [
  { id: 'task', label: 'Implement task', start: 0, end: 8200, lane: 'agent', depth: 0 },
  { id: 'inspect', label: 'Inspect repo', start: 100, end: 1200, lane: 'agent', depth: 1 },
];

export function AgentWork() {
  return <FlameChart spans={spans} height={280} />;
}

start and end are arbitrary numeric units. Milliseconds are a natural default.

Publish

This package is public on npm as @davvidbaker/flame-chart. CI publishes from frontend/packages/flame-chart via trusted publishing when package.json on main changes. Local npm publish needs npm access to @davvidbaker.

Compose production chart panes

ChartHarness supplies the trace, settings, and shared viewport. With no children it renders the app layout. Provide children to choose your own panes and layout:

import {
  ChartHarness,
  TimelineFlameChart,
  TimelineTimeSeries,
} from '@davvidbaker/flame-chart/flambe';

// A flamechart without timeseries or limbo panes.
<ChartHarness fixture={fixture} height={400} demoOverlays={false}>
  <TimelineFlameChart />
</ChartHarness>

// Both panes share pan/zoom, even when their containers have different widths.
<ChartHarness fixture={fixture} height={600}>
  <div style={{ display: 'grid', gridTemplateRows: '120px 1fr', height: '100%' }}>
    <TimelineTimeSeries />
    <TimelineFlameChart />
  </div>
</ChartHarness>

Panes fill their parent; give each parent a height. Each accepts className and style. Use one flamechart per harness, with zero or more timeseries panes. Selection, tooltips, and activity details belong to the flamechart pane. Removing or remounting a timeseries does not reset the flamechart viewport. Each pane maps the same visible time range across its own width; equal widths align timestamps vertically. Navigation remains in the existing imperative animation path rather than routing every frame through the Redux store.