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

@taybart/corvid

v0.1.31

Published

<p align="center"><img src="https://github.com/user-attachments/assets/b3bbf267-d7b0-4116-80a5-b932b409a111" width="100" height="100"></p>

Readme

Corvid

Usage

Non-exhastive list of features

DOM

import { dom } from '@taybart/corvid'

dom.ready(() => {
    // query for existing element
    const username = new dom.el('#username')
    // listen for events
    username.on('click', () => {
        // set style, will kebab keys backgroundColor -> background-color
        username.style({ color: 'red', backgroundColor: 'yellow' })
        // set/get content
        username.content(`evil: ${username.value()}`)
    }))


    // create new elements
    new dom.el({
        type: 'div',
        id: 'hair-color',
        class: 'hair user-info',
        content: 'blue',
        // will append element to username
        parent: username,
    })

    // listen for keys and check for modifiers
    dom.onKey('E', ({ ctrl, alt, meta, shift }) => {
        console.log('E pressed')
    })

    /*
     * Given a template:
     * <template id="tmpl-test">
     *  <div> hello ${name} </div>
     * </template>
     */
     const tmpl = new dom.el('#tmpl-test')
     // append template to el
     username.appendTemplate(tmpl, { name: 'corvid' })
     // or just set content
     document.body.innerHTML = tmpl.render({ name: 'corvid' })
})

LocalStorage

import { ls, dom } from '@taybart/corvid'

dom.ready(() => {
  const hpStat = new dom.el({ query: '#stat-hp', content: ls.get('stats.hp') })
  // set element content when localstorage changes
  ls.listen('stats.hp', hpStat)
  // or just a callback
  ls.listen('stats.hp', ({ key, value }) => {
    console.log(`health is now ${value}`)
  })
  // set a value (required if listening for events)
  ls.set('stats.hp', ls.get('stats.hp') - 1))
  // set a flattened object, will update "stats.hp" and "stats.attack"
  ls.set({ stats: { hp: 100, attack: 10 } })
})

Network

import { network } '@taybart/corvid'

// create an api client
const api = network.create({
  url: 'https://api.example.com',
  credentials: 'include',
  success: 250, // check for non-200 success code
  // corvid params, string, or custom object that has .toString() and renders url safe params
  params: new network.params({hello: 'corvid'})
})

// make a request
const { username } = await api.do({
    path: '/users/1',
    override: {
        params: network.params.render({hello: 'world!'}) , // only for this request
    },
})

Styles

import { style } '@taybart/corvid'

// query css media prefers-color-scheme
if (style.isDarkMode()) {
    console.log('dark mode')
}
// listen for theme switch
style.onDarkMode((isDark) => {
    // set document attribute 'data-theme'
    style.switchTheme(isDark ? 'light' : 'dark')
    // get css variables
    console.log(`is dark mode: ${isDark} and background is ${style.cssVar('--color-bg')`)
})

Just handle switching automatically

<script type='module'>
    import { handleThemeSwitch } from '@taybart/corvid/style'
    handleThemeSwitch()
</script>

QR

import { dom } from '@taybart/corvid'
import { QR } '@taybart/corvid/qr'

const el = new dom.el('#qr')
QR.render({
    text: 'https://example.com',
    size: 200,
}, el) // can also be regular element query -> document.getElementById('qr')