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

flitter-ui

v0.2.0

Published

Flitter — A high-performance JavaScript rendering engine inspired by Flutter. Declarative Canvas/SVG graphics, interactive charts, and complex UIs for the web.

Readme


Installation

npm install flitter-ui

What's Inside

flitter-ui is the all-in-one package that bundles:

  • Rendering Engine — declarative widget system with SVG and Canvas support
  • Chart Library — 20+ chart types, two visual styles, fully composable
  • CLI — shadcn-style init and add commands to scaffold charts into your project

CLI Usage

# Initialize a Flitter project (creates flitter.json)
npx flitter-ui init

# Add a chart — full source code lands in your project
npx flitter-ui add bar-chart

# Choose a style variant
npx flitter-ui add bar-chart --style toast
npx flitter-ui add bar-chart --style ag

Available Charts

Bar · Line · Area · Pie · Donut · Radar · Scatter · Bubble · Heatmap · Treemap · Stacked Bar · Stacked Area · Box Plot · Candlestick · Waterfall · Funnel · Histogram · Sankey · Sunburst · Bullet

Standalone Usage (Vanilla JS)

import { Container, Alignment, Text, TextStyle, AppRunner } from "flitter-ui";

document.querySelector("#app").innerHTML = `
  <div style="width: 600px; height: 400px" id="container">
    <svg style="width: 100%; height: 100%" id="view"></svg>
  </div>
`;

const app = new AppRunner({
  view: document.querySelector("#view"),
  window: window,
  document: document,
});

app.onMount({
  resizeTarget: document.querySelector("#container"),
});

app.runApp(
  Container({
    alignment: Alignment.center,
    color: "lightblue",
    child: Text("Hello, Flitter!", {
      style: new TextStyle({ fontSize: 24, fontWeight: "bold" }),
    }),
  })
);

Both SVG and Canvas renderers are supported — use <svg> or <canvas> as the view element.

Framework Integrations

| Framework | Package | Install | |-----------|---------|---------| | React | @flitterjs/react | npm install flitter-ui @flitterjs/react | | Svelte | @flitterjs/svelte | npm install flitter-ui @flitterjs/svelte |

Widget API

Flitter provides Flutter-style widgets for building any visual structure:

Container · Column · Row · Stack · Positioned · Text · SizedBox · Padding · Center · Align · Expanded · Flexible · FractionallySizedBox · GestureDetector · AnimatedContainer · Transform · Opacity · ClipRRect and more.

import {
  Container,
  Column,
  Text,
  TextStyle,
  Alignment,
  BoxDecoration,
  BorderRadius,
  Radius,
} from "flitter-ui";

Container({
  alignment: Alignment.center,
  decoration: new BoxDecoration({
    color: "#f0f9ff",
    borderRadius: BorderRadius.all(Radius.circular(12)),
  }),
  child: Column({
    children: [
      Text("Title", { style: new TextStyle({ fontSize: 20, fontWeight: "bold" }) }),
      Text("Subtitle", { style: new TextStyle({ fontSize: 14, color: "#64748b" }) }),
    ],
  }),
});

Documentation

Full API reference, interactive examples, and guides at ui.flitter.dev.

License

MIT