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

ctw-kit

v1.0.40

Published

Custom components and utilities for Svelte and TailwindCSS (DaisyUI)

Readme

ctw-kit

Custom components and utilities for Svelte and TailwindCSS (DaisyUI)

image

Installation

bun add ctw-kit
# or
npm install ctw-kit

Prerequisites

This library requires the following peer dependencies to be installed and configured in your application:

bun add -d tailwindcss daisyui
# or
npm install -D tailwindcss daisyui

Make sure to configure TailwindCSS and DaisyUI in your application's tailwind.config.js:

/** @type {import('tailwindcss').Config} */
export default {
  content: ['./src/**/*.{html,js,svelte,ts}', './node_modules/ctw-kit/**/*.{html,js,svelte,ts}'],
  plugins: [require('daisyui')],
}

Components

  • [x] SEO - SEO meta tags management including Open Graph and Twitter cards
  • [x] Carousel - A customizable carousel component
  • [x] Emails - Email sending component using Resend
  • [x] Feedback - User feedback collection component
  • [x] Hello - Simple greeting component
  • [x] ThemeChange - Theme switcher component for DaisyUI
  • [x] TiltContent - Tilt effect component using vanilla-tilt

Development

  1. Clone the repository
git clone https://github.com/ctwhome/ctw-kit.git
cd ctw-kit
  1. Install dependencies
bun install
  1. Build the package
bun run build

Publishing

This package uses fully automated releases. Push your changes to main using Conventional Commits format:

# Features (minor version bump)
git commit -m "feat: add new component"

# Bug fixes (patch version bump)
git commit -m "fix: resolve styling issue"

# Breaking changes (major version bump)
git commit -m "feat!: redesign API"

git push origin main

The automation will:

  1. Check if the version exists in npm registry
  2. Bump the version (patch)
  3. Create a git tag and GitHub release
  4. Build and publish to npm

Everything happens automatically in the correct order - no manual steps needed after the initial setup.

First-time Setup

You'll need to set up two tokens in your repository's secrets (Settings → Secrets and variables → Actions):

  1. PAT_TOKEN: A GitHub Personal Access Token with repo permissions

    • Go to GitHub → Settings → Developer settings → Personal access tokens → Tokens (classic)
    • Generate new token (classic)
    • Select scopes: repo (full control of private repositories)
    • Copy the token and add it as a repository secret named PAT_TOKEN
  2. NPM_TOKEN: An npm automation token

    • Go to npmjs.com → Access Tokens → Generate New Token
    • Select type: Automation
    • Make sure 2FA is not required for automation tokens in your npm account settings
      • Go to npmjs.com → Profile Settings → Authentication & Authorization
      • Under "Two-Factor Authentication", ensure it's not set to "Required for all operations"
    • Copy the token and add it as a repository secret named NPM_TOKEN

After setting up these tokens, the automation will handle everything else - just push your changes to main using conventional commits.

License

MIT