- v0.77.4Latest
- v0.77.3
- v0.77.2
- v0.77.1
- v0.77.0
- v0.76.4
- v0.76.3
- v0.76.2
- v0.76.1
- v0.76.0
- v0.75.0
- v0.74.5
- v0.74.4
- v0.74.3
- v0.74.2
- v0.74.1
- v0.74.0
- v0.73.1
- v0.73.0
- v0.71.3
- v0.71.2
- v0.71.1
- v0.71.0
- v0.70.3
- v0.70.2
- v0.70.1
- v0.70.0
- v0.69.0
- v0.68.0
- v0.67.1
- v0.67.0
- v0.66.8
- v0.66.7
- v0.66.6
- v0.66.5
- v0.66.4
- v0.66.3
- v0.66.2
- v0.66.1
- v0.66.0
- v0.65.0
- v0.64.0
- v0.63.1
- v0.63.0
- v0.62.0
- v0.61.1
- v0.61.0
- v0.60.0
- v0.59.6
- v0.59.5
- v0.59.4
- v0.59.3
- v0.59.2
- v0.59.1
- v0.59.0
- v0.58.2
- v0.58.1
- v0.58.0
- v0.57.5
- v0.57.4
- v0.57.3
- v0.57.2
- v0.57.1
- v0.57.0
- v0.56.1
- v0.56.0
- v0.55.0
- v0.54.4
- v0.54.3
- v0.54.2
- v0.54.1
- v0.54.0
- v0.53.0
- v0.52.5
- v0.52.4
- v0.52.3
- v0.52.2
- v0.52.1
- v0.52.0
- v0.51.1
- v0.51.0
- v0.50.1
- v0.50.0
- v0.49.0
- v0.48.0
- v0.47.1
- v0.47.0
- v0.46.0
- v0.45.0
- v0.44.0
- v0.43.0
- v0.42.0
- v0.41.6
- v0.41.5
- v0.41.4
- v0.41.3
- v0.41.2
- v0.41.1
- v0.41.0
- v0.40.0
- v0.39.12
- v0.39.11
- v0.39.10
- v0.39.9-alpha.3
- v0.39.9-alpha.2
- v0.39.9-alpha.1
- v0.39.9
- v0.39.8
- v0.39.7
- v0.39.6
- v0.39.5
- v0.39.4
- v0.39.3
- v0.39.2
- v0.39.1
- v0.39.0
- v0.38.0
- v0.37.0
- v0.36.2
- v0.36.1
- v0.36.0
- v0.35.6
- v0.35.5
- v0.35.4
- v0.35.3
- v0.35.2
- v0.35.1
- v0.35.0
- v0.34.5
- v0.34.4
- v0.34.3
- v0.34.2
- v0.34.1
- v0.34.0
- v0.33.2
- v0.33.1
- v0.33.0
- v0.32.2-alpha.12
- v0.32.2-alpha.11
- v0.32.2-alpha.10
- v0.32.2-alpha.9
- v0.32.2-alpha.8
- v0.32.2-alpha.7
- v0.32.2-alpha.6
- v0.32.2-alpha.5
- v0.32.2-alpha.4
- v0.32.2-alpha.3
- v0.32.2-alpha.2
- v0.32.2-alpha.1
- v0.32.2
- v0.32.1
- v0.32.0
- v0.31.0
- v0.30.1
- v0.30.0
- v0.29.0
- v0.28.5
- v0.28.4
- v0.28.3
- v0.28.2
- v0.28.1
- v0.28.0
- v0.27.2
- v0.27.1
- v0.27.0
- v0.26.5
- v0.26.4
- v0.26.3
- v0.26.2
- v0.26.1
- v0.26.0
- v0.25.0
- v0.24.6
- v0.24.5
- v0.24.4
- v0.24.3
- v0.24.2
- v0.24.1
- v0.24.0
- v0.23.1
- v0.23.0
- v0.22.1
- v0.22.0
- v0.21.2
- v0.21.1
- v0.21.0
- v0.20.2
- v0.20.1
- v0.20.0
- v0.19.6
- v0.19.5
- v0.19.4
- v0.19.3
- v0.19.2
- v0.19.1
- v0.19.0
- v0.18.1
- v0.18.0
- v0.17.6
- v0.17.5
- v0.17.4
- v0.17.3
- v0.17.2
- v0.17.1
- v0.17.0
- v0.16.4
- v0.16.3
- v0.16.2
- v0.16.1
- v0.16.0
- v0.15.3
- v0.15.2
- v0.15.1
- v0.15.0
- v0.14.0
- v0.13.7
- v0.13.6
- v0.13.5
- v0.13.4
- v0.13.3
- v0.13.2
- v0.13.1
- v0.13.0
- v0.12.2
- v0.12.1
- v0.12.0
- v0.11.3
- v0.11.2
- v0.11.1
- v0.11.0
- v0.10.0
- v0.9.1
- v0.9.0
- v0.8.1
- v0.8.0
- v0.7.9
- v0.7.8
- v0.7.7
- v0.7.6
- v0.7.5
- v0.7.4
- v0.7.3
- v0.7.2
- v0.7.1
- v0.7.0
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.1
- v0.5.0
- v0.4.8
- v0.4.7
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.1
- v0.3.0
- v0.2.0
- v0.1.0
Gustwind is an experimental site generator built on top of JSON definitions using Deno. The goal of the design is to allow component oriented development of large scale sites. Conceptually itβs split as follows:
- Development mode lets you preview the site and modify page definitions to commit later
- Production mode generates pure static HTML with CSS inlined to the files
- Components defined with a JSON based component abstraction included allow you to extract shared markup and bind data to it
- Data sources define how your data is fetched. At page level, it can then be connected and bound to components.
- Transforms let you alter data to fit the current need. You can use them for example convert Markdown input to HTML or reverse the order of an array to generate a blog index in a specific order.
- Route definition binds it all together.
Please see the documentation to learn more about the concepts.
Usage
The easiest way to consume the project is to use the CLI:
deno install -A --unstable --no-check -f https://deno.land/x/gustwind/cli.ts
The APIs are also available as modules if you need more control.
Itβs a good idea to use a recent version of Deno and I recommend using 1.16.0 or newer.
Data flow
Gustwind accepts TypeScript, Markdown, JSON definitions including Twind (Tailwind) classes and emits HTML and JavaScript.
Itβs possible to customize the input formats and it can load data from asynchronous sources, say GraphQL APIs, so it can be used with headless content APIs.
Example sites
Given Gustwind is still in a rapid development phase, the APIs change every once in a while. The source of this site is the most up to date resource and Iβve listed other examples below:
Earlier related work
- Tailspin was an experimental site generator built with partially the same technology. In this project, the ideas have been largely re-implemented and taken further. In some ways Tailspin went further, though, as it implemented component level introspection (types) and editors while allowing JSX syntax.
- Antwar was a React based static site generator. The experiences with Antwar over years have been put to good use in this project.
Development
Use deno task
to see available tasks and to run them.
To test the cli locally, use deno install --no-check -A -f --unstable -n gustwind ./cli.ts
. A symlink would likely work as well.
Publishing to deno.land
Publishing to deno.land goes through the publish utility.
Publishing to npm
deno task build:gustwind-for-npm <VERSION>
whereVERSION
is0.1.0
for examplecd gustwind/npm
npm publish
. You may need to pass--otp
here as well (preferred for security)