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

@ratiosolver/flick

v0.2.9

Published

A tiny and focused UI framework designed for clarity and speed

Readme

Flick

Flick is a tiny and focused UI framework designed for clarity and speed. It is built on top of Snabbdom for efficient Virtual DOM handling and Bootstrap for styling, providing strictly typed functional components to build reactive web interfaces.

Fast Virtual DOM powered by Snabbdom 🎨 Bootstrap 5 Integration out-of-the-box 🧩 Functional Component architecture 💎 Written in TypeScript 🔄 Explicit Reactivity model

Overview

Flick takes a functional approach to UI development. Instead of complex state management systems or class-based components, it relies on simple functions that return Virtual DOM nodes. Reactivity is handled explicitly—you update your state variables and call flick.redraw() to update the view.

Key features include:

  • Declarative UI – Build views using simple functions.
  • Built-in Components – Ready-to-use Bootstrap components like Navbar, Offcanvas, Table, ListGroup, and Toast.
  • Manual Redraw Control – Full control over when the UI updates.

Installation

To install Flick, use npm:

npm install @ratiosolver/flick

Usage

Flick exports a singleton instance flick to manage mounting and redrawing the application. Components are just functions that return Snabbdom VNodes.

Here is a simple interactive counter example:

import { flick, Button, App, Navbar, OffcanvasBrand, NavbarList, NavbarItem } from '@ratiosolver/flick';
import { h } from 'snabbdom';

// 1. Define your state
let count = 0;

// 2. Define actions that update state and trigger a redraw
function increment() {
    count++;
    flick.redraw();
}

// 3. Mount the application
flick.mount(() => {
    // The main render function returns the entire app view

    const navbar = Navbar(
        OffcanvasBrand('Counter App'),
        NavbarList([
            NavbarItem('Home', () => console.log('Navigating to Home'), true)
        ])
    );

    const content = h('div.container.mt-5.text-center', [
        h('h1', 'Welcome to Flick'),
        h('p.lead', `Current count is: ${count}`),
        Button('Increment', increment)
    ]);

    // The App component typically wraps the layout
    return App(navbar, content);
});

Components

Flick provides helpers for common Bootstrap components. For example, creating a table:

import { Table, Row, flick } from '@ratiosolver/flick';

const headers = ['ID', 'Name', 'Role'];
const users = [
  { id: 1, name: 'Alice', role: 'Admin' },
  { id: 2, name: 'Bob', role: 'User' }
];

const UserTable = () => Table(
    headers, 
    users.map(user => Row(
        [user.id.toString(), user.name, user.role], 
        () => console.log(`Clicked ${user.name}`)
    ))
);