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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@nootcode/ui

v0.0.1

Published

Eine einfache, wiederverwendbare und anpassbare UI-Komponentenbibliothek, erstellt mit React, TypeScript und TailwindCSS. Gebaut mit `tsup`.

Downloads

8

Readme

UI Component Toolkit: @nootcode/ui

Eine einfache, wiederverwendbare und anpassbare UI-Komponentenbibliothek, erstellt mit React, TypeScript und TailwindCSS. Gebaut mit tsup.

Installation

Um die Komponentenbibliothek in deinem Projekt zu verwenden, installiere sie über npm oder deinen bevorzugten Paketmanager:

npm install @nootcode/ui

Verwendung

Importiere die benötigten Komponenten direkt aus dem Paket.

import { Button, Card, CardHeader, CardTitle, CardContent, CardFooter, Input, Badge } from "@nootcode/ui";

Button

Der Button unterstützt die Varianten primary, secondary und outline.

<Button variant="primary">Klick mich</Button>
<Button variant="secondary">Mehr erfahren</Button>
<Button variant="outline">Abbrechen</Button>

Card

Die Card-Komponente ist in mehrere Teile unterteilt, um maximale Flexibilität zu gewährleisten.

<Card>
  <CardHeader>
    <CardTitle>Titel der Karte</CardTitle>
  </CardHeader>
  <CardContent>
    <p>Der Hauptinhalt deiner Karte kommt hier hin.</p>
  </CardContent>
  <CardFooter>
    <Button>Aktion</Button>
  </CardFooter>
</Card>

Input

Ein anpassbares Input-Feld mit optionalem Label und Icon.

import { Mail } from "lucide-react";

<Input label="Dein Name" placeholder="Max Mustermann" />

<Input 
  label="E-Mail" 
  placeholder="[email protected]"
  icon={<Mail size={16} />} 
/>

Badge

Badges zur Hervorhebung von Informationen mit verschiedenen Farbvarianten.

<Badge variant="blue">Info</Badge>
<Badge variant="green">Erfolgreich</Badge>
<Badge variant="red">Fehler</Badge>

Bibliothek bauen

Um die Bibliothek für die Veröffentlichung zu bauen, führe den folgenden Befehl im Stammverzeichnis des Projekts aus:

npm run build

Dieser Befehl verwendet tsup, um den Code in den dist/-Ordner zu kompilieren. Er generiert:

  • ESM-Module
  • CommonJS-Module
  • TypeScript-Deklarationsdateien (.d.ts)

package.json Konfiguration

Für eine erfolgreiche Veröffentlichung sollte deine package.json die folgenden Felder enthalten:

{
  "name": "@nootcode/ui",
  "version": "0.1.0",
  "main": "./dist/index.js",
  "module": "./dist/index.mjs",
  "types": "./dist/index.d.ts",
  "files": [
    "dist"
  ],
  "scripts": {
    "build": "tsup"
  },
  "peerDependencies": {
    "react": ">=18",
    "react-dom": ">=18"
  },
  "devDependencies": {
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "tsup": "...",
    "typescript": "..."
  }
}