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

liquidstate

v1.0.0

Published

A Zustand-inspired state management library for SolidJS

Readme

🧊 Liquidstate

A Zustand-inspired state management library for SolidJS that provides a simple, intuitive API for managing application state with TypeScript support.

npm version License: MIT

✨ Features

  • 🎯 Simple API: Zustand-inspired interface that's easy to learn and use
  • 🔒 TypeScript Support: Full type safety with TypeScript
  • SolidJS Integration: Built specifically for SolidJS reactivity
  • 🎨 Tailwind CSS Ready: Examples styled with Tailwind CSS
  • 📦 Lightweight: Minimal bundle size with no external dependencies
  • 🔄 Reactive: Automatic re-renders when state changes
  • 🛠️ Developer Friendly: Great developer experience with clear APIs

🚀 Quick Start

Installation

npm install liquidstate

Basic Usage

import { createLiquidStore } from 'liquidstate';

// Create a store
const useStore = createLiquidStore((set, get) => ({
  count: 0,
  increment: () => set(state => ({ count: state.count + 1 })),
  decrement: () => set(state => ({ count: state.count - 1 })),
  reset: () => set({ count: 0 }),
}));

// Use in component
function Counter() {
  return (
    <div>
      <p>Count: {useStore.count}</p>
      <button onClick={useStore.increment}>+</button>
      <button onClick={useStore.decrement}>-</button>
      <button onClick={useStore.reset}>Reset</button>
    </div>
  );
}

📚 Examples

This repository includes comprehensive examples demonstrating various use cases:

🎯 Counter Demo

Enhanced counter with step control, history tracking, and animations.

📝 Todo List

Complete todo management with filtering, CRUD operations, and statistics.

👤 User Profile

User profile management with form validation, edit modes, and preferences.

🛒 Shopping Cart

E-commerce cart with product filtering, search, and complex state management.

🎨 Theme Toggle

Theme switching with persistent state, customization options, and localStorage integration.

🛠️ Development

Prerequisites

  • Node.js 16+
  • npm or yarn

Setup

# Clone the repository
git clone <repository-url>
cd liquidstate

# Install dependencies
npm install

# Start development server
npm run dev

# Run tests
npm test

# Build for production
npm run build

View Examples

  1. Start the development server: npm run dev
  2. Open http://localhost:3002/ for the main counter demo
  3. Open http://localhost:3002/examples.html for the examples index

📖 API Reference

createLiquidStore<T>(initializer)

Creates a new store with the given initializer function.

Parameters:

  • initializer: (set: SetState<T>, get: GetState<T>) => T - Function that returns the initial state

Returns: Store<T> - SolidJS store object

Types:

  • SetState<T>: (partial: Partial<T> | ((state: T) => Partial<T>)) => void
  • GetState<T>: () => T

State Updates

// Direct object update
set({ count: 5 });

// Function-based update
set(state => ({ count: state.count + 1 }));

// Partial updates
set({ name: 'John' }); // Only updates name, keeps other properties

🎨 Styling

All examples use Tailwind CSS via CDN for styling. The examples demonstrate:

  • Responsive design patterns
  • Custom color schemes
  • Interactive components
  • Modern UI/UX practices

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📞 Support

If you have any questions or need help, please:

  1. Check the examples directory
  2. Open an issue on GitHub
  3. Review the API documentation above

💖 Support the Project

If you find Liquidstate helpful and would like to support its development, consider making a donation:

Donate with PayPal

Your support helps maintain and improve this project for the SolidJS community!


Made with ❤️ by Paul Obunga for the SolidJS community