🎩 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
0.0.1
Version published
Weekly downloads
844
16.09%
Maintainers
1
Weekly downloads
 
Created
Source
ZenBox

What's ZenBox?

A lightweight, intuitive state management library that combines the reactivity of Vue with the simplicity of Zustand for React applications.

🐻 Zustand's Simplicity

const counter = createStore({ count: 0 }); // Full TypeScript inference

⚡ Vue-like DX

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

useWatch(
  () => counter.value.count,
  (current, prev) => console.log("Changed!", current, prev)
);

Getting Started

[!TIP] ✨ Launching soon - stay tuned!

npm install zenbox

Documentation

  • Core - Core API documentation
  • Hooks - Detailed hook documentation
  • Components - Component documentation

Why Choose ZenBox?

The state management library that feels like magic

  • 🎯 Simple API - Love Zustand & Vue? You’ll ❤️ ZenBox! Combines the best of both worlds in an API that feels natural and intuitive
  • Lightning Fast - Smart selective subscriptions + efficient change detection = blazing performance with minimal re-renders
  • 🔮 Vue-like Magic in React - Get useComputed and useWatch reactivity that just works, no manual dependency tracking needed
  • 📦 TypeScript Superpowers - Full auto-inference out of the box. No interfaces, no generics, no headaches - just pure type safety
  • 🏗️ Mutate Like a Human - Write state.count++ instead of setState(prev => ({...prev, count: prev.count + 1})). Immer built-in!
  • 🪶 Featherweight - Under 100 lines of core code, < 10KB gzipped. Big power, tiny footprint

ZenBox vs Zustand

FeatureZenBoxZustand
Simple API✅ One-line store creation✅ Simple
Vue-like DXuseComputed/useWatch❌ Manual handling
TypeScript Support✅ Full auto-inference⚠️ Manual interface required
State Mutation✅ Direct mutation (Vue-like)❌ Manual .get()/.set()
Computed Values✅ Cross-store, auto-tracked⚠️ Pre-combined
Store Scoping✅ Built-in Provider for local store❌ Global default
Immer Support✅ Out of the box⚠️ Middleware required
Learning Curve✅ Minimal (Vue-friendly)✅ Low

License

MIT License © 2025-PRESENT Del Wang

Keywords

vue

FAQs

Package last updated on 29 Jun 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