npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nodester

v0.6.4

Published

A versatile REST framework for Node.js

Downloads

306

Readme

nodester

NPM version License

nodester is a Node.js framework designed to solve the problem of a complex data querying over HTTP.

The main reason of nodester's existence is the nodester Query Language (NQL) →, an extension of standard REST API syntax, it lets you craft complex queries with hierarchical associations.

Building an application which allows users to build their own REST queries raises huge security concerns. That's why nodester was not developped as a middleware. It's a framework equipped with a set of technologies enabling you to fully customize the request-response flow down to the specific user and a database column. Check out core concepts documentation → for more info.

Installation

Install with NPM

npm install -S nodester

Table of Contents

Usage

const nodester = require('nodester');
const db = require('#db');

const app = new nodester();
app.set.database(db);

// Optional beforeStart hook:
app.beforeStart(async () => {
  // Do any asynchronous initializations
  // before app.listen
  // ...
});

// Start the http server:
app.listen(8080, function() {
  console.log('listening on port', app.port);
});

// Gracefully shut down:
process.once('SIGTERM', () => {
  app.stop(() => {
    const pid = process.pid;
    console.info('Process', pid, 'terminated\n');
    process.exit(0);
  });
});

Documentation

Core concepts

Core concepts documentation →

Queries & querying - nodester Query Language (NQL)

The true strength of nodester lies in its query language. Serving as an extension of standard REST API syntax, it brings many aspects of SQL into REST requests, providing developers with a simple yet powerful tool for expressive and efficient data querying.

Read more about it in the documentation: NQL documentaion →

Database

Nodester is built upon a powerful Sequelize. Supported drivers:

  • MySQL
  • PostgreSQL

How to setup a database →

Application

Application documentation →

Comments

We (contributors) use JSDoc to describe the actual code.

Philosophy

The Philosophy of nodester is to provide a developer with a tool that can build an app (or feature) in hours and scale it with ease for years.

Goal

The goal of nodester is to be a robust and flexible framework that makes development in iteratations easy, while laying the foundation for seamless scalability in the future.

License

MIT

Copyright

Copyright 2021-present Mark Khramko