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

@g9000/test-lib-2

v0.1.0

Published

A tiny Vue 3 component library with Changesets and automated publishing

Readme

Tiny Component Library

A minimal Vue 3 component library with automated versioning and publishing using Changesets.

Features

  • 🎨 Vue 3 + TypeScript components
  • 📦 Vite for fast builds
  • 🔄 Changesets for version management
  • 🚀 Automated publishing via GitHub Actions
  • 📝 Full TypeScript support

Installation

npm install tiny-component-lib
# or
pnpm add tiny-component-lib
# or
yarn add tiny-component-lib

Usage

Import all components

import { createApp } from "vue";
import TinyComponentLib from "tiny-component-lib";
import "tiny-component-lib/style.css";

const app = createApp(App);
app.use(TinyComponentLib);
app.mount("#app");

Import individual components

<script setup lang="ts">
import { Button, Card } from "tiny-component-lib";
import "tiny-component-lib/style.css";
</script>

<template>
  <Button variant="primary" @click="handleClick"> Click me </Button>

  <Card variant="elevated">
    <template #header>Card Title</template>
    <p>Card content goes here</p>
    <template #footer>Card Footer</template>
  </Card>
</template>

Components

Button

<Button variant="primary" size="medium" @click="handleClick">
  Click me
</Button>

Props:

  • variant: 'primary' | 'secondary' | 'danger' (default: 'primary')
  • size: 'small' | 'medium' | 'large' (default: 'medium')
  • disabled: boolean (default: false)

Events:

  • click: Emitted when button is clicked

Card

<Card variant="elevated">
  <template #header>Optional Header</template>
  Card content
  <template #footer>Optional Footer</template>
</Card>

Props:

  • variant: 'default' | 'bordered' | 'elevated' (default: 'default')

Slots:

  • header: Optional header slot
  • default: Main content
  • footer: Optional footer slot

Development

Setup

pnpm install

Dev Server

Run the demo app with hot reload:

pnpm dev

Build

Build the library:

pnpm build

Publishing Workflow

This library uses Changesets for version management and automated publishing.

Creating a Changeset

When you make changes that should be released:

  1. Make your code changes
  2. Run pnpm changeset
  3. Select the type of change:
    • patch: Bug fixes (0.0.X)
    • minor: New features (0.X.0)
    • major: Breaking changes (X.0.0)
  4. Write a summary of your changes
  5. Commit the generated changeset file

Automated Release Process

  1. Create a PR with your changes and changeset file
  2. Merge to main - GitHub Actions will detect the changeset
  3. Version Packages PR - Bot automatically creates a PR with:
    • Version bumps in package.json
    • Updated CHANGELOG.md
  4. Merge Version PR - Automatically publishes to npm

Prerequisites for Publishing

Before the first publish, set up:

  1. NPM Token: Add NPM_TOKEN secret in GitHub repository settings

    • Generate token at https://www.npmjs.com/settings/tokens
    • Use "Automation" token type
    • Add as repository secret
  2. Package Name: Update in package.json if needed

    {
      "name": "your-package-name"
    }
  3. Repository URL: Update in package.json

    {
      "repository": {
        "type": "git",
        "url": "https://github.com/your-username/your-repo.git"
      }
    }

Project Structure

tiny-component-lib/
├── .changeset/          # Changeset configuration and files
├── .github/
│   └── workflows/       # CI/CD workflows
├── src/
│   ├── components/      # Vue components
│   │   ├── Button.vue
│   │   └── Card.vue
│   ├── demo/           # Demo app
│   ├── index.ts        # Library entry point
│   └── style.css       # Base styles
├── dist/               # Build output
├── package.json
├── tsconfig.json
└── vite.config.ts

License

MIT