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

pulse-js-framework

v1.7.11

Published

A declarative DOM framework with CSS selector-based structure and reactive pulsations

Readme

Pulse Framework

CI Netlify Status

A declarative DOM framework with CSS selector-based structure and reactive pulsations.

Features

  • CSS Selector Syntax - Create DOM elements using familiar CSS selectors
  • Reactive Pulsations - Automatic UI updates when state changes
  • Custom DSL - Optional .pulse file format for cleaner code
  • No Build Required - Works directly in the browser
  • Lightweight - Minimal footprint, maximum performance
  • Router & Store - Built-in SPA routing and state management
  • Form Handling - Validation, async validators, field arrays
  • Async Primitives - useAsync, useResource, usePolling with SWR caching
  • Hot Module Replacement - Full HMR with state preservation
  • Mobile Apps - Build native Android & iOS apps (zero dependencies)
  • TypeScript Support - Full type definitions for IDE autocomplete
  • DevTools - Time-travel debugging, dependency graph visualization

Installation

npm install pulse-js-framework

Quick Start

Create a new project

npx pulse-js-framework create my-app
cd my-app
npm install
npm run dev

Or use directly

import { pulse, effect, el, mount } from 'pulse-js-framework';

// Create reactive state
const count = pulse(0);

// Build UI with CSS selector syntax
function Counter() {
  const div = el('.counter');

  const display = el('h1');
  effect(() => {
    display.textContent = `Count: ${count.get()}`;
  });

  const increment = el('button.btn', '+');
  increment.onclick = () => count.update(n => n + 1);

  div.append(display, increment);
  return div;
}

mount('#app', Counter());

CSS Selector Syntax

el('div')                    // <div></div>
el('.container')             // <div class="container"></div>
el('#app')                   // <div id="app"></div>
el('button.btn.primary')     // <button class="btn primary"></button>
el('input[type=text]')       // <input type="text">
el('h1', 'Hello World')      // <h1>Hello World</h1>

Reactivity

import { pulse, effect, computed, batch } from 'pulse-js-framework';

const firstName = pulse('John');
const lastName = pulse('Doe');

// Computed values
const fullName = computed(() => `${firstName.get()} ${lastName.get()}`);

// Effects auto-run when dependencies change
effect(() => console.log(`Hello, ${fullName.get()}!`));

firstName.set('Jane'); // Logs: "Hello, Jane Doe!"

// Batch updates (effects run once)
batch(() => {
  firstName.set('John');
  lastName.set('Smith');
});

.pulse File Format

@page Counter

state {
  count: 0
}

view {
  .counter {
    h1 "Count: {count}"
    button @click(count++) "+"
    button @click(count--) "-"
  }
}

style {
  .counter { text-align: center; padding: 20px }
}

See Pulse DSL documentation for full syntax reference.

CLI Commands

pulse create <name>    # Create new project
pulse dev [port]       # Start dev server (default: 3000)
pulse build            # Build for production
pulse compile <file>   # Compile .pulse file
pulse lint [files]     # Validate .pulse files
pulse format [files]   # Format .pulse files
pulse analyze          # Analyze bundle

See CLI documentation for full command reference.

Core Modules

Router

import { createRouter, lazy } from 'pulse-js-framework/runtime/router';

const router = createRouter({
  routes: {
    '/': HomePage,
    '/users/:id': UserPage,
    '/dashboard': lazy(() => import('./Dashboard.js'))
  }
});

Store

import { createStore, createActions } from 'pulse-js-framework/runtime/store';

const store = createStore({ user: null, theme: 'light' }, { persist: true });
const actions = createActions(store, {
  login: (store, user) => store.user.set(user)
});

Form

import { useForm, validators } from 'pulse-js-framework/runtime/form';

const { fields, handleSubmit, isValid } = useForm(
  { email: '', password: '' },
  {
    email: [validators.required(), validators.email()],
    password: [validators.required(), validators.minLength(8)]
  }
);

Async

import { useAsync, useResource } from 'pulse-js-framework/runtime/async';

const { data, loading } = useAsync(() => fetch('/api/users').then(r => r.json()));

const users = useResource('users', fetchUsers, { refreshInterval: 30000 });

See API documentation for full reference.

Mobile Apps

Build native Android and iOS apps:

pulse mobile init
pulse build
pulse mobile build android
pulse mobile run android
import { createNativeStorage, NativeUI } from 'pulse-js-framework/runtime/native';

const storage = createNativeStorage();
const theme = storage.get('theme', 'light');
NativeUI.toast('Hello from native!');

See Mobile documentation for full guide.

IDE Extensions

VS Code

cd vscode-extension && bash install.sh

IntelliJ IDEA / WebStorm

cd intellij-plugin && ./gradlew buildPlugin

Features: Syntax highlighting, code snippets, bracket matching.

TypeScript Support

Full type definitions included:

import { pulse, Pulse } from 'pulse-js-framework/runtime';
import { createRouter, Router } from 'pulse-js-framework/runtime/router';

const count: Pulse<number> = pulse(0);

Examples

| Example | Description | |---------|-------------| | Todo App | Task management with filters | | Blog | CRUD, categories, search | | Chat App | Real-time messaging | | E-commerce | Shopping cart | | Dashboard | Admin UI | | HMR Demo | Hot module replacement | | Router Demo | SPA routing | | Store Demo | State with undo/redo | | Electron App | Desktop notes app |

Documentation

License

MIT