ARFR vs Rosid

ARFR and Rosid are both open source static site generators written in JavaScript, but that's where the similarities end. See the full comparison of ARFR and Rosid.

Property ARFR Rosid
Language JavaScript JavaScript
Templates Handlebars Any JS
License Apache-2.0 MIT

ARFR benefits

ARFR

ARFR let you develop static web sites faster.

Features

  • Watch and Compiles a folder tree recursively preserving the structure using handlebars.
  • Handlebars support
  • ftp deploy
  • live preview sync (firebase)

How it works

  • Compiles in memory handlebars partials files from partials folder. (Use the partial with name of the file without ext. Ex: partials/myproject1/sections/prj1-head.html becomes {{> prj1-head}} )

  • Copy (compiles) handlebars files from templates folder. (preserves the folder structure). Ex: If you have templates/index.html and templates/aboutus/index.html (both using handlebars syntax), the output will be the same, it only compiles the content.

  • Handlebars compilation errors do not break the node proccess.

  • Copies css from css folder to the output folder slash css. (preserves structure)

  • Custom json or js handlebars data load for using as context.

  • Every time a watch (on scripts, styles and templates) emits a build success event, a signal is sent to a firebase database. If your has the firebase reloading snippet (a handlebars partial), your browser will reload automatically.

Rosid benefits

Just-in-time development server and static site exporter written in Node.js. Rosid invokes functions before serving files to the browser. This allows you to pre-process anything on-the-fly, without saving it.

What is Rosid?

Rosid is a framework that focus on two features:

  1. A development server with live-reloading, which transforms files as soon as you request them.
  2. A static site generator, which transforms files using defined transform-functions.

Why Rosid?

  • It doesn't force you to use a defined directory structure
  • It's build on popular modules like Browsersync
  • It integrates nicely with tools you are are already using to transform your files (e.g. Gulp, Grunt or Vanilla JS)
  • It's lightweight and only includes what it really needs
  • Transformed files don't need to be saved along their source files
  • It lets you compile code to static files to host them anywhere

How does it work?

Rosid starts a server and compares requested URLs with user-defined patterns. A associated file handler will be executed when a pattern matches. The handler receives information about the request and can transform the file, which will be send to the browser.