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

spikijs

v1.1.14

Published

~5 KB (Gzip): Reactive JavaScript micro-framework

Readme

Spikijs

~5 KB (Gzip): Reactive JavaScript micro-framework


Documentation

Read the full documentation on GitHub


Directives Reference

| Directive | Description | Example | | --- | --- | --- | | s-data | Defines component scope. | <div s-data="app"> | | s-text | Sets text content (Safe). | <span s-text="msg"> | | s-html | Sets innerHTML (Use carefully). | <div s-html="htmlContent"> | | s-if | Conditional rendering. | <p s-if="showMe"> | | s-for | Loops content (requires <template>). | <template s-for="item in list"> | | s-key | Unique key for loops (Performance). | <template ... s-key="id"> | | s-model | Two-way binding (Inputs). | <input s-model="text"> | | s-value | One-way value binding. | <input s-value="text"> | | s-effect | Runs function on data change. | <div s-effect="autoSave"> | | s-ref | Stores DOM reference in $refs. | <input s-ref="myInput"> | | s-init | Runs on mount. | <div s-init="onLoad"> | | s-destroy | Runs on unmount. | <div s-destroy="onRemove"> | | s-ignore | Skips compilation (Static content). | <div s-ignore> | | :[attr] | Dynamic attribute binding. | <img :src="imgUrl"> | | :class | Dynamic class toggling. | <div :class="classConfig"> | | s-[event] | Event listener. | <button s-click="save"> | | this.$root | Access the root elm. | this.$root.classList.add('loaded'); | | this.$store | Access the global store. | this.$store.theme | | spiki.store() | Get or set global store. | spiki.store('theme', 'dark') | | spiki.raw() | Proxy to original object. | spiki.raw(this.users) |


Installation

via NPM

npm install spikijs

via CDN

You can use the CDN directly in your HTML using a standard script tag:

<script src="//unpkg.com/spikijs"></script>

Quick Start

Here is a simple "Counter" example to show how Spikijs works.

1. HTML Layout

Use special s- attributes to bind data and events to your HTML.

<div s-data="counter">
    <h1 s-text="title"></h1>
    <h2 s-text="count"></h2>
    
    <button s-click="decrement">-</button>
    <button s-click="increment">+</button>
</div>

2. JavaScript Logic

Register your component logic and start the framework.

import spiki from 'spikijs'; // required in script module

// Register the 'counter' component
spiki.data('counter', () => ({
    count: 0,
    title: 'Hello Spiki',
    
    increment() {
        this.count++;
    },
    decrement() {
        this.count--;
    }
}));

// Initialize the framework
spiki.start();

License

MIT