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

@frankfmy/ui

v1.1.1

Published

Svelte 5 UI компоненты с TailwindCSS v4: Button, Input, DataTable, Toast, Modal, Theme

Readme

@frankfmy/ui

Svelte 5 UI components with TailwindCSS v4

Installation

bun add @frankfmy/ui

Components

Button

<script>
  import { Button } from '@frankfmy/ui';
</script>

<Button>Default</Button>
<Button variant="primary">Primary</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="outline">Outline</Button>
<Button variant="destructive">Destructive</Button>

<Button size="sm">Small</Button>
<Button size="md">Medium</Button>
<Button size="lg">Large</Button>
<Button size="icon">🔥</Button>

Input

<script>
  import { Input } from '@frankfmy/ui';
  let value = $state('');
</script>

<Input bind:value placeholder="Enter text..." />
<Input type="email" placeholder="[email protected]" />
<Input type="password" placeholder="Password" />
<Input disabled placeholder="Disabled" />

Badge

<script>
  import { Badge } from '@frankfmy/ui';
</script>

<Badge>Default</Badge>
<Badge variant="secondary">Secondary</Badge>
<Badge variant="destructive">Error</Badge>
<Badge variant="outline">Outline</Badge>

Card

<script>
  import { Card } from '@frankfmy/ui';
</script>

<Card>
  {#snippet header()}
    <h3>Card Title</h3>
  {/snippet}
  
  <p>Card content goes here...</p>
  
  {#snippet footer()}
    <Button>Action</Button>
  {/snippet}
</Card>

Modal

<script>
  import { Modal, Button } from '@frankfmy/ui';
  let isOpen = $state(false);
</script>

<Button onclick={() => isOpen = true}>Open Modal</Button>

<Modal bind:isOpen onClose={() => isOpen = false}>
  <h2>Modal Title</h2>
  <p>Modal content...</p>
</Modal>

Toast

<script>
  import { Toast } from '@frankfmy/ui';
</script>

<Toast message="Success!" variant="success" />
<Toast message="Error occurred" variant="error" />
<Toast message="Warning!" variant="warning" />

DataTable

<script>
  import { DataTable } from '@frankfmy/ui';
  
  const data = [
    { id: 1, name: 'John', email: '[email protected]' },
    { id: 2, name: 'Jane', email: '[email protected]' }
  ];
  
  const columns = [
    { key: 'id', label: 'ID', sortable: true },
    { key: 'name', label: 'Name', sortable: true },
    { key: 'email', label: 'Email' }
  ];
</script>

<DataTable
  {data}
  {columns}
  striped
  hoverable
  onRowClick={(row) => console.log(row)}
/>

Pagination

<script>
  import { Pagination } from '@frankfmy/ui';
  let page = $state(1);
</script>

<Pagination
  bind:page
  totalPages={10}
  onchange={(p) => fetchData(p)}
/>

Skeleton

<script>
  import { Skeleton } from '@frankfmy/ui';
</script>

<Skeleton variant="text" lines={3} />
<Skeleton variant="circular" width="48px" height="48px" />
<Skeleton variant="rectangular" height="200px" />

EmptyState

<script>
  import { EmptyState, Button } from '@frankfmy/ui';
</script>

<EmptyState
  title="Нет данных"
  description="Попробуйте изменить фильтры"
>
  {#snippet action()}
    <Button>Добавить</Button>
  {/snippet}
</EmptyState>

Theme

<script>
  import { ThemeProvider, ThemeSwitcher, getTheme, setTheme } from '@frankfmy/ui';
</script>

<ThemeProvider defaultTheme="system">
  <ThemeSwitcher showLabels />
  
  <!-- Your app content -->
</ThemeProvider>

License

PolyForm Shield 1.0.0 — © 2025 Artyom Pryanishnikov