Shunter is a Node.js application built to read JSON and translate it into HTML.
It helps you create a loosely-coupled front end which can serve traffic from one or more back end applications - great for use in multi-language, multi-disciplinary teams or just to make your project more flexible and future-proofed.
Shunter does not contain an API client, or any Controller logic (in the MVC sense). Instead, Shunter simply proxies requests to a back end server, then:
- If the back end wants Shunter to render the response, it returns the application state as JSON, served with a certain HTTP header. This initiates the templating process in Shunter.
- If the back end wishes to serve the response, it omits the header and Shunter proxies the request back to the client.
- Enforces decoupling of templates from underlying applications
- Enables multiple applications to use the same unified front end
- Makes full site redesigns or swapping out back end applications a doddle
- Completely technology-agnostic; if your application outputs JSON, it can work with Shunter
- Asset concatenation, minification, cache-busting, and other performance optimisations built-in
- Outputs any type of content you like, e.g. HTML, RSS, RDF
- Well-tested and supported, serving Scientific American as well as many high-traffic sites across nature.com
If you're new to Shunter, we recommend reading the Getting Started Guide. This will teach you the basics, and how to create your first Shunter-based application.
Once you're familiar with Shunter's basics you can refer to the API Documentation for a full breakdown about how to work with Shunter.
Shunter requires Node.js 4.x–6.x. This should be easy to get running on Mac and Linux.
One of Shunter's dependencies is a native addon module so it requires a working C compiler. Windows doesn't come with one by default so you may find the following links helpful:
- node-gyp on Windows
- node-gyp Visual Studio 2010 Setup
- contextify – Specified platform toolset (v110) is not installed or invalid
See the Getting started documentation for more information on Shunter's requirements.
Support and Migration
The last major version of Shunter is version 4. Old major versions are supported for 6 months after a new major version is released. This means that patch-level changes will be added and bugs will be fixed. We maintain a support guide which documents the major versions and their support levels.
If you'd like to know more about how we support our open source projects, including the full release process, check out our support practices document.
If you're migrating between major versions of Shunter, we maintain a migration guide to help you.
We'd love for you to contribute to Shunter. We maintain a developer guide to help people get started with working on Shunter itself. It outlines the structure of the application and some of the development practices we uphold.
We also label issues that might be a good starting-point for new developers to the project.
Shunter is licensed under the Lesser General Public License (LGPL-3.0).
Copyright © 2015, Springer Nature