Fast Svelte Static Site X – SSG/SSR focused on SEO for multi-million pages websites
This framework is built to deliver fast generation of millions of pages and reduce deployment costs, while providing great development experience.
npm install -g sssx
Definition | Abbreviation |
---|---|
Svelte Static Site Generator | SSSG |
Svelte Server Side Rendering | SSSR |
= | SSSX |
Why another SSG?
This project was created from the need to manage sites with millions of pages, with making static site generation a primary use case, and SEO optimisation its first goal.
This framework was created to address several things that are lacking in current frameworks:
sssx build <url>
.To run SSSX in cluster mode to use all available CPU cores use the following command:
sssx cluster
Here's a demonstration of generating 1000+ URLs under 30 seconds:
When you render millions of static pages, you don't want to rerender all of them each time. SSSX enables you to finetune which pages has to be updated and when.
This repository is structured as a monorepo and uses workspaces.
To run an example project use the following:
cd apps/example-blog
npm install
npx sssx dev open
Run build cluster using deno:
deno \
--allow-read \
--allow-env \
--allow-sys \
--allow-write \
--allow-run \
../../node_modules/.bin/sssx cluster
cd packages/example
../sssx/src/cli.ts dev open
/__debug you can access __debug
page to see all existing routes. It only works in dev
mode.
PRs are welcome!
Copyright © 2022-2024 Eugene Hauptmann