• Stars
    star
    143
  • Rank 248,968 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Just-in-time development server and static site generator.

Rosid

Travis Build Status Coverage Status Dependencies Donate via PayPal Greenkeeper badge

Just-in-time server and static site generator written in Node.js. Rosid transforms your files on-the-fly before serving them to the browser.

Terminal and browser

Contents

Get started

Rosid can be integrated into your project in two ways: Using the CLI or using the API of Rosid. Check out our guide for more information. Get started with Rosid Β»

Introduction

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 built on popular modules like Browsersync
  • 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. An 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 sent to the browser.

Links

Boilerplates powered by Rosid:

  • πŸ“ Skeleton EJS: EJS, JS (with Babel, UglifyJS) and SASS (with cssnano, Autoprefixer)
  • πŸ“ Skeleton NJK: Nunjucks, JS (with Babel, UglifyJS) and SASS (with cssnano, Autoprefixer)
  • πŸ“ Skeleton Components: UI for components written in Nunjucks, JS (with Babel, UglifyJS) and SASS (with cssnano, Autoprefixer)

Handlers build for Rosid:

Sites powered by Rosid:

Guides for Rosid:

Documentation

Requirements

Rosid depends on...

Make sure to install and update all dependencies before you setup Rosid.

Routes

Routes tell Rosid how to transform your code. They specify which handler should be executed when a defined pattern matches. Routes Β»

Handlers

Handlers are functions which load and transform files. You can write them on your own or use existing handlers from npm. Handlers Β»

API

Rosid can be integrated into your project using its API or CLI. The API gives you more flexibility and allows you to use Rosid in your existing asset pipeline or toolset. API Β»

CLI

The CLI of Rosid is located in the bin folder and allows you to run the serve and compile functions without adding JS files to your project. This approach is simpler than using the API, but provides less flexibility. CLI Β»

Options

If you want more control over Rosid, pass an object of options to it. Options Β»

Tips

  • Install Rosid without optional dependencies using npm's --no-optional flag. This speeds up the installation and skips a lot of dependencies. It's perfect when used in production. The downside: Running the serve function isn't possible anymore.

More Repositories

1

Lychee

A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.
PHP
6,312
star
2

Ackee

Self-hosted, Node.js based analytics tool for those who care about privacy.
JavaScript
4,121
star
3

basicScroll

Standalone parallax scrolling for mobile and desktop with CSS variables.
JavaScript
3,633
star
4

formbase

Better default styles for common input elements.
SCSS
567
star
5

basicLightbox

The lightest lightbox ever made.
JavaScript
532
star
6

basicModal

Easy-to-use dialog system for modern web-apps.
JavaScript
283
star
7

ackee-tracker

Transfer data to Ackee.
JavaScript
190
star
8

basicContext

Easy-to-use context-menu for your website or webapp.
JavaScript
168
star
9

nice-try

Tries to execute a function and discards any error that occurs.
JavaScript
66
star
10

basicGrid

A Foundation-like grid system based on the flex display property.
SCSS
56
star
11

basicSlider

A slider in its purest form.
JavaScript
33
star
12

scrollSnap

Section-based scrolling for your site.
JavaScript
27
star
13

fsify

Convert an array of objects into a persistent or temporary directory structure.
JavaScript
26
star
14

Skeleton-Components

A front-end Malvid template build upon Rosid.
CSS
24
star
15

use-ackee

Use Ackee in React.
JavaScript
23
star
16

basicRotate

Rotate throw a set of 360 degree images using your mouse or finger.
JavaScript
20
star
17

ackee-bitbar

Ackee stats in your macOS menu bar.
JavaScript
16
star
18

ackee-lighthouse

Send Lighthouse reports to Ackee.
JavaScript
13
star
19

Skeleton-EJS

A front-end template build upon Rosid.
CSS
13
star
20

basicPlaceholder

Easy-to-use persistent placeholders for input fields.
JavaScript
10
star
21

basicNotification

Easy-to-use notification-system for your website or webapp.
CoffeeScript
9
star
22

basicPaginate

Paginate a NodeList like there's no tomorrow.
JavaScript
9
star
23

limit-number

Limit a number between a min and max value.
JavaScript
7
star
24

zbarimg

Scan photos using ZBar in Node.js.
CoffeeScript
6
star
25

dribbble-2x

Safari extension for Dribbble, which always shows the @2x version.
JavaScript
6
star
26

rosid-handler-sass

Load SCSS and transform to CSS, add vendor prefixes and minify.
JavaScript
6
star
27

basicTasks

A collection of gulp-tasks used in personal projects.
JavaScript
5
star
28

rosid-handler-twig

Load Twig templates and render them.
JavaScript
5
star
29

Feedboard

Design your feed.
JavaScript
5
star
30

Skeleton-NJK

A front-end template build upon Rosid.
CSS
5
star
31

key-value-replace

Replace key/value pairs in a string.
JavaScript
5
star
32

rosid-handler-ejs

Load EJS templates and render them.
JavaScript
5
star
33

lychee-watermark

Adds a second watermarked photo when uploading images to Lychee.
PHP
5
star
34

require-data

Extracts data out of multiple file types.
JavaScript
5
star
35

lychee-redirect

Redirect from an album-name to a Lychee-album.
PHP
5
star
36

rename-extension

Changes the the extension of a given filename or path.
JavaScript
5
star
37

rosid-handler-njk

Load Nunjucks templates and render them.
JavaScript
4
star
38

rosid-handler-js

Load, transform, bundle and compress JS.
JavaScript
4
star
39

basicFit

Turn elements on your site into a responsive unified grid.
CoffeeScript
4
star
40

rosid-handler-node

Load JS and transform to HTML.
JavaScript
3
star
41

count-between

Counts up and down between two numbers.
JavaScript
3
star
42

ausgabe

Tiny logger with zero defaults.
JavaScript
3
star
43

modulizer

Wrap this snippets around your code to support CommonJS, AMD and non-module-definitions.
JavaScript
3
star
44

eslint-config

ESLint configuration for my personal projects.
JavaScript
2
star
45

pdfconcat

Concat multiple pdfs using pdfunite in Node.js.
CoffeeScript
2
star
46

continuous-stealthy-require

Requires a fresh, uncached module without causing a memory leak.
JavaScript
2
star
47

ackee-faker

Fills Ackee with fake data.
JavaScript
2
star
48

Ackee-Netlify-Test-Instance

JavaScript
1
star
49

rosid-handler-js-next

Load, transform, bundle and compress modern JS.
JavaScript
1
star
50

Skeleton-React

A front-end template build upon Rosid.
JavaScript
1
star
51

vh-variable

TypeScript
1
star