Skip to content

A peculiar little website that uses Eleventy + Netlify + Puppeteer to create generative poster designs

Notifications You must be signed in to change notification settings

georgedoescode/garden-jamstack-posters

Repository files navigation

Garden — Generative Jamstack Posters

"Garden" is an experiment in building creative, joyful online experiences using core web technologies.

🧱 Building blocks

  • Eleventy: a static site generator that generates the site itself and the generative .svg poster files.
  • Netlify: hosts the "Garden" website and runs the build process for each deployment.
  • Puppeteer: a Node library that can control Headless Chrome — used to create open graph images by capturing screenshots of poster pages at build time.
  • esbuild: an extremely fast bundler that concatenates and minifies the project's CSS.
  • CUBE CSS: a CSS methodology orientated towards simplicity, pragmatism and consistency — used to guide the project's CSS structure.
  • SVG.js: a lightweight JS library that enables terse SVG scripting — used to help generate the poster designs.
  • IFTTT: a no code automation platform used with Netlify build hooks to automate daily deployments.

⚡️ Local installation

Want to explore and run this project on your own machine? Here's how!

Getting started

First, clone the repository:

git clone git@github.com:georgedoescode/garden-jamstack-posters.git

Then, navigate inside the repository and install the project's dependencies:

cd garden-jamstack-posters && npm install

Development mode

To spin up a local development environment, run: npm run watch

This will start Eleventy in watch mode and spin up a local web server at http://localhost:8081.

Note: to speed up local builds by only generating recent posters you can set a POSTER_COUNT environment variable like so:

POSTER_COUNT=8 npm run watch

Production mode

To create a production build of the site, run:

npm run build

This will build the site to dist/ (just like development mode) and spin up a Puppeteer instance to generate the open graph images for each poster.

💡 Got an idea? Notice an issue?

I'd love to hear from you! You can always log an issue on this repo's Github issues page or send me a message on Twitter.

About

A peculiar little website that uses Eleventy + Netlify + Puppeteer to create generative poster designs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published