···11# Debugging
2233-The Volt.js debugging system provides introspection and visualization tools for reactive primitives.
44-It's a lazy-loadable module (`volt/debug`) that doesn't affect production bundle size.
33+The VoltX.js debugging system provides introspection and visualization tools for reactive primitives.
44+It's a lazy-loadable module (`voltx.js/debug`) that doesn't affect production bundle size.
5566## Architecture
77···101101For development, import debug utilities directly:
102102103103```ts
104104-import { debugSignal, debugComputed, logAllSignals, buildDependencyGraph } from 'volt/debug';
104104+import { debugSignal, debugComputed, logAllSignals, buildDependencyGraph } from 'voltx.js/debug';
105105```
106106107107For debugging existing code, attach debugger to existing signals:
108108109109```ts
110110-import { signal } from 'volt';
111111-import { attachDebugger, vdebugger } from 'volt/debug';
110110+import { signal } from 'voltx.js';
111111+import { attachDebugger, vdebugger } from 'voltx.js/debug';
112112113113const count = signal(0);
114114attachDebugger(count, 'signal', 'count');
···118118For browser console debugging, expose vdebugger globally:
119119120120```ts
121121-import { vdebugger } from 'volt/debug';
121121+import { vdebugger } from 'voltx.js/debug';
122122window.vdebugger = vdebugger;
123123```
124124
+2-2
docs/spec/plugin-spec.md
···11-# Volt Plugin System Spec
11+# VoltX Plugin System Spec
2233## Overview
44···6767### Example: Custom Tooltip Plugin
68686969```ts
7070-import { registerPlugin } from 'volt';
7070+import { registerPlugin } from 'voltx.js';
71717272registerPlugin('tooltip', (context, value) => {
7373 const tooltip = document.createElement('div');
+32
lib/.npmignore
···11+# Development files
22+*.log
33+*.swp
44+*.swo
55+*~
66+77+# Test files
88+test/
99+**/*.test.ts
1010+**/*.spec.ts
1111+coverage/
1212+1313+# Build config
1414+tsconfig*.json
1515+vite.config.ts
1616+vitest.config.ts
1717+postcss.config.js
1818+eslint.config.js
1919+2020+# Development
2121+node_modules/
2222+.DS_Store
2323+.vscode/
2424+.idea/
2525+2626+# Demo
2727+demo/
2828+index.html
2929+3030+# Keep dist and src
3131+!dist/
3232+!src/
+21
lib/LICENSE
···11+MIT License
22+33+Copyright (c) 2025 [Owais J]
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
+68
lib/README.md
···11+# VoltX.js
22+33+A lightweight reactive framework for declarative UIs. Build interactive applications using only HTML attributes powered by signals.
44+55+## Features
66+77+- Declarative HTML-driven reactivity via `data-volt-*` attributes
88+- Signal-based state management with automatic DOM updates
99+- Zero dependencies, under 15 KB gzipped
1010+- No virtual DOM, no build step required
1111+- Server-side rendering and hydration support
1212+- Built-in plugins for persistence, routing, and scroll management
1313+1414+## Installation
1515+1616+### npm
1717+1818+```bash
1919+npm install voltx.js
2020+```
2121+2222+### JSR
2323+2424+```bash
2525+npx jsr add @voltx/core
2626+```
2727+2828+### Deno
2929+3030+```typescript
3131+import { charge, signal } from "jsr:@voltx/core";
3232+```
3333+3434+## Quick Start
3535+3636+```html
3737+<div data-volt data-volt-state='{"count": 0}'>
3838+ <p data-volt-text="count"></p>
3939+ <button data-volt-on-click="count.set(count.get() + 1)">Increment</button>
4040+</div>
4141+4242+<script type="module">
4343+ import { charge } from 'voltx.js';
4444+ charge();
4545+</script>
4646+```
4747+4848+## Using CSS
4949+5050+Import the optional CSS framework:
5151+5252+```typescript
5353+import 'voltx.js/css';
5454+```
5555+5656+Or include via CDN:
5757+5858+```html
5959+<link rel="stylesheet" href="https://unpkg.com/voltx.js/dist/volt.css">
6060+```
6161+6262+## Documentation
6363+6464+Full documentation available at [your-docs-url]
6565+6666+## License
6767+6868+MIT