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

dabi-lib

v1.7.0

Published

A modern React component library and CLI for fast project generation.

Downloads

397

Readme

dabi-lib

dabi-lib ist eine meinungsstarke UI-Library für React-Anwendungen. Sie ist darauf ausgelegt, schnell moderne Webanwendungen zu entwickeln.

Features

  • Frontend: React 19, Vite, TailwindCSS (v4), Lucide Icons.
  • Router: TanStack Router Grundaufbau fuer neue Projekte.
  • UI Komponenten: Fertige Komponenten wie DataTables, Sheets, Cards, etc.

Installation & Setup

  1. Abhängigkeiten installieren:
npm install
  1. Entwicklungsserver starten:

Startet den Frontend-Entwicklungsserver.

npm run dev

Installation via NPM

Du kannst die Library direkt in dein Projekt einbinden:

npm install dabi-lib

Setup

  1. CSS importieren: Importiere das CSS in deiner Haupteinstiegsdatei (z.B. main.tsx):

    import "dabi-lib/style.css";
  2. Tailwind Konfiguration: Da die Library Tailwind CSS nutzt, stelle sicher, dass dein Projekt Tailwind v4 unterstützt.

Komponenten nutzen

import { Button, DataTable, Card } from "dabi-lib";

function App() {
	return (
		<Card>
			<Button onClick={() => alert("Hello!")}>Klick mich</Button>
		</Card>
	);
}

Gen UI Widgets

Für widgetbasierte Oberflächen kannst du deklarative Gen-UI-Widgets in einem flexiblen Row-/Column-Grid nutzen. Unterstützt werden stat-card, data-table, chart, map und form-builder; Daten können direkt übergeben oder per fetchUrl/fetcher geladen werden.

import { GenUIGrid, GenUIWidget } from "dabi-lib";

const revenueWidget = new GenUIWidget({
	id: "revenue",
	type: "stat-card",
	title: "Revenue",
	data: {
		label: "Revenue",
		value: "35.400 EUR",
		trend: { value: "+8.6%", direction: "up" },
	},
});

const liveTableWidget = new GenUIWidget({
	id: "orders",
	type: "data-table",
	title: "Orders",
	fetchUrl: "/orders.json",
	columns: [
		{ key: "id", header: "ID" },
		{ key: "customer", header: "Customer" },
		{ key: "total", header: "Total" },
	],
});

const contactWidget = new GenUIWidget({
	id: "contact",
	type: "form-builder",
	title: "Kontakt",
	fields: [
		{ name: "name", label: "Name", required: true },
		{ name: "email", type: "email", label: "Email", required: true },
	],
	submitLabel: "Senden",
	onSubmit: (values) => console.log(values),
});

function Dashboard() {
	return (
		<GenUIGrid
			rows={[
				{
					id: "overview",
					columns: [
						{ id: "stats", span: 4, widgets: [revenueWidget] },
						{ id: "orders", span: 8, widgets: [liveTableWidget] },
						{ id: "contact", span: 12, widgets: [contactWidget] },
					],
				},
			]}
		/>
	);
}

Projekt-CLI

dabi-lib kommt mit einem CLI-Tool, um Projekte schnell zu initialisieren oder Komponenten zu generieren.

npx dabi-lib init mein-projekt
cd mein-projekt
npx dabi generate feature customers
npx dabi generate screen Dashboard
npx dabi generate screen List --feature customers

Projektstruktur

  • src/components: Wiederverwendbare UI-Komponenten.
  • src/features: Feature-basierte App-Bereiche mit eigenen Screens, Components, Hooks, API und Utils.
  • src/router.tsx: TanStack Router Setup.