Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shunter

Package Overview
Dependencies
Maintainers
8
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shunter

A Node.js application built to read JSON and translate it into HTML

  • 4.13.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
8
Created
Source

Shunter

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:

  1. 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.
  2. If the back end wishes to serve the response, it omits the header and Shunter proxies the request back to the client.

NPM version Node.js version support Build status LGPL-3.0 licensed

Key Features

  • 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

Getting Started

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.

Requirements

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:

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.

Contributing

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.

License

Shunter is licensed under the Lesser General Public License (LGPL-3.0).
Copyright © 2015, Springer Nature

Keywords

FAQs

Package last updated on 06 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc