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

veliom

v0.1.5

Published

Ultra-fast, minimal frontend framework with API-agnostic design

Downloads

250

Readme

Veliom 🚀

Ultra-fast, minimal frontend framework with API-agnostic design

CI npm version License: MIT Downloads


Why Veliom?

  • Performance First - Every feature justifies its cost
  • Minimal Core - No bloat, just what you need
  • API-Agnostic - Use fetch, axios, GraphQL - your choice
  • TypeScript Native - Full type safety out of the box
  • Security-Aware - Built-in XSS protection
  • Production Ready - Tested and battle-hardened

Quick Start

npm install veliom
import { createComponent, createSignal, mount, h } from 'veliom';

const Counter = createComponent(() => {
  const count = createSignal(0);

  return () => h('div', null,
    h('span', null, String(count.get())),
    h('button', { onClick: () => count.update(n => n + 1) }, '+')
  );
});

mount(Counter, document.getElementById('app')!);

Features at a Glance

⚡ High-Performance Rendering

  • Virtual DOM with efficient diffing
  • Event delegation (O(n) vs O(n×m))
  • Keyed reconciliation
  • VNode pooling for reduced GC pressure
  • Batched updates

🔄 Reactive State Management

// Signals
const count = createSignal(0);
count.set(5);
count.update(n => n + 1);

// Store
const store = createStore({ user: null, loading: false });
store.set('loading', true);

// Computed
const fullName = createComputed(
  () => `${firstName.get()} ${lastName.get()}`,
  [firstName, lastName]
);

🪝 React-like Hooks

const App = createComponent(() => {
  const [getCount, setCount] = useState(0);

  useEffect(() => {
    document.title = `Count: ${getCount()}`;
  }, [getCount]);

  const doubled = useMemo(() => getCount() * 2, [getCount]);

  return () => h('div', null, ...);
});

🧩 Component System

const Button = createComponent((props) => {
  return () => h('button', { class: props.class }, props.children);
});

🎯 Control Flow

// Conditional
Show({ when: isLoggedIn, children: () => h('div', null, 'Welcome!') });

// Lists with keys
For({ each: items, children: (item) => h('li', { key: item.id }, item.name) });

// Fragments
Fragment({ children: [h('h1', null), h('p', null)] });

📦 Lazy Loading

const LazyComponent = lazy(() => import('./Heavy'));

Suspense({
  children: LazyComponent,
  fallback: h('div', null, 'Loading...')
});

🔒 Security

  • Built-in XSS protection
  • Sanitizes dangerous protocols (javascript:, data:, etc.)
  • State isolation between components

API-Agnostic Design

Veliom intentionally does NOT include HTTP clients or data fetching. You're free to use whatever you want:

// fetch, axios, GraphQL - your choice!
const DataComponent = createComponent(() => {
  const data = createSignal<Data[]>([]);
  const loading = createSignal(false);

  const fetchData = async () => {
    loading.set(true);
    const res = await fetch('/api/data');
    data.set(await res.json());
    loading.set(false);
  };

  return () => h('div', null, ...);
});

Performance Benchmarks

| Feature | Impact | |---------|--------| | Event Delegation | O(n) instead of O(n×m) | | Keyed Reconciliation | Minimal DOM operations | | Batched Updates | Single re-render per frame | | VNode Pooling | Reduced GC pressure |


Project Structure

src/
├── core/
│   ├── renderer.ts    # Virtual DOM & rendering
│   ├── component.ts   # Component system
│   ├── control.ts     # Show, For, Fragment
│   ├── lazy.ts        # Lazy loading
│   ├── suspense.ts    # Suspense component
│   ├── portal.ts      # Portal rendering
│   ├── refs.ts        # Ref system
│   └── error.ts       # Error handling
├── state/
│   ├── store.ts       # Signals & Store
│   ├── hooks.ts       # useEffect, useState
│   └── lifecycle.ts    # Lifecycle hooks
└── utils/
    └── benchmark.ts   # Performance tools

Installation

npm install veliom

Development

# Install dependencies
npm install

# Start dev server
npm run dev

# Run tests
npm test

# Build for production
npm run build

# Type check
npm run typecheck

Browser Support

| Browser | Version | |---------|---------| | Chrome/Edge | 88+ | | Firefox | 78+ | | Safari | 14+ |


License

MIT © 2026 DerStr1k3r


Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

⭐ Star this repo if you find it useful!