sssx
Version:
Fast Svelte Static Site X β SSG/SSR focused on SEO for multi-million pages websites
137 lines (93 loc) β’ 5.32 kB
Markdown
# SSSX
[](https://twitter.com/sssxdev)
[](https://twitter.com/eugenehp)
[](https://www.youtube.com/channel/UCYzzLilEQdBG0Jj1JhVtYYg)
[](./LICENSE)
[](https://www.npmjs.com/package/sssx)
[](https://npmcharts.com/compare/sssx?minimal=true)
[](https://npmcharts.com/compare/sssx?minimal=true)
[](https://github.com/sssx-dev/sssx/watchers)
[](https://github.com/sssx-dev/sssx/stargazers)
[](https://github.com/sssx-dev/sssx/network/members)
[](https://github.com/sssx-dev/sssx/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3Abug)
[](https://github.com/sssx-dev/sssx/issues)
[](https://github.com/sssx-dev/sssx/pulls)
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.
```shell
npm install -g sssx
```
## Name
| Definition | Abbreviation |
| ---------------------------- | ------------ |
| Svelte Static Site Generator | SSSG |
| Svelte Server Side Rendering | SSSR |
| = | SSSX |
## Demo
[YouTube demo](http://www.youtube.com/watch?v=8gNkKyfspl8)
[](http://www.youtube.com/watch?v=8gNkKyfspl8 "SSSX demo")
## Overview
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.
## Philosophy
This framework was created to address several things that are lacking in current frameworks:
1. SEO first
2. Links and URLs first
3. Designed for websites with millions of pages
## Features
- π¦ First-class Deno support
- π Incremental updates `sssx build <url>`.
- π It's fast! 1000ms or less spent on building each page.
- π Each page is it's own SPA. Fully autonomous.
- π¦ Hydration using Svelte components.
- π¦ Small size of JavaScript overhead, thanks to Svelte.
- πͺ ESM first, no more enormous CommonJS bundles, thanks to Esbuild.
- πΈοΈ Out of box SEO features: metatags, i18n, web vitals, robots, sitemap, etc.
- π Host anywhere. It's just HTML files with bunch of CSS and JS files.
- β‘οΈ You can generate one URL or millions. No need to rebuild whole website each time.
- π Development Experience is our priority!
- 5οΈβ£ Supports Svelte 5.
## Cluster mode
To run SSSX in cluster mode to use all available CPU cores use the following command:
```shell
sssx cluster
```
Here's a demonstration of generating 1000+ URLs under 30 seconds:

## Documentation
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.
## Structure
This repository is structured as a monorepo and uses workspaces.
## Packages
- [x] [sssx](https://github.com/sssx-dev/sssx/tree/master/packages/sssx) main package
- [x] [example](https://github.com/sssx-dev/sssx/tree/master/packages/example) Example website project built with SSSX
## Getting started
To run an example project use the following:
```shell
cd apps/example-blog
npm install
npx sssx dev open
```
Run build cluster using deno:
```shell
deno \
--allow-read \
--allow-env \
--allow-sys \
--allow-write \
--allow-run \
../../node_modules/.bin/sssx cluster
```
## Development
```shell
cd packages/example
../sssx/src/cli.ts dev open
```
### Helper URL
[/\_\_debug](http://127.0.0.1:8080/__debug/) you can access `__debug` page to see all existing routes. It only works in `dev` mode.
## Contributing
PRs are welcome!
## License
Copyright Β© 2022-2024 [Eugene Hauptmann](https://twitter.com/sssx-dev)
[MIT](https://github.com/sssx-dev/sssx/blob/master/LICENSE)