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

@themost/rib

v1.4.0

Published

@themost-framework template for creating a library

Readme

@themost/rib

MOST Web Framework database-to-api tools and services

Usage

npx @themost/rib --config ./config.json --output ./output

This command will read the configuration from config.json and generate the basic structure of a @themost-framework API server in the output directory.

     + config
        + models
           <Schema files>
     app.json

The config/models will contain the schema files that define the structure of your database. The app.json file will contain the configuration for the API server.

Configuration

The configuration file should be a JSON object with the following properties:

  • parsers: An array of parsers to use for converting database schema names to API names. Each parser should be a string that specifies the parser to use.
  • rootNamespace: A string that specifies the root namespace for the API.
  • exclude: An array of strings that specifies the names of tables to exclude from the API.
  • adapterTypes: An array of objects that specifies the types of database adapters to use. Each object should have an invariantName and a type property.
  • adapters: An array of objects that specifies the database adapters to use. Each object should have a name, invariantName, and options property. The options property should be an object that contains the connection options for the database adapter.

Example Configuration

{
    "parsers": [
        "@themost/rib#SnakeCaseNameConverter",
        "@themost/rib#SingularNameConverter",
        "@themost/rib#StartCaseNameConverter",
        "@themost/rib#UnderscoreIdConverter"
    ],
    "rootNamespace": "https://themost.io/schemas",
    "exclude": [
        "migrations"
    ],
    "adapterTypes": [
        {
            "invariantName": "mysql",
            "type": "@themost/mysql"
        }
    ],
    "adapters": [
        {
            "name": "source",
            "invariantName": "mysql",
            "default": true,
            "options": {
                "host": "localhost",
                "port": 3306,
                "user": "root",
                "password": "secret",
                "database": "sakila"
            }
        }
    ]
}

The previous example configuration will generate an API server that connects to a MySQL database named sakila using the root user with the password secret. The API server will use the SnakeCaseNameConverter, SingularNameConverter, StartCaseNameConverter, and UnderscoreIdConverter parsers to convert database schema names to API names. The migrations table will be excluded from the API.

  • SnakeCaseNameConverter: Converts snake_case database table names to readable names e.g. customer_address to CustomerAddress.

  • SingularNameConverter: Converts plural database table names to singular names e.g. customers to Customer.

  • StartCaseNameConverter: Converts database table names to start case e.g. customer to Customer.

  • UnderscoreIdConverter: Uses underscore identifiers for creating associations between entities

  • IdConverter: Searches for attributes that follow the pattern *Id and defines associations between entities.