Skip to content
Glad JS edited this page Oct 14, 2017 · 6 revisions

What Is Glad.js?

Glad makes it a snap to build awesome Node JS APIs. It is designed to enable you to compose lightning fast back end applications in a fraction of the time, with dramatically less effort. Glad is great for teams because it enforces just enough conventions to keep your code well organized and easy to learn without sacrificing flexibility. Whether you are building a blogging platform, a banking application, or a multiplayer real-time gaming platform, Glad is an excellent choice.

  • Main features.

    • REST-MC or MVC Workflow
    • Endpoint access policies
    • Class based controllers
    • Intuitive routing with route based body parsing and policies
    • Socket.io integration & Websocket routing with route based policies available
    • Built in session management
    • LRU/LFU controller action caching
    • General caching
    • Sane project directory structure
    • Works with any database
    • High test coverage
    • Leverages the Express ecosystem so you can too.
    • REST endpoint generation with Glad CLI
    • Utilities such as tokenization, number conversions, object tools, array tools, date tools and other various utilities.
    • Console Access to the server process with Glad CLI
  • Composition

    Glad is a Node JS framework that leverages the power and reliability of the open source community. Glad is built on top of Express. Glad uses Redis for caching and Socket.io for setting up websockets.


  • Your favorite databases

    Glad will work with any database you want to work with. If you are using glad-cli, then supported blueprints include MongoDB with Mongoose ODM, or any database supported by Waterline.js (Sails). There is also an option for no ODM/ORM which generates your routes and controllers, and sets up a model file with no assumptions. (Roll You Own).

    MongoDB Postgresql ElasticSearch Mysql OrientDB Neo4j

Authorization made simple

Authorization rules are baked right into the framework. With Glad's router implementation you decide who is allowed access to any endpoint directly on the router level. This turns out to be a great improvement for both security reasons, and developer ergonomics. On the route, you simply give it the name of the policy you want to apply, and Glad will worry about the rest. Defining a policy is very simple. For more info on policies check out the section on policies.

Easy to learn

Glad was designed with both performance and developer happiness in mind. A lot of effort was put in to making things as intuitive as possible while remaining nimble, quick, and stable. You can get an API up and running in a matter of minutes using Glad CLI. Let us take a quick look at how much work is involved in doing this.

mkdir ~/my-cool-api
cd ~/my-cool-api
glad init
glad api widget

At this point you have a REST API for the widgets resource. You can already GET/POST/PUT/DELETE to the respective widgets endpoints. All that is left is the things that you actually care about, like defining the model and doing whatever it is that makes your API so special.

Clone this wiki locally