roqa 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.0.1] - 2026-01-10
9
+
10
+ ### Added
11
+
12
+ - Initial release
13
+ - Compile-time JSX transformation to optimized vanilla JavaScript
14
+ - Reactive primitives: `cell`, `get`, `put`, `set`, `bind`, `notify`
15
+ - `template()` for efficient DOM cloning
16
+ - `defineComponent()` for creating web components
17
+ - `<For>` component for reactive list rendering
18
+ - `<Show>` component for conditional rendering
19
+ - Event delegation system with `delegate()`
20
+ - Full TypeScript type definitions
21
+ - JSX runtime types for IDE support
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Hawk Ticehurst
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # Roqa
2
+
3
+ Roqa is a compile-time reactive web framework for building user interfaces and applications.
4
+
5
+ Learn more about it at https://roqa.dev.
6
+
7
+ ## At a glance
8
+
9
+ ```jsx
10
+ import { defineComponent, cell, get, set } from "roqa";
11
+
12
+ function App() {
13
+ const count = cell(0);
14
+ const doubled = cell(() => get(count) * 2);
15
+
16
+ const increment = () => {
17
+ set(count, get(count) + 1);
18
+ };
19
+
20
+ return (
21
+ <>
22
+ <button onclick={increment}>Count is {get(count)}</button>
23
+ <p>Doubled: {get(doubled)}</p>
24
+ </>
25
+ );
26
+ }
27
+
28
+ defineComponent("counter-button", App);
29
+ ```
30
+
31
+ ## License
32
+
33
+ [MIT](./LICENSE)
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "roqa",
3
+ "version": "0.0.1",
4
+ "description": "Roqa is a reactive UI framework",
5
+ "keywords": [
6
+ "UI",
7
+ "framework",
8
+ "roqa",
9
+ "roqajs",
10
+ "web components",
11
+ "custom elements",
12
+ "jsx",
13
+ "compiler"
14
+ ],
15
+ "homepage": "https://roqa.dev",
16
+ "bugs": {
17
+ "url": "https://github.com/roqajs/roqa/issues"
18
+ },
19
+ "license": "MIT",
20
+ "author": "Hawk Ticehurst",
21
+ "sideEffects": false,
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/roqajs/roqa.git",
25
+ "directory": "packages/roqa"
26
+ },
27
+ "type": "module",
28
+ "files": [
29
+ "src",
30
+ "types",
31
+ "README.md",
32
+ "LICENSE",
33
+ "CHANGELOG.md"
34
+ ],
35
+ "exports": {
36
+ ".": {
37
+ "types": "./types/index.d.ts",
38
+ "import": "./src/runtime/index.js",
39
+ "browser": "./src/runtime/index.js",
40
+ "default": "./src/runtime/index.js"
41
+ },
42
+ "./package.json": "./package.json",
43
+ "./compiler": {
44
+ "types": "./types/compiler.d.ts",
45
+ "import": "./src/compiler/index.js",
46
+ "default": "./src/compiler/index.js"
47
+ },
48
+ "./jsx-runtime": {
49
+ "types": "./src/jsx-runtime.d.ts",
50
+ "import": "./src/jsx-runtime.js",
51
+ "default": "./src/jsx-runtime.js"
52
+ }
53
+ },
54
+ "dependencies": {
55
+ "@babel/generator": "^7.28.5",
56
+ "@babel/parser": "^7.28.5",
57
+ "@babel/traverse": "^7.28.5",
58
+ "@babel/types": "^7.28.5",
59
+ "magic-string": "^0.30.21"
60
+ },
61
+ "devDependencies": {
62
+ "@vitest/browser": "^3.0.0",
63
+ "@vitest/coverage-v8": "^3.0.0",
64
+ "playwright": "^1.49.0",
65
+ "vitest": "^3.0.0"
66
+ },
67
+ "engines": {
68
+ "node": ">=20.0.0"
69
+ },
70
+ "scripts": {
71
+ "test": "vitest run",
72
+ "test:watch": "vitest",
73
+ "test:unit": "vitest run --project unit",
74
+ "test:browser": "vitest run --project browser",
75
+ "test:coverage": "vitest run --coverage"
76
+ }
77
+ }