Easiest way to build, optimize and deploy static websites

Opensource tool for creating fast websites optimized for SEO with sitemap generation, page pre-fetching, webp conversion and minification. Scores 99 in Google pagespeed tool.

Features

Create

EJS templating

Out of box support for EJS allows you to mix JS with HTML with simple syntax

Recipes

Download PrevJS site recipes from here or make your own with the UI builder.

Boilerplate

Creating a site from scratch? Just type: prevjs --create folderpath

Page generation

Create pages dynamically from JSON data with templating. Data can be inline, local or remote.

Organized

Your project structure is organized for websites by keeping assets away from pages.

Live preview

Preview changes without reloading webpage including dynamic pages

Partials

Store any repeated block of your website as a partial to reuse whereever needed.

Drafts

Put pages under construction to Drafts. This will prevent the page from being exported.

Build

Webp image convert

Automatically convert all bitmap images to webp format for best size and efficiency

Minification

Minify all html,css and js files on export

Recipe.json

Control your site parameters, deployment, build with recipe.json

SiteMap generation

Generate sitemap.xml including dynamically exported pages

Page pre-fetching

Make pages load faster by pre-fetching links when idle

Search index

Automatically generate search index of your site in JSON format

Fast builds

PrevJS sites build fast with minimal time and maximum optimizations

Deploy

Zero config

PrevJS sites are purely static and require no configuration to run

Zero dependencies

PrevJS sites can be even run locally as they only consist of HTML,JS and CSS

AWS support

Out of box deployment support for AWS CloudFront CDN. prevjs --deploy site.

Made of static sites

Simply unzip your exported prevjs site to any CDN to make it live