@hozu/dev 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 olevatorr
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,15 @@
1
+ # @hozu/dev
2
+
3
+ Hozu development server: CSS hot swap and state-keeping reloads.
4
+
5
+ Part of [Hozu](https://github.com/olevatorr/Hozu#readme), an AI-first web framework. Most apps start from
6
+ `npm create hozu@latest`, which installs the right packages and sets up Claude Code or `AGENTS.md` agents.
7
+
8
+ ```sh
9
+ npm install @hozu/dev
10
+ ```
11
+
12
+ Requires Node 22.18 or newer. Documentation: the [README](https://github.com/olevatorr/Hozu#readme) and the
13
+ agent skill that `create-hozu` writes into each app.
14
+
15
+ MIT © olevatorr
package/dist/bin.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=bin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
package/dist/bin.js ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { dev } from './index.js';
3
+ const entry = process.argv[2] ?? 'serve.ts';
4
+ const port = Number(process.env.PORT ?? 3000);
5
+ const { url } = await dev({ entry, port });
6
+ console.log(`Hozu dev on ${url} (hot CSS, reload on code changes)`);
7
+ //# sourceMappingURL=bin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAEhC,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,UAAU,CAAA;AAC3C,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAA;AAC7C,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;AAC1C,OAAO,CAAC,GAAG,CAAC,eAAe,GAAG,oCAAoC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const devClient = "const source = new EventSource('/_hozu/dev')\nsource.addEventListener('reload', () => {\n window.__hozu?.save()\n location.reload()\n})\nsource.addEventListener('css', async () => {\n const html = await (await fetch(location.href, { headers: { accept: 'text/html' } })).text()\n const next = new DOMParser().parseFromString(html, 'text/html')\n const fresh = [...next.querySelectorAll('link[rel=\"stylesheet\"]')].map((l) => l.getAttribute('href'))\n const links = [...document.querySelectorAll('link[rel=\"stylesheet\"]')]\n links.forEach((link, i) => {\n const href = fresh[i]\n if (href && link.getAttribute('href') !== href) link.setAttribute('href', href)\n })\n})\n";
2
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,krBAerB,CAAA"}
package/dist/client.js ADDED
@@ -0,0 +1,17 @@
1
+ export const devClient = `const source = new EventSource('/_hozu/dev')
2
+ source.addEventListener('reload', () => {
3
+ window.__hozu?.save()
4
+ location.reload()
5
+ })
6
+ source.addEventListener('css', async () => {
7
+ const html = await (await fetch(location.href, { headers: { accept: 'text/html' } })).text()
8
+ const next = new DOMParser().parseFromString(html, 'text/html')
9
+ const fresh = [...next.querySelectorAll('link[rel="stylesheet"]')].map((l) => l.getAttribute('href'))
10
+ const links = [...document.querySelectorAll('link[rel="stylesheet"]')]
11
+ links.forEach((link, i) => {
12
+ const href = fresh[i]
13
+ if (href && link.getAttribute('href') !== href) link.setAttribute('href', href)
14
+ })
15
+ })
16
+ `;
17
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;CAexB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { type Server } from 'node:http';
2
+ export interface DevOptions {
3
+ entry: string;
4
+ cwd?: string;
5
+ port?: number;
6
+ appPort?: number;
7
+ debounce?: number;
8
+ log?: (line: string) => void;
9
+ }
10
+ export interface DevServer {
11
+ server: Server;
12
+ url: string;
13
+ close(): Promise<void>;
14
+ }
15
+ export declare function dev({ entry, cwd, port, appPort, debounce, log, }: DevOptions): Promise<DevServer>;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,MAAM,EAAuB,MAAM,WAAW,CAAA;AAanF,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7B;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACvB;AAID,wBAAsB,GAAG,CAAC,EACxB,KAAK,EACL,GAAmB,EACnB,IAAW,EACX,OAAkB,EAClB,QAAa,EACb,GAAiC,GAClC,EAAE,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,CAoHjC"}
package/dist/index.js ADDED
@@ -0,0 +1,123 @@
1
+ import { spawn } from 'node:child_process';
2
+ import { readFileSync, statSync, watch } from 'node:fs';
3
+ import { createServer, request } from 'node:http';
4
+ import { join } from 'node:path';
5
+ import { fileURLToPath } from 'node:url';
6
+ import { devClient } from './client.js';
7
+ let bundle = null;
8
+ const devBundle = () => (bundle ??= readFileSync(fileURLToPath(import.meta.resolve('@hozu/runtime-client/browser-dev/client.js')), 'utf8'));
9
+ const ignored = /(^|[/\\])(node_modules|dist|dist-static|\.git)([/\\]|$)/;
10
+ export async function dev({ entry, cwd = process.cwd(), port = 3000, appPort = port + 1, debounce = 60, log = (line) => console.log(line), }) {
11
+ const clients = new Set();
12
+ let child = null;
13
+ let ready = Promise.resolve();
14
+ const start = () => {
15
+ child = spawn(process.execPath, [entry], {
16
+ cwd,
17
+ env: { ...process.env, PORT: String(appPort), HOZU_DEV: '1' },
18
+ stdio: ['ignore', 'pipe', 'inherit'],
19
+ });
20
+ ready = new Promise((resolve) => {
21
+ child.stdout.on('data', (chunk) => {
22
+ process.stdout.write(chunk);
23
+ resolve();
24
+ });
25
+ child.on('exit', () => resolve());
26
+ });
27
+ };
28
+ const stop = () => new Promise((resolve) => {
29
+ const c = child;
30
+ child = null;
31
+ if (!c || c.exitCode !== null)
32
+ return resolve();
33
+ c.once('exit', () => resolve());
34
+ c.kill();
35
+ });
36
+ const send = (event) => {
37
+ for (const res of clients)
38
+ res.write(`event: ${event}\ndata: {}\n\n`);
39
+ };
40
+ let pending = new Set();
41
+ let timer = null;
42
+ const flush = async () => {
43
+ const files = [...pending];
44
+ pending = new Set();
45
+ const cssOnly = files.every((f) => f.endsWith('.css'));
46
+ await stop();
47
+ start();
48
+ await ready;
49
+ log(`${cssOnly ? 'css' : 'reload'}: ${files.join(', ')}`);
50
+ send(cssOnly ? 'css' : 'reload');
51
+ };
52
+ const since = performance.timeOrigin + performance.now();
53
+ const untouched = (file) => {
54
+ try {
55
+ return statSync(join(cwd, file)).mtimeMs < since;
56
+ }
57
+ catch {
58
+ return false;
59
+ }
60
+ };
61
+ const watcher = watch(cwd, { recursive: true }, (_, file) => {
62
+ if (!file || ignored.test(file) || !/\.(ts|css|json)$/.test(file) || untouched(file))
63
+ return;
64
+ pending.add(file);
65
+ if (timer)
66
+ clearTimeout(timer);
67
+ timer = setTimeout(() => void flush(), debounce);
68
+ });
69
+ start();
70
+ await ready;
71
+ const server = createServer((req, res) => {
72
+ if (req.url === '/_hozu/dev') {
73
+ res.writeHead(200, { 'content-type': 'text/event-stream', 'cache-control': 'no-cache' });
74
+ res.write(': connected\n\n');
75
+ clients.add(res);
76
+ req.on('close', () => clients.delete(res));
77
+ return;
78
+ }
79
+ if (req.url === '/_hozu/dev.js')
80
+ return void res.writeHead(200, { 'content-type': 'text/javascript' }).end(devClient);
81
+ if (req.url?.split('?')[0]?.endsWith('/_hozu/client.js'))
82
+ return void res
83
+ .writeHead(200, { 'content-type': 'text/javascript', 'cache-control': 'no-store' })
84
+ .end(devBundle());
85
+ void ready.then(() => {
86
+ const upstream = request({ host: '127.0.0.1', port: appPort, path: req.url, method: req.method, headers: req.headers }, (up) => {
87
+ const html = String(up.headers['content-type'] ?? '').startsWith('text/html');
88
+ if (!html) {
89
+ res.writeHead(up.statusCode ?? 502, up.headers);
90
+ up.pipe(res);
91
+ return;
92
+ }
93
+ const { 'content-length': _, ...headers } = up.headers;
94
+ res.writeHead(up.statusCode ?? 502, headers);
95
+ up.on('data', (chunk) => {
96
+ const text = chunk.toString();
97
+ res.write(text.includes('</body>')
98
+ ? text.replace('</body>', '<script type="module" src="/_hozu/dev.js"></script></body>')
99
+ : text);
100
+ });
101
+ up.on('end', () => res.end());
102
+ });
103
+ upstream.on('error', () => res.writeHead(502, { 'content-type': 'text/plain' }).end('App not running'));
104
+ req.pipe(upstream);
105
+ });
106
+ });
107
+ await new Promise((resolve) => server.listen(port, '127.0.0.1', () => resolve()));
108
+ const actual = server.address().port;
109
+ return {
110
+ server,
111
+ url: `http://127.0.0.1:${actual}`,
112
+ close: async () => {
113
+ watcher.close();
114
+ if (timer)
115
+ clearTimeout(timer);
116
+ for (const res of clients)
117
+ res.end();
118
+ await stop();
119
+ await new Promise((resolve) => server.close(() => resolve()));
120
+ },
121
+ };
122
+ }
123
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAkB,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AACvE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAoC,MAAM,WAAW,CAAA;AAEnF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,IAAI,MAAM,GAAkB,IAAI,CAAA;AAChC,MAAM,SAAS,GAAG,GAAG,EAAE,CACrB,CAAC,MAAM,KAA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AAY,CAAC,KAAK,CAAC,CAAA;YAC9B,KAAK,MAAM,GAAG,IAAI,OAAO;gBAAE,GAAG,CAAC,GAAG,EAAE,CAAA;YACpC,MAAM,IAAI,EAAE,CAAA;YACZ,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;QACrE,CAAC;KACF,CAAA;AACH,CAAC"}
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@hozu/dev",
3
+ "version": "0.1.0",
4
+ "description": "Hozu development server: CSS hot swap and state-keeping reloads",
5
+ "keywords": [
6
+ "hozu",
7
+ "framework",
8
+ "ai",
9
+ "agents",
10
+ "ssr",
11
+ "islands",
12
+ "typescript"
13
+ ],
14
+ "homepage": "https://github.com/olevatorr/Hozu/tree/main/packages/dev#readme",
15
+ "bugs": {
16
+ "url": "https://github.com/olevatorr/Hozu/issues"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/olevatorr/Hozu.git",
21
+ "directory": "packages/dev"
22
+ },
23
+ "license": "MIT",
24
+ "author": "olevatorr",
25
+ "type": "module",
26
+ "bin": {
27
+ "hozu-dev": "./dist/bin.js"
28
+ },
29
+ "exports": {
30
+ ".": {
31
+ "types": "./dist/index.d.ts",
32
+ "default": "./dist/index.js"
33
+ }
34
+ },
35
+ "files": [
36
+ "dist"
37
+ ],
38
+ "engines": {
39
+ "node": ">=22.18"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "dependencies": {
45
+ "@hozu/runtime-client": "0.1.0"
46
+ },
47
+ "sideEffects": false
48
+ }