glashjs 0.6.1 → 0.7.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 +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# glashjs
|
|
2
2
|
|
|
3
|
-
The glashdb-native web framework
|
|
3
|
+
The glashdb-native web framework — a **Next.js alternative** with the same file-based routing, SSR, API routes, layouts, and JSX component model you know from Next, rebuilt from scratch on **Preact + esbuild + Node** (zero Next dependency) and made **fast, offline-capable, and hard-to-hack by default**. It ships real features instead of promises.
|
|
4
4
|
|
|
5
5
|
> **Status:** `0.6.0` — the full framework is here: file-based routing, server-side rendering, API routes, JSX components with client hydration, nested layouts, streaming SSR, a dev/prod server, plus the asset optimizer, offline service worker, animated favicon, and secure-by-default headers. Core installs with zero mandatory dependencies.
|
|
6
6
|
|
|
@@ -155,7 +155,7 @@ animatedFavicon: true, // bundled animated glash mark (d
|
|
|
155
155
|
// animatedFavicon: { frames: ['/f0.svg','/f1.svg'], fps: 10 }
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
-
## What's built (
|
|
158
|
+
## What's built (a Next.js alternative)
|
|
159
159
|
- [x] Asset optimizer (Brotli/Gzip real; AVIF/WebP/AV1 via optional sharp/ffmpeg)
|
|
160
160
|
- [x] Offline Service Worker + PWA manifest
|
|
161
161
|
- [x] Secure-by-default headers + CSP + SRI
|
|
@@ -180,4 +180,4 @@ animatedFavicon: true, // bundled animated glash mark (d
|
|
|
180
180
|
- [ ] `glash deploy` → glashdb hosting in one command
|
|
181
181
|
|
|
182
182
|
## Design stance
|
|
183
|
-
glashjs is **
|
|
183
|
+
glashjs is a **Next.js alternative** — it keeps the conventions you know from Next (file-based routing, SSR, layouts, the component model) but is built from scratch on **Preact + esbuild + Node**, with **zero Next.js dependency**. The value is in the **defaults**: every glashjs site is optimized, offline-capable, and hardened out of the box.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glashjs",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "glashjs — a
|
|
3
|
+
"version": "0.7.1",
|
|
4
|
+
"description": "glashjs — a Next.js alternative built on Preact + esbuild + Node: file-based routing, SSR, API routes, JSX components with client hydration, nested layouts, streaming SSR, a best-in-class build-time asset optimizer, offline PWA layer, animated favicon, and secure-by-default headers. Zero mandatory dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"glash": "bin/glash.mjs"
|