Opinionated static site generator.

View on GitHub


%s %s

Opinionated static site generator.



npx --package=dante -- create-dante-site my-site 
cd my-site 
npm install 
dante dev 


Creating pages and files

Simply create all file needed in the build function in src/build/index.ts. You can use any framework you want, the predefined one is React.

We strongly recommend to use the createFile function exported from dante to create file as it will take care of replacing $hash in the file name with the actual file hash.

Also, in order to correctly apply production optimizations, call and await the provided after callback after done building your site.

Your src/build/index.ts must export the following members:


Once you have done editing, you should execute dante build. The website will be exported in the dist folder.

Adding commands to dante

You can create a file src/build/cli.ts that should export a setupCLI function. The function will received a commander program and a pino logger in order to modify the dante CLI.

ESM Only

This package only supports to be directly imported in a ESM context.

For informations on how to use it in a CommonJS context, please check this page.

Contributing to dante


Copyright (C) 2022 and above Shogun (shogun@cowtech.it).

Licensed under the ISC license, which can be found at https://choosealicense.com/licenses/isc.

Made by a proud Italian!