alabjs 0.1.0 → 0.1.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/README.md +45 -0
- package/package.json +15 -2
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# AlabJS
|
|
2
|
+
|
|
3
|
+
> Full-stack React framework powered by a Rust compiler.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/alabjs)
|
|
6
|
+
[](https://github.com/thinkgrid-labs/alabjs/blob/main/LICENSE)
|
|
7
|
+
|
|
8
|
+
## Features
|
|
9
|
+
|
|
10
|
+
- **Rust compiler** — oxc-powered transform pipeline, faster than any JS toolchain
|
|
11
|
+
- **Streaming SSR** — `renderToPipeableStream` with shell/content split out of the box
|
|
12
|
+
- **Server functions** — `defineServerFn` with Zod validation, caching, and typed fetch stubs
|
|
13
|
+
- **Signals** — SolidJS-inspired fine-grained reactivity via `useSyncExternalStore`
|
|
14
|
+
- **File-based routing** — TanStack Router-inspired with typed params and loaders
|
|
15
|
+
- **ISR** — stale-while-revalidate with on-demand revalidation via `POST /_alabjs/revalidate`
|
|
16
|
+
- **i18n** — URL prefix → cookie → Accept-Language detection chain
|
|
17
|
+
- **Offline support** — service worker queue with `useOfflineMutations`
|
|
18
|
+
- **Zero config** — Tailwind 4, TypeScript, and HMR ready from `create-alabjs`
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npx create-alabjs@latest my-app
|
|
24
|
+
cd my-app
|
|
25
|
+
pnpm install && pnpm dev
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## CLI
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
alab dev # Dev server with HMR
|
|
32
|
+
alab build # Production build (Vite + Rolldown)
|
|
33
|
+
alab start # Start production H3 server
|
|
34
|
+
alab ssg # Pre-render static routes to HTML
|
|
35
|
+
alab test # Run tests with Vitest
|
|
36
|
+
alab info # Print route manifest and server functions
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Documentation
|
|
40
|
+
|
|
41
|
+
[alabjs.dev](https://thinkgrid-labs.github.io/alabjs/)
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
MIT © [ThinkGrid Labs](https://github.com/thinkgrid-labs)
|
package/package.json
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alabjs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "AlabJS — full-stack React framework powered by a Rust compiler",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"framework",
|
|
8
|
+
"ssr",
|
|
9
|
+
"fullstack",
|
|
10
|
+
"rust",
|
|
11
|
+
"vite",
|
|
12
|
+
"typescript",
|
|
13
|
+
"server-functions",
|
|
14
|
+
"signals",
|
|
15
|
+
"isr"
|
|
16
|
+
],
|
|
5
17
|
"license": "MIT",
|
|
6
18
|
"type": "module",
|
|
7
19
|
"exports": {
|
|
@@ -103,5 +115,6 @@
|
|
|
103
115
|
"repository": {
|
|
104
116
|
"type": "git",
|
|
105
117
|
"url": "https://github.com/thinkgrid-labs/alabjs.git"
|
|
106
|
-
}
|
|
118
|
+
},
|
|
119
|
+
"author": "Dennis Paler <dennis@thinkgrid.dev>"
|
|
107
120
|
}
|