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

@scilent/core

v2.0.0

Published

Scilent UI Component Library

Downloads

2

Readme

@scilent-ui/core

Core components and utilities for music-based applications and UIs.

TypeScript React Storybook Vite License: MIT

Table of Contents

Overview

The @scilent-ui/core package provides the essential building blocks for creating music-focused applications. It includes presentational and interactive components specifically designed for music metadata display and playback control.

This package is part of the Scilent UI monorepo, a comprehensive component and utility library for music-based applications.

Installation

# Using npm
npm install @scilent-ui/core

# Using yarn
yarn add @scilent-ui/core

# Using pnpm
pnpm add @scilent-ui/core

Usage

import { AlbumArtwork, IconButton, MusicPlayer } from '@scilent-ui/core';
import { FiPlay } from 'react-icons/fi';

function App() {
  return (
    <div>
      <AlbumArtwork image="/path/to/album-art.jpg" name="Album Name" size="md" />
      <IconButton icon={FiPlay} aria-label="Play" />
      <MusicPlayer
        trackTitle="Song Title"
        artistName="Artist Name"
        albumArt="/path/to/album-art.jpg"
      />
    </div>
  );
}

Components

AlbumArtwork

A component for displaying album artwork with various size options.

<AlbumArtwork image="https://example.com/album-cover.jpg" name="Album Name" size="md" />

ArtistLabel

A component for displaying artist names with customizable styling.

<ArtistLabel name="Artist Name" style={{ fontWeight: 'bold' }} />

MetadataLabel

A versatile component for displaying music metadata with truncation options.

<MetadataLabel
  text="Very long track title that might need truncation"
  truncate={true}
  maxLength={20}
/>

Timestamp

A component for displaying time-related information in various formats.

<Timestamp
  value={180} // 3 minutes in seconds
  format="duration"
/>

Slider

A customizable slider component for progress bars and volume controls.

<Slider value={[50]} min={0} max={100} step={1} onValueChange={value => console.log(value)} />

IconButton

A button component that displays an icon with various states and variants.

import { FiHeart } from 'react-icons/fi';

<IconButton
  icon={FiHeart}
  variant="primary"
  size="md"
  aria-label="Like"
  onClick={() => console.log('Liked!')}
/>;

MusicPlayer

A basic music player component with playback controls and track information display.

<MusicPlayer
  trackTitle="Amazing Track"
  artistName="Awesome Artist"
  albumArt="/path/to/album-art.jpg"
  onPlay={() => {
    /* Handle play */
  }}
  onPause={() => {
    /* Handle pause */
  }}
/>

Documentation

Documentation for all components is available in Storybook. To view the documentation locally:

# From the root of the monorepo
pnpm storybook

# Or from this package directory
pnpm storybook

This will start a local Storybook server at http://localhost:6006 where you can explore all components, their variants, and usage guidelines.

Each component has:

  • Interactive examples
  • Prop documentation
  • Usage guidelines
  • Code snippets

Types

This package exports TypeScript types for all components and utilities, ensuring type safety throughout your application.

import {
  AlbumArtworkProps,
  IconButtonProps,
  MusicPlayerProps,
  ArtistLabelProps,
  MetadataLabelProps,
  TimestampProps,
  SliderProps,
} from '@scilent-ui/core';

// Use types in your components
const CustomButton: React.FC<IconButtonProps> = props => {
  // Implementation
};

Development

To develop this package locally:

# Navigate to the package directory
cd packages/core

# Install dependencies (from the root of the monorepo)
pnpm install

# Start the development build with watch mode
pnpm dev

# Run tests
pnpm test

# Build the package
pnpm build

# Lint the code
pnpm lint

# Type check
pnpm typecheck

Local Development with Storybook

We use Storybook with Vite for component development. Vite provides an extremely fast development experience with instant hot module replacement (HMR).

# Start Storybook
pnpm storybook

# Build Storybook for static deployment
pnpm build-storybook

To create a new component story:

  1. Create your component in src/components/ComponentName/ComponentName.tsx
  2. Add a story file at src/components/ComponentName/ComponentName.stories.tsx
  3. Export your component in src/components/index.ts

Example story file structure:

import type { Meta, StoryObj } from '@storybook/react';
import { ComponentName } from './ComponentName';

const meta: Meta<typeof ComponentName> = {
  title: 'Components/ComponentName',
  component: ComponentName,
  tags: ['autodocs'],
  // Add parameters, argTypes, etc.
};

export default meta;
type Story = StoryObj<typeof ComponentName>;

export const Default: Story = {
  args: {
    // Component props
  },
};

// Add more stories for different states/variants

License

MIT © Scilent Digital