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

koribot-js

v0.0.2

Published

frontend utility script for Javacript inspired by jquery to manipulate DOM with built-in Object store

Readme

koribot-js

A small frontend utility library for JavaScript inspired by jQuery to manipulate the DOM with a built-in reactive store.

Features

  • Built-in reactive object-based store
  • Computed (derived) stores
  • Dev tools for visualizing stores, bound events, network requests, and page metadata
  • Automatic binding of Dom api to store for reactivity

How to Build

  • run

     npm install
    
     // this will install esbuild

    then

     npm run build
    
     // the build-output will be on koribot-js/dist

How to use

<script type="module">
  import { $ } from 'https://cdn.jsdelivr.net/npm/koribot-js@latest/+esm'
</script>

// if it does not work do
<script type="module">
  import { $ } from 'https://cdn.jsdelivr.net/npm/koribot-js@latest/dist/koribot-js.js'
</script>

or

 npm install koribot-js
//sample
import { $ } from 'koribot-js';

$('body').html('Hello')


//or with dev-tools
import { $ } from 'koribot-js/dev';
$('non-existing-selector')
// this will have an error UI

APIs

DOM

  • $(selector, props={}) — select or create elements, returns a chainable API
    • .on(eventName, handler) — attach event listener
    • .off(eventName, handler) — remove event listener
    • .text(source, keyOrFn) — set text content
    • .html(source, keyOrTemplateFn) — set inner HTML
    • .attr(attrName, source, keyOrFn) — set attribute
    • .removeAttr(attrName) — remove attribute
    • .cls(className, source, keyOrFn) — toggle class
    • .addClass(className, source, keyOrFn, conditionFn) — add class
    • .removeClass(className) — remove class
    • .style(cssProp, source, keyOrFn) — set inline CSS property
    • .show(source, keyOrFn) — toggle visibility
    • .hide() — set display none
    • .if(source, keyOrFn, templateFn) — conditionally render a template
    • .when(source, keyOrFn, branches) — two-branch conditional render
    • .each(source, keyOrFn, templateFn, uniquekeyFn) — render a list
    • .val(_value, onChangeFn) — set input value + optional onChange callback
    • .checked(source, keyOrFn) — set checkbox checked state
    • .booleanAttr(propName, source, keyOrFn) — set boolean DOM property
    • .focus(source = true, keyOrFn) — focus element
    • .append(...targets) — append child
    • .prepend(...targets) — prepend child
    • .before(...targets) — insert sibling before
    • .after(...targets) — insert sibling after
    • .remove() — remove element from DOM
    • .replaceWith(target) — replace element with another
    • .clone(deep = true) — deep clone element
    • .find(_selector, callbackFn, options) — scoped querySelector
    • .findAll(_selector, callbackFn, options) — scoped querySelectorAll
    • .el — raw DOM element
    • .els — raw DOM elements

Store

  • createStore(initialState, name?) — create a reactive store
    • .getState() — get current state
    • .setState() — update state (partial object or updater fn)
    • .subscribe() — manually subscribe to state changes
  • computed(store, fn) — derive a read-only store from one or more stores

HTML

  • raw\`— tagged template literal that marks a string as trusted HTML, bypassing sanitization. Use it when you own the content. Plain strings passed to.html(), .if(), .when(), and .each()` are always sanitized first internally.

Meta

  • meta.title() — set document title (static or reactive)
  • meta.description() — set meta description (static or reactive)
  • meta.og() — set Open Graph tag (static or reactive)
  • meta.set() — set any named meta tag (static or reactive)
  • meta.canonical() — set canonical URL

Network

  • resource(url, options?) — fetch wrapper returning loading/data/error/status handles

Utilities

  • ready(fn) — run fn when DOM is ready
  • onDomReadyState(state, fn) — run fn when document reaches a specific ready state

Output

  • koribot-js.js — minified, production build
  • koribot-js.dev.js — development build with devtools, error overlay, and runtime warnings/errors
  • koribot-js.dev.js.map

Note

  • This is an experiment and learning project
  • All suggestion, PR and criticism are welcome
  • I use AI to help me build it

Plans

  • add animate effect
  • more useful public api
  • improve input/html sanitizer
  • maybe add gzip or brotli file on production version