
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.