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

@glowbox/svelte

v1.1.0

Published

glowbox components for Svelte 5 — <LedGrid> (3D WebGL LED grid) + <NixieTube> (nixie-tube display).

Readme

@glowbox/svelte

glowbox components for Svelte 5: <LedGrid> — the 3D WebGL LED-grid display (over @glowbox/led-grid) — and <NixieTube> — a glowing nixie-tube numeral (over @glowbox/nixie).

yarn add @glowbox/svelte
# peer: svelte ^5   (@glowbox/led-grid + @glowbox/nixie come along as dependencies)

<LedGrid>

<script lang="ts">
	import { LedGrid, type LedDisplay } from '@glowbox/svelte';

	const draw = (d: LedDisplay, dt: number) => {
		d.clear();
		d.sphere([4, 4, 4], 3, '#00aaff');
	};
</script>

<LedGrid
	size={[8, 8, 8]}
	{draw}
	led={{ glow: 3, offColor: '#0a0a12' }}
	camera={{ autoOrbit: true, projection: 'perspective' }}
	color={{ background: '#000', gain: 1.1 }}
	interaction={{ zoom: true }}
/>

| prop | type | notes | | ------------- | ----------------------------------- | -------------------------------------------------------------------------------------- | | size | [number, number, number] | grid dims [nx, ny, nz] (changing it resizes in place — no remount) | | draw | (d: LedDisplay, dt: number)=>void | called every frame (dt in seconds); write voxels here | | led | LedOptions | style shape stagger rgb rgbLayout vivid outline size glow offColor | | color | ColorOptions | background gain tint | | camera | CameraOptions | yaw pitch distance fov projection autoOrbit orbitSpeed pitchLimits | | interaction | InteractionOptions | drag dragSpeed zoom zoomLimits | | quality | QualityOptions | pixelRatio antialias paused fps (frame-rate cap) | | label | string | accessible name for the canvas (aria-label; default 'LED grid') | | oncreate | (d: LedDisplay \| null)=>void | imperative handle — called with the display on create, null on teardown |

The grouped props mirror @glowbox/led-grid's options 1:1 and update live — even size resizes the grid in place (no remount / context loss). Colours accept a Color ([r,g,b] 0..1, >1 blooms, or any CSS string). See @glowbox/led-grid for every field's default, the full voxel API, and colour semantics.

<NixieTube>

<script lang="ts">
	import { NixieTube } from '@glowbox/svelte';
</script>

<!-- the tube fills its parent — size the parent -->
<div style="width: 80px; height: 150px">
	<NixieTube value="7" tubeStyle="classic" color="#ff6a12" />
</div>

| prop | type | notes | | ------------ | --------------------------------- | ---------------------------------------------------------- | | value | string \| number \| null | the lit symbol: 09, :, -, or null/'' for dark | | tubeStyle | 'classic' \| 'slim' \| 'tall' | physical tube style (maps to the core style option) | | color | Color | glow colour (default warm nixie orange) | | glow | number | glow strength 0..1 | | background | Color | tube glass colour | | mesh | boolean | draw the honeycomb anode mesh (default true) | | ghost | boolean | show the unlit cathode stack (default true) | | pixelRatio | number | cap on devicePixelRatio | | label | string | accessible name (aria-label); defaults to the lit symbol | | oncreate | (tube: NixieTube \| null)=>void | imperative handle — the tube on create, null on teardown |

Props update live (valuesetValue, the rest → setOptions). A clock is just a row of <NixieTube>s. See @glowbox/nixie for defaults + the size-adaptive rendering.


Sibling packages with the same components: @glowbox/react and @glowbox/vue; content helpers in @glowbox/extras. Each component fills its parent (width/height: 100%); give the parent a size. Live demos: https://eetu.github.io/glowbox/.