AbsurdJS is a JavaScript-based preprocessor for generating CSS and HTML without introducing a separate template or styling language. It started as a CSS preprocessor and later expanded into HTML generation. The project lets developers write transformations in plain JavaScript, JSON, or YAML, depending on the target output. It can compile JavaScript, JSON, YAML, and CSS into CSS, as well as JavaScript, JSON, and YAML into HTML. AbsurdJS can run on the server side through npm or on the client side through a browser script. It is useful for developers interested in code-driven styling, preprocessor experimentation, and older JavaScript-first approaches to componentized web output.

Features

  • JavaScript-based preprocessing
  • CSS output generation
  • HTML output generation
  • JavaScript, JSON, and YAML input support
  • Server-side npm usage
  • Client-side browser usage

Project Samples

Project Activity

See All Activity >