Say Hello to Stattic

Welcome to Stattic, the lightweight, modern, static site generator that's decentralizing publishing and putting the power to create websites back into the hands of the community creating them.

If you've ever been frustrated with the sluggishness, archaic architecture and endless database queries of traditional content management systems, then Stattic is here to offer a better way forward.

What is Stattic?

Stattic is a static site generator** designed for developers, content creators, and anyone who values speed, **simplicity, and security in their website builds.

Take your content, process it with modern templating, and output pure static HTML, CSS, and JavaScript files that can be deployed anywhere – from simple web hosts to CDNs like GitHub Pages, Cloudflare Pages, or countless others.

Why Stattic?

Users demand speed** and **reliability, which is what Stattic excels at. While CMS based websites fall victim to slow database calls, bloated plugins, and constant security patches, Stattic keeps things lean and mean.

Here's what you can expect when you build with Stattic:

1. Blazing Fast Page Loads

With Stattic, you can forget about slow load times. Don't take my word for it though, see for yourself.

Stattic sites are static HTML at their core, meaning no server-side rendering or database calls are needed.

Every page is pre-rendered and ready to be served instantly, resulting in blazing fast page loads. Say goodbye to that dreaded "waiting for the database" delay that can leave your visitors hanging.

2. No Database, No Problem

Databases are great until they aren't. When they go down, get corrupted, or become a security vulnerability, your entire site - and reputation - can go with them. Stattic doesn't need a database at all, effectively making SQL attacks null.

That's right, your site is pure static files – HTML, CSS, and JavaScript. This means less to go wrong while you receive more reliability, especially under high traffic.

3. Modern, Clean Code

Stattic leverages modern web development practices like templating with Jinja2, a Python-powered templating engine. Your templates stay clean, reusable, and easy to maintain.

You can apply DRY (Don't Repeat Yourself) principles to your layout, making design changes effortless across your site.

4. Security as a Standard

By removing the need for dynamic server-side rendering and databases, you eliminate a huge number of potential attack vectors.

Stattic websites are inherently more secure because there are no moving parts that can be exploited by hackers. No more worrying about outdated plugins or surprise security vulnerabilities that can make your CMS powered site a target.

5. Flexibility with Zero Bloat

If you've ever worked with any CMS software, you know how quickly things can get bloated with unused plugins, themes, and database tables.

Stattic is different.

It's lightweight and only includes what you need. If you want to integrate a new feature, you simply add it to the codebase – no plugins required, no bloat added.

6. Fully Customizable

Stattic gives you full control over every aspect of your website.

Need custom fonts? With Stattic's --fonts option, you can download and include any Google Fonts you like.

Want a clean and efficient build process? Use the --minify flag to compress all your CSS and JavaScript into optimized single files, reducing load times and improving performance.

Here's a quick example of how easy it is to build your site with Stattic:

python3 stattic.py --output=output --minify --fonts="Lato,Montserrat"

In one simple command, Stattic:

7. Hosting Freedom

Since Stattic outputs static files, you're not tied down to any specific hosting provider.

You can deploy your Stattic site anywhere – GitHub Pages, Cloudflare Pages, traditional servers - virtually anywhere.

No need to pay for heavy managed hosting like some other platforms force you into.

8. No More Updates Breaking Your Site

How many times has an update caused something to break on your site? It's a never-ending cycle of patching, fixing, and hoping nothing crashes.

Stattic is simple: once your site is built, there's no moving parts to update or break. It just works.

Ready to Try Stattic?

If you're ready to leave behind the heavy and try something more modern and efficient, Stattic is here for you.

Whether you're a developer looking for a clean and customizable solution or a small business owner who just wants a fast and secure website, Stattic will get you there with less hassle.

Ready to build your first Stattic site?

Check out the getting started guide and get started today!