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 🙏

© 2026 – Pkg Stats / Ryan Hefner

odataserver

v0.3.0

Published

OData server with support for BLOBs

Downloads

41

Readme

Gizur's OData server for MySQL

NOTE: This repo isn't actively maintained anymore. Have a look at Odataserver2 which is an enhanced implementation.

Build Status

OData is a protocol that supports JSON. This makes it extremely usefull when developing web and mobile apps. The Gizur OData Server will serve as your mobile backend (you won't need any Mobile Backend as a Service, MBaaS). The server can be used together with any MySQL database.

This is a simple example of how it is used:

# Create an account
curl -d '{"email":"[email protected]"}' http://appdev.gizur.com:9000/create_account

# Reset password. A mail is sent with reset instructions. The password is sent
# in the API response to simplify development. This is turned off in production.
curl -d '{"accountId":"0b213a639078","email":"[email protected]"}' http://appdev.gizur.com:9000/0b213a639078/s/reset_password

# create a new table
curl -H "user: 0b213a639078" -H "password: xxx" -d '{"tableDef":{"tableName":"mytable","columns":["col1 int","col2 varchar(255)"]}}' http://appdev.gizur.com:9000/0b213a639078/s/create_table

# insert some data
curl -H "user: 0b213a639078" -H "password: xxx" -d '{"col1":11,"col2":"11"}' http://appdev.gizur.com:9000/0b213a639078/mytable

# get the data just inserted
curl -H "user: 0b213a639078" -H "password: xxx"  http://appdev.gizur.com:9000/0b213a639078/mytable

This example is using our development server. It is open, feel free to test around (we give no guarantees regarding up-time and the database is reset from time to time). There is also suport for pictures, text files etc. using BLOB:s. These are stored in a LevelDB database on the server. Run curl http://appdev.gizur.com:9000/help to show the help.

Express

OData Server is compatible with express. Install odataserver and express (npm install odataserver express) and use it like this:

var express = require('express');
var config = {
  ODATA: {
    HOST: 'localhost',
    PORT: 9000
  },
  RDBMS: {
    ADMIN_USER: 'root',
    ADMIN_PASSWORD: 'secret'
  }
};
var odataserver = require('odataserver');

var server = new odataserver(config);

var app = express();
server.init(app);

app.listen(config.ODATA.PORT, function() {
  console.log('OData Server listening at http://%s:%s',
              config.ODATA.HOST, config.ODATA.PORT);
});

Run curl http://localhost:9000/help in a new terminal to verify that the server is running.

Installation

  1. Make sure that MySQL is up and running and that you have the credentials for the admin account (or an account that have privileges to create new databases and users).

  2. Clone this repo and do npm install.

  3. Copy setenv.template to setenv and update it with the database and mail server credentials. Environment variables are used to set admin credentials for the database and the mail server.

  4. Make sure port 9000 is free and then run: npm start.

  5. Check that the server is alive with: curl http://localhost:9000/help.

More information

Information regarding advanced usage and contributing.

Release history

Major and minor releases are listed here. Patches are not listed, please see Github for more information.

  • 0.1 - Initial release
  • 0.2 - Added support for expressjs