πŸš€ Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more β†’
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.0
Version published
Weekly downloads
929
23.05%
Maintainers
1
Weekly downloads
Β 
Created
Source

ZenBox πŸ“¦β€‹β€‹

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

✨ Launching soon - stay tuned!

npm install zenbox

Why ZenBox?

🐻 Zustand's Simplicity

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

⚑ Vue-like DX

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

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

πŸš€ Key Benefits

  • Minimal learning curve - If you know Vue or Zustand, you know ZenBox
  • React optimized - Built specifically for React's rendering model
  • TypeScript first​​​​​​ – Fully inferred types , zero manual interfaces
  • ​​Immer built-in​​ – Mutate state naturally, no spread operators
  • Tiny Bundle​​ – Core library under 100 lines, < 3KB gzipped

Getting Started

Coming soon...

ZenBox vs Zustand

FeatureZenBoxZustand
Simple APIβœ… One-line store creationβœ… Simple
Vue-like DXβœ… useComputed/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⚠️ Plugin required
Learning Curveβœ… Minimal (Vue-friendly)βœ… Low

License

MIT License Β© 2025-PRESENT Del Wang

Keywords

vue

FAQs

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