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

@vibeship/ui

v0.1.12

Published

Shared UI components for Vibeship DevTools

Readme

@vibeship/ui

Shared UI components for Vibeship DevTools.

Installation

npm install @vibeship/ui

Setup

1. Import CSS

Import the CSS file in your app's root layout or entry point:

// app/layout.tsx or pages/_app.tsx
import '@vibeship/ui/styles';

2. Configure Tailwind

Add the UI package to your Tailwind content paths:

// tailwind.config.js
module.exports = {
  content: [
    // ... your other content paths
    './node_modules/@vibeship/ui/dist/**/*.{js,mjs}',
  ],
  // ... rest of your config
};

3. Wrap with Providers

Wrap your app with the necessary providers:

import { SettingsProvider, AISettingsProvider } from '@vibeship/ui';

export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <body>
        <SettingsProvider>
          <AISettingsProvider>
            {children}
          </AISettingsProvider>
        </SettingsProvider>
      </body>
    </html>
  );
}

Usage

Core Components

import { Button, Card, Alert, Badge, Progress, Tabs } from '@vibeship/ui';

// Button
<Button variant="primary" size="lg">
  Click me
</Button>

// Card
<Card>
  <CardHeader>
    <CardTitle>Card Title</CardTitle>
  </CardHeader>
  <CardContent>
    Card content goes here
  </CardContent>
</Card>

// Alert
<Alert variant="info">
  This is an informational alert
</Alert>

// Badge
<Badge variant="success">Active</Badge>

// Progress
<Progress value={75} max={100} />

// Tabs
<Tabs defaultValue="tab1">
  <TabsList>
    <TabsTrigger value="tab1">Tab 1</TabsTrigger>
    <TabsTrigger value="tab2">Tab 2</TabsTrigger>
  </TabsList>
  <TabsContent value="tab1">Content 1</TabsContent>
  <TabsContent value="tab2">Content 2</TabsContent>
</Tabs>

Complex Components

import { 
  TaskPanelOverlay, 
  UnifiedCommandPalette,
  HierarchicalTaskPanel,
  AIChatInterface,
  MarkdownFileEditor,
  CombinedSettingsPanel
} from '@vibeship/ui';

// Task Panel Overlay
<TaskPanelOverlay
  getProjectTasks={fetchTasks}
  sseEndpoint="/api/tasks/stream"
  chatApiEndpoint="/api/ai/chat"
/>

// Command Palette
<UnifiedCommandPalette
  onClose={() => setOpen(false)}
  currentPath="/current/path"
  onPathChange={handlePathChange}
/>

// Hierarchical Task Panel
<HierarchicalTaskPanel
  tasks={tasks}
  onTaskClick={handleTaskClick}
/>

// AI Chat Interface  
<AIChatInterface
  apiEndpoint="/api/ai/chat"
  onLoadApiKey={loadApiKey}
/>

// Markdown Editor
<MarkdownFileEditor
  initialContent={content}
  onSave={handleSave}
  filePath="/path/to/file.md"
/>

// Settings Panel
<CombinedSettingsPanel
  apiEndpoint="/api/settings"
  onLoadApiKey={loadApiKey}
/>

Hooks

import { useUIState, useSettings, useAISettings } from '@vibeship/ui';

// UI State Hook
const { isOpen, toggle, open, close } = useUIState();

// Settings Hook
const { settings, updateSettings } = useSettings();

// AI Settings Hook
const { aiSettings, updateAISettings } = useAISettings();

TypeScript

All components are fully typed. Import types as needed:

import type { ButtonProps, CardProps, TaskType } from '@vibeship/ui';

Storybook

View component documentation and examples:

cd packages/ui
npm run storybook

License

MIT