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

bertui-icons

v1.0.2

Published

Blazing fast icon library powered by Zig + Bun FFI. Lucide-compatible with text overlays.

Readme

🚀 BERTUI Icons

The world's fastest icon library. Powered by Zig + Bun FFI.

Lucide-compatible API with revolutionary text overlay support and unlimited imports without bundle bloat.

Features

  • Zig-Transpiled Performance: Icons pre-compiled to optimized Zig code
  • 🎨 Text Overlays: Add dynamic text/numbers inside any icon
  • 📦 Zero Bundle Bloat: Import unlimited icons without size worries
  • 🔄 Lucide Compatible: Drop-in replacement for lucide-react
  • 🎯 Type-Safe: Full TypeScript support
  • 🔥 Bun FFI: Lightning-fast runtime rendering

Installation

bun add bertui-icons

Usage

Basic Usage (Lucide-Compatible)

import { ArrowRight, Home, Heart } from 'bertui-icons';

function App() {
  return (
    <div>
      <ArrowRight />
      <Home size={32} color="blue" />
    </div>
  );
}

Text Overlays (Revolutionary!)

import { ArrowRight, Home, Bell } from 'bertui-icons';

function App() {
  return (
    <div>
      {/* Number badge */}
      <Bell>5</Bell>
      
      {/* Text label */}
      <ArrowRight>Next</ArrowRight>
      
      {/* Custom positioning */}
      <Home x={30} y={15} fontSize={14}>Home</Home>
    </div>
  );
}

Unlimited Imports

// Import everything without worrying about bundle size!
import * as Icons from 'bertui-icons';

function IconGallery() {
  return Object.keys(Icons).map(name => {
    const Icon = Icons[name];
    return <Icon key={name} />;
  });
}

Dynamic Icons

import { Icon } from 'bertui-icons';

function DynamicIcon({ iconName, label }) {
  return <Icon name={iconName}>{label}</Icon>;
}

API

Icon Props

interface IconProps {
  size?: number;              // Default: 24
  color?: string;             // Default: 'currentColor'
  strokeWidth?: number;       // Default: 2
  className?: string;         // CSS class
  children?: string | number; // Text overlay
  x?: number;                 // Text X position (default: beside icon)
  y?: number;                 // Text Y position (default: centered)
  fontSize?: number;          // Text size (default: 12)
}

All Available Icons

Based on Lucide icon set. See Lucide Icons for complete list.

How It Works

  1. Build Time: Lucide SVGs → Zig-transpiled code via build-icons.js
  2. Distribution: Users get pre-optimized Zig binaries (no raw SVGs)
  3. Runtime: Bun FFI calls Zig for ultra-fast rendering
  4. Result: Blazing performance + innovative features

Development

# Install dependencies
bun install

# Build icons from /icons folder
bun run build:icons

# Compile Zig library
bun run build:zig

# Full build
bun run build

# Test
bun test

Project Structure

bertui-icons/
├── icons/              # Source Lucide SVGs
├── icon_renderer.zig   # Core Zig renderer
├── build-icons.js      # SVG → Zig transpiler
├── build.zig          # Zig build config
├── react-wrapper.jsx   # React components
├── generated/         # Auto-generated files
│   ├── icons_generated.zig
│   ├── index.js
│   └── index.d.ts
└── libicons.*         # Compiled Zig library

Comparison

| Feature | bertui-icons | lucide-react | react-icons | |---------|--------------|--------------|-------------| | Bundle Size | Minimal | Large | Very Large | | Performance | ⚡⚡⚡ | ⚡ | ⚡ | | Text Overlays | ✅ | ❌ | ❌ | | Unlimited Imports | ✅ | ⚠️ | ⚠️ | | Tech Stack | Zig + Bun | JavaScript | JavaScript |

License

MIT

Credits


Made with ⚡ by the BERTUI team# bertui-icons