https://github.com/soham901/chunk
A lightweight reactive core for learning and experimentation
https://github.com/soham901/chunk
Last synced: 6 months ago
JSON representation
A lightweight reactive core for learning and experimentation
- Host: GitHub
- URL: https://github.com/soham901/chunk
- Owner: soham901
- Created: 2025-12-28T12:06:41.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-12-29T07:27:56.000Z (7 months ago)
- Last Synced: 2025-12-30T20:36:12.883Z (7 months ago)
- Language: JavaScript
- Homepage: https://soham901.github.io/chunk/
- Size: 26.4 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Roadmap: ROADMAP.md
Awesome Lists containing this project
README
# Chunk
A lightweight reactive core for learning and experimentation.
## Features
- Deep reactive state with Proxy
- Auto-tracking effects
- ~~TypeScript support~~
## Quick Start
### Via CDN
```html
import { reactive, effect } from 'https://cdn.jsdelivr.net/gh/soham901/chunk/src/core.min.js';
const state = reactive({ count: 0 });
effect(() => console.log(`Count: ${state.count}`));
state.count++; // Triggers effect
```
**Bundle Size**: ~4.0K (minified)
## API
**`reactive(target)`** – Creates a deeply reactive proxy
**`effect(fn)`** – Runs a function; re-runs when dependencies change
## Not Included Yet
Computed values with dependency tracking, array reactivity, Map/Set support, effect cleanup, batched updates, component system, DOM rendering
## Resources
- [Roadmap](./ROADMAP.md) - Feature roadmap and version planning
- [Issues](./ISSUES.md) - Known issues and technical debt
## Status
Developer is busy with coffee. Check back later for v0.0.1