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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@voltakit/volta

v0.6.4

Published

Toolkit for building low-code/no-code platforms. Provides state management, data layers, component registry, and React adapters.

Readme

Volta

Volta - LC/NC Builder Toolkit

Volta is a toolkit for developers who want to build low-code/no-code platforms. It provides the essential building blocks: component registry, data/state bindings, and React adapters.

Note: Volta is not a visual builder itself—it's the foundation that powers them.

npm version License: MIT TypeScript Part of Sthira

🎯 What Volta Provides

| Category | Features | | ----------------- | ---------------------------------------------------------------------------------------- | | Core | initVolta(), query(), mutate(), register(), store() | | Layers | ThemeManager (white-label theming) | | Signals | createDerivedStore() with Sthira computed signals | | React Adapter | @voltakit/volta/react - useVolta, useVoltaQuery, useVoltaStore, useCreateStore |

📦 Installation

npm install @voltakit/volta

Built on @sthirajs/* - all dependencies bundled!

🚀 Quick Start

Initialize Volta

import { initVolta } from '@voltakit/volta'

initVolta({
  baseUrl: 'https://api.example.com',
  enableDevTools: true,
})

Vanilla API (Framework-Agnostic)

import { query, mutate, invalidate } from '@voltakit/volta'

// Fetch data
const users = await query<User[]>('/users')
const user = await query<User>('/users/:id', { path: { id: '123' } })

// Mutate data
const newUser = await mutate<User>('/users', { name: 'John' })
await mutate('/users/123', { name: 'Updated' }, { method: 'PUT' })

// Invalidate cache
invalidate('/users')

Component Registration

import { query, store, register } from '@voltakit/volta'

// Define data binding (lazy fetch)
const userData = query({
  endpoint: '/users/:userId',
  params: ['userId'],
})

// Define state binding (scoped per instance)
const userState = store({
  initial: { activeTab: 'info' },
})

// Register component
register('user-card', {
  type: 'data-display',
  component: () => import('./UserCard'),
  data: userData,
  state: userState,
  theme: ['colors.primary', 'colors.accent'],
})

React Hooks

import { useVolta, useCreateStore, useVoltaStore } from '@voltakit/volta/react'

function UserCard({ userId }: { userId: string }) {
  // Access global Volta state
  const { isReady } = useVolta()

  // Create or get a store lazy-loaded
  const userStore = useCreateStore('user-settings', {
    initialState: { theme: 'light', notifications: true },
  })

  // Subscribe to store updates
  const settings = useVoltaStore(userStore)

  if (!isReady) return <div>Initializing...</div>

  return (
    <div>
      <h2>User Settings</h2>
      <p>Theme: {settings?.theme}</p>
    </div>
  )
}

🧩 Examples

Check out the examples/ directory for full-featured demos:

| Example | Description | Features | | ----------------------------------------------------- | ---------------------------- | --------------------------------------------------------------------------------- | | React CRM | dashboard application | Data fetching (useVoltaQuery), Mutations, Theme switching | | Component Builder | Low-code editor (Puck-style) | Drag & Drop (react-dnd), Component Registry, Undo/Redo History, Property Editor |

Signal-Based Derived Stores

import { signal } from '@sthirajs/core'
import { createDerivedStore } from '@voltakit/volta'

const count = signal(5)
const multiplier = signal(2)

const derived = createDerivedStore([count, multiplier], ([c, m]) => c * m)

console.log(derived.getValue()) // 10
count.set(10)
console.log(derived.getValue()) // 20

📂 Project Structure

src/
├── core/                    # Pure TypeScript (framework-agnostic)
│   ├── volta.ts             # Main API: query, mutate, lifecycle
│   ├── component-registry/  # register, query, store, bindings
│   └── types/
│
├── layers/                  # Application-level contexts
│   ├── theme-manager/       # White-label theming
│   ├── data-layer/          # Data fetching (internal)
│   └── state-layer/         # State management (internal)
│
├── react/                   # React adapter
│   ├── hooks/               # useVoltaComponent, useVoltaRegistry
│   └── providers/
│
└── index.ts

📚 Documentation

🛠️ Development

npm install    # Install dependencies
npm run build  # Build
npm run lint   # Lint
npm run test   # Test (100+ tests)

🤝 Contributing

Contributions welcome! See Contributing Guide.

📄 License

MIT License.


Part of the Sthira ecosystem - github.com/laphilosophia