New:Socket for Asana Is Now Available.Learn more β†’
Get Started

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.1.0
Version published
Weekly downloads
286
-62.12%
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.

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

πŸ‘‰ Visit https://zenbox.del.wang to view the full documentation.

npm install zenbox

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 26 Aug 2025

Related posts