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

@chronos-ui/core

v1.0.5

Published

A universal, framework-agnostic UI component library built with Mitosis. Write once, compile to React, Svelte, and Web Components.

Readme

Chronos UI


✨ Components

| Component | Description | |---|---| | Banner | Full-bleed hero banner — image/video background, title, CTA | | AnnouncementBar | Slim promotional bar with customisable colours | | GridBanner | Responsive CSS grid of banner cards | | MediaGrid | Editorial 2-column layout at 21:9 aspect ratio | | RowScrollable | Horizontally scrollable card row with snap-scroll | | SlidingBanner | Slider with 13 transition effects & canvas backgrounds | | AlternatingSlider | Multi-column slider with opposing vertical scroll | | TimerWidget | Live countdown timer (days / hours / minutes / seconds) | | WysiwygRenderer | Scoped rich-text HTML renderer for CMS content | | RichTextEditor | Advanced headless WYSIWYG editor with custom inline styles and toolbars |


🚀 Installation

npm install @chronos-ui/core

💻 Usage

Step 1 — Import the theme

In your app's global stylesheet or entry file:

@import '@chronos-ui/core/theme.css';

Override any CSS variable to customise the design system:

:root {
  --chronos-color-primary: #e11d48;   /* your brand colour */
  --chronos-font-family: 'Poppins', sans-serif;
}

Step 2 — Use in your framework

⚛️ React / Next.js

import Banner from '@chronos-ui/core/react/Banner';
import TimerWidget from '@chronos-ui/core/react/TimerWidget';

export default function Page() {
  return (
    <main>
      <Banner
        title="Summer Sale"
        subtitle="Up to 50% off"
        ctaText="Shop Now"
        media={{ type: 'image', url: '/hero.jpg' }}
        mapLinks={[{ url: '/sale' }]}
      />
      <TimerWidget title="Ends in:" targetDate="2026-12-31T23:59:59Z" />
    </main>
  );
}

🟠 Svelte / SvelteKit

<script lang="ts">
  import Banner from '@chronos-ui/core/svelte/Banner.svelte';
  import TimerWidget from '@chronos-ui/core/svelte/TimerWidget.svelte';
</script>

<Banner title="Summer Sale" ctaText="Shop Now" />
<TimerWidget title="Ends in:" targetDate="2026-12-31T23:59:59Z" />

🌐 Web Components (Vanilla HTML / CMS Renderer)

<link rel="stylesheet" href="node_modules/@chronos-ui/core/theme.css" />
<script type="module" src="node_modules/@chronos-ui/core/webcomponents/Banner.js"></script>

<banner-element
  title="Summer Sale"
  subtitle="Up to 50% off"
  cta-text="Shop Now"
></banner-element>

🛠️ Development

git clone https://github.com/nilkoushik/chronos-ui.git
cd chronos-ui
npm install

# Compile all components to React, Svelte & Web Components
npm run build

See CONTRIBUTING.md for the full workflow.


📦 Publishing

Bump the version and let GitHub Actions do the rest:

npm version patch   # or: minor | major
# → runs build, creates git tag, pushes, triggers npm publish workflow

Make sure your NPM_TOKEN secret is set in GitHub → Settings → Secrets and variables → Actions.


📖 Documentation

Full interactive docs are hosted on GitHub Pages:

nilkoushik.github.io/chronos-ui

Each component page includes:

  • Live in-browser preview
  • Props reference table
  • Copy-ready code for React, Svelte, and Web Components

📁 Repository Structure

src/
  components/       Mitosis source (.lite.tsx) — single source of truth
  styles/           theme.css — CSS design token variables
dist/               Compiled output (not committed; built on publish)
  react/
  svelte/
  webcomponent/
docs/               GitHub Pages documentation site
  index.html
  components/       One page per component
  css/docs.css
  js/docs.js
.github/workflows/
  publish.yml       npm publish on git tag
  docs.yml          GitHub Pages deploy on main push

🏗️ Built With

  • Mitosis — single-source component compiler
  • TypeScript — typed component props
  • Vanilla CSS — zero runtime style dependencies

📄 License

MIT © Chronos UI Contributors