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

@todovue/tv-ui

v1.0.1

Published

UI component library for TODOvue application

Downloads

81

Readme

TODOvue UI (TvUi)

An umbrella package for Vue 3 that installs and re-exports the official @todovue/* components.

Important: this is NOT a monorepo. @todovue/tv-ui is a library that declares dependencies on each @todovue/tv-* component (by the version published on npm), and re-exports them for unified consumption.

npm npm downloads npm total downloads License Release Date Bundle Size Node Version Last Commit Stars

Demo / docs: https://ui.todovue.blog

Table of contents

Features

  • One-time install to get TODOvue components available.
  • Vue plugin: app.use(TvUi) registers components globally.
  • Re-exports: you can import specific components from @todovue/tv-ui.
  • Compatible with SPA (Vite/Vue CLI) and SSR (Nuxt) as long as your app imports the styles.
  • Does not bundle Vue nor the @todovue/* packages into the build: they remain external dependencies (great for ecosystems and tree-shaking).

Installation

With npm:

npm install @todovue/tv-ui

With yarn:

yarn add @todovue/tv-ui

With pnpm:

pnpm add @todovue/tv-ui

Node requirement for this repo: >= 20.19.0.

Quick Start (SPA)

Global registration (main.js / main.ts):

import { createApp } from 'vue'
import App from './App.vue'

// Styles (see “Using styles” section)
import '@todovue/tv-ui/style.css'

import TvUi from '@todovue/tv-ui'

createApp(App)
  .use(TvUi) // enables <TvButton />, <TvCard />, etc. globally
  .mount('#app')

Usage in a component:

<template>
  <TvButton variant="success" icon="check">Save</TvButton>
</template>

Local import (named export) if you prefer granular control:

<script setup>
import '@todovue/tv-ui/style.css'
import { TvButton, TvCard } from '@todovue/tv-ui'
</script>

<template>
  <TvCard>
    <TvButton>Action</TvButton>
  </TvCard>
</template>

Using styles

@todovue/tv-ui exposes a styles entry:

  • Recommended import:
import '@todovue/tv-ui/style.css'

This points to ./dist/tv-ui.css (via exports["./style.css"]).

What about per-component styles?

You can also import styles from each package:

import '@todovue/tv-button/style.css'
import '@todovue/tv-card/style.css'

This is useful if you:

  • only use 1–2 components,
  • want to control exactly what CSS gets into your bundle,
  • or are migrating gradually.

Nuxt (SSR) / Nuxt Module

This package publishes a Nuxt module at @todovue/tv-ui/nuxt that injects the CSS of @todovue/* packages into nuxt.options.css.

Setup

// nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    '@todovue/tv-ui/nuxt'
  ]
})

Plugin registration (optional)

You can register all components globally:

// plugins/tv-ui.ts
import { defineNuxtPlugin } from '#app'
import TvUi from '@todovue/tv-ui'

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(TvUi)
})

Or import them locally:

<script setup>
import { TvButton } from '@todovue/tv-ui'
</script>

<template>
  <TvButton>Hello</TvButton>
</template>

Exported components

Currently @todovue/tv-ui re-exports:

Registration options

| Approach | Example | When to use | |---------------------|---------------------------------------------|------------------------------------------------------| | Global via plugin | app.use(TvUi) | You use many components across the whole app | | Local import | import { TvButton } from '@todovue/tv-ui' | Isolated views, code-splitting, fine-grained control | | Individual packages | import TvButton from '@todovue/tv-button' | If you want to install/update components separately |

SSR notes

  • This package does not assume a DOM during plugin installation.
  • Still, SSR compatibility depends on each @todovue/* component not accessing window/document at render time.
  • In Nuxt, the @todovue/tv-ui/nuxt module takes care of registering global CSS for you.

Development

Available scripts:

  • dev: copies README.md/CHANGELOG.md from node_modules/@todovue/* into public/demos/* and starts Vite.
  • build: library build (ESM + CJS) + types.
  • build:demo: builds the demo (target demo) and copies README.md/CHANGELOG.md to public/.

Commands:

npm run dev
npm run build
npm run build:demo

Contributing

PRs and issues are welcome. See:

  • CONTRIBUTING.md
  • CODE_OF_CONDUCT.md

License

MIT © TODOvue