What is zilk?

zilk is a light & flexible web framework


Zilk is a web framework: a runtime zilk and a build tool zilker.

Unlike most web frameworks, everything is written in pure javascript.

No extra template engines or DSLs. No Typescript slop.

It takes advantage of tagged template literals for writing html, svg, and css. All credit goes to @WebReflection for his ultra-lightweight and performant library, uhtml.

Minimal Runtime

The exports of zilk provide the 'basics' for building websites. The core is isomorphic, allowing for server-side and client-side rendering to use the same code.

  • zilk: render html, css, svg
  • zilk/hydrate: attach event handlers to UI components
  • zilk/router: client-side routing
  • zilk/fetch: serve html pages from a server or a worker

Flexible Build Tool

zilker is a build tool anchored to input files and output files. Every project needs to generate different files based on unique inputs. By default, zilker includes builds for UI components, html pages, and static assets, but the real power comes from extending and writing custom Inputs.

  • zilker: CLI to build output files from input files
  • zilker/core: JS API for custom build scripts
  • zilker/inputs: Entrypoint for built-in builds (Page,View,Asset)