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

@haskou/vfd-console

v0.1.0

Published

Framework-agnostic VFD interface components with static 14-segment geometry.

Readme

CI codecov npm version Renovate license

VFDConsole

@haskou/vfd-console is a framework-agnostic TypeScript and CSS library for building interfaces that behave like physical vacuum fluorescent displays. Every character position, segment, meter block, and indicator stays mounted. Updates only change discrete active states.

The project is inspired by AmberConsole and its lightweight, CSS-first approach to reusable display interfaces: modular stylesheets, stable theme tokens, framework-independent components, and a demo that also serves as a reference implementation. VFDConsole applies that philosophy to VFD hardware, with fixed 14-segment cells, permanently mounted indicators, discrete state changes, and segmented meters.

VFDConsole demo playing a FLAC through its animated spectrum analyzer and meters

Open the standalone live demo →

Install

yarn add @haskou/vfd-console
import {
  BalanceMeter,
  PeakLevelMeter,
  SegmentDisplay,
  SpectrumMeter,
  Spinner,
  TextScroller,
  VolumeMeter,
} from '@haskou/vfd-console';
import '@haskou/vfd-console/css';

The package is ESM-only and targets modern browsers with ES2022 support. Module evaluation is safe in non-DOM environments, but component instances must be created in a browser because they own real DOM elements.

The build can also be consumed directly. Import the browser module from an inline module script so its exports are available to the application:

<link rel="stylesheet" href="vfd-console.css" />

<div
  class="vfd-panel"
  data-vfd-preset="aiwa"
  data-vfd-blur="true"
  data-vfd-mesh="true"
>
  <div id="track-number"></div>
</div>

<script type="module">
  import { SegmentDisplay } from './vfd-console.js';

  const trackNumberElement = document.querySelector('#track-number');
  if (!(trackNumberElement instanceof HTMLElement)) {
    throw new Error('Track number host not found.');
  }

  const trackNumber = new SegmentDisplay(trackNumberElement, {
    cells: 2,
    color: 'primary',
    ariaLabel: 'Track 7',
  });

  trackNumber.setText('07');
</script>

Applications author the physical panel layout and component host elements. VFDConsole creates and updates the permanent segment and meter geometry inside those hosts.

data-vfd-blur="true" and data-vfd-mesh="true" opt into optical diffusion and a fine glass-grid treatment independently. Both are disabled when omitted.

Modular CSS

The complete stylesheet is the recommended default. Advanced integrations can load only the stable CSS modules they need:

@import '@haskou/vfd-console/css/tokens';
@import '@haskou/vfd-console/css/controls';
@import '@haskou/vfd-console/css/glass';
@import '@haskou/vfd-console/css/segments';
@import '@haskou/vfd-console/css/meters';

Import tokens first when composing modules. The JavaScript exports, CSS subpaths, documented selectors, data attributes, and custom properties form the public compatibility contract. Generated DOM structure is owned by the components and should not be authored manually.

Development

corepack enable
yarn install
yarn dev
yarn docs:dev
yarn check

The demo is served by Vite and is available from the URL printed by yarn dev.

Demo audio player

The demo is a functional local audio player. Add or drop multiple browser- supported audio files, select and remove queue entries, and use the transport, repeat, random, volume, power, and display-test controls. Playback time and the 18-band spectrum and stereo peak meter are derived from the active audio element through the Web Audio API.

Files stay in the browser tab as temporary object URLs. They are not uploaded or persisted, and their URLs are released when tracks are removed, the queue is cleared, or the page closes. Codec support depends on the browser.

Documentation

Release Branches

CI publishes npm versions from pull requests merged into the default branch according to the source branch prefix, or from Renovate/runtime dependency PRs whose title starts with fix: or fix(...):.

| Branch prefix | npm version bump | | ------------- | ---------------- | | fix/* | Patch | | feat/* | Minor | | break/* | Major |

Other branch names run validation only and do not publish.