🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP β†’
Sign In

zenbox

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zenbox

Code React like Vue πŸ’š, manage state like Zustand 🐻.

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1.7K
68.27%
Maintainers
1
Weekly downloads
Β 
Created
Source

ZenBox

What is ZenBox?

ZenBox is a modern React state management library that combines the simplicity of Zustand with the reactive patterns of Vue. It provides an intuitive API that feels natural to developers familiar with either framework.

Love Zustand & Vue? Meet ZenBox ❀️

🐻 Zustand's Simplicity

const counter = createStore({ count: 0 }); // Auto-type inference

πŸ’š Vue-like Developer Experience

const doubled = useComputed(() => counter.value.count * 2);

useWatch(
  () => counter.value.count,
  (current, prev) => console.log("Count changed from", prev, "to", current)
);

Why Choose ZenBox?

  • πŸš€ Easy to Use - Intuitive API for immediate productivity
  • ⚑ High Performance - Only re-renders what actually changed
  • πŸ’ͺ TypeScript First - Full type inference out of the box, zero boilerplate
  • 🎯 Flexible Architecture - Works for both global and component-level state
  • πŸ“¦ Lightweight - 100 lines of core code, under 3KB gzipped (without Immer)

Getting Started

We believe ZenBox will transform how you think about React state management.

npm install zenbox

Ready to experience state management that feels like magic? ✨

Community & Support

ZenBox vs Zustand

FeatureZenBoxZustand
Learning Curveβœ… Minimal (Vue-friendly)βœ… Low
Vue-like Reactivityβœ… useComputed/useWatch❌ Manual handling
TypeScript Supportβœ… Complete auto-inference⚠️ Manual interface definition
State Accessβœ… Unified store.value interface❌ Manual get()/set()
Cross-Store Computedβœ… Automatic dependency tracking⚠️ Requires pre-combination
Store Scopingβœ… Built-in Provider for isolation❌ Global by default
Immer Integrationβœ… Built-in support⚠️ Middleware required
Bundle Size< 3KB gzipped (without Immer)< 1KB gzipped

License

MIT License Β© 2025-PRESENT Del Wang

Keywords

vue

FAQs

Package last updated on 09 Jul 2025

Did you know?

Socket

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.

Install

Related posts