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

xmenio

v0.0.15

Published

XMEN Framework - Any Frontend, MongoDB, Express, Node

Readme

XMEN Framework

XMEN = Any-Frontend Mongo Express NodeJS

Website: xmen.io

Installation

XMEN requires MongoDB and NodeJS to be installed.

npm install xmenio

Project Configuration

You must define a project configuration file that is set up for XMEN. A default config file looks like this:

// config.js

var path = require('path'),
    rootPath = path.normalize(__dirname);

module.exports = {
    'development': {
        'DB': 'mongodb://localhost/xmen',       //MongoDB connection
        'PORT': 8000,                           //Port to run XMEN on
        'SECRET': 'xmen',                       //Provide a project secret
        'APP_ROOT': rootPath + '/app',          //Define a custom app path
        'STATIC_ROOT': rootPath + '/public',    //Define a custom static file path
        'PUBLIC_URL': 'http://localhost:8000',  //Public URL
        'INSTALLED_APPS': [                     //Apps to be registered
            'custom_app'
        ]
    }
};

These are the project settings that are available to any installed app. Extend this configuration to provide custom project values.

Start The App

XMEN needs to be bootstrapped and there is a simple way to start the server.

// app.js

var XMEN = require('xmenio'),
    config = require('./config.js');

XMEN.assemble(config); //This initializes the XMEN app

Simply run node app.js to get the server up and running.

Project Structure

XMEN is comprised of smaller individually accessible apps and app must be installed for it to be used.

Apps must be registered in INSTALLED_APPS. App names are based on the directory name.

Example project structure of using the config.js above:

project-name/
    app/
        custom_app/
            index.js
    config/
        config.js
    node_modules/
    app.js
    package.json

Models

Registering models within XMEN works by setting up a Mongoose Schema. These models are automatically loaded.

// custom_app/index.js
module.exports = {
    models: require('./models')
};

Routes

XMEN apps can provide custom routes that are structured specifically for each app. These routes are automatically loaded.

A routes module is passed the app, passport, and auth middleware.

// custom_app/index.js
module.exports = {
    routes: require('./routes')
};

Templates

XMEN templates are rendered from a registered app's templates/ directory.

Issues and Questions

Join in the conversation in Github Issues