
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
liquidstate
Advanced tools
A Zustand-inspired state management library for SolidJS that provides a simple, intuitive API for managing application state with TypeScript support.
npm install liquidstate
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>
);
}
This repository includes comprehensive examples demonstrating various use cases:
Enhanced counter with step control, history tracking, and animations.
Complete todo management with filtering, CRUD operations, and statistics.
User profile management with form validation, edit modes, and preferences.
E-commerce cart with product filtering, search, and complex state management.
Theme switching with persistent state, customization options, and localStorage integration.
# 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
npm run devcreateLiquidStore<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 stateReturns: Store<T> - SolidJS store object
Types:
SetState<T>: (partial: Partial<T> | ((state: T) => Partial<T>)) => voidGetState<T>: () => T// 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
All examples use Tailwind CSS via CDN for styling. The examples demonstrate:
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or need help, please:
If you find Liquidstate helpful and would like to support its development, consider making a donation:
Your support helps maintain and improve this project for the SolidJS community!
Made with ❤️ by Paul Obunga for the SolidJS community
FAQs
A Zustand-inspired state management library for SolidJS
The npm package liquidstate receives a total of 0 weekly downloads. As such, liquidstate popularity was classified as not popular.
We found that liquidstate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.