-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
Description:
Building lightweight Astro-like system instead of depending on external frameworks.
The idea is to create a minimal static site generator (SSG) using Preact with server-side rendering (SSR) and incremental builds, designed specifically for our simple use case.
Core Idea:
Instead of using Astro, build a simplified custom pipeline tailored to our static site.
Key goals:
- Pre-render Preact components to HTML
- Support incremental builds (only rebuild changed pages)
- Fully static output
- Minimal dependencies, fast build times
- Simple routing system
Initial Design Discussion:
Pipeline Concept:
-
Preact for components + routing
-
preact-render-to-stringfor SSR -
Git or SQLite-based hashing for detecting changed pages
- Git diff → detect modified routes/pages
- Rebuild only changed outputs
-
Output static HTML + assets folder
Proposed Requirements:
- Preact component-based templates
- Basic routing (file-based or config-based)
- Incremental build system (hash or git diff)
- Fully static output
- Fast build times
Open Questions:
- How to best integrate file change detection (Git vs SQLite hash)?
- Should we include markdown/MDX rendering?
- Do we need a plugin system or keep it fixed-function?
Next Steps:
- Research minimal SSR pipeline using
preact-render-to-string - Prototype HTML generation for simple routes
- Add incremental rebuild logic using Git diff
- Benchmark build performance vs Astro
https://discord.com/channels/783146548385153035/814676846599208971/1431506045116612608