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 🙏

© 2025 – Pkg Stats / Ryan Hefner

montpesites

v1.2.1

Published

Self-hosted platform to build, test and deploy static web sites.

Readme

Montpesites

Decentralized self-hosted platform to build, test and deploy static web sites.

How it works

Each platform instance provides an interface to build, test and deploy a website.

A development version of the website being build will be available in each instance under a subdomain. Once the website is ready for production, the user needs to connect his gitlab account to push the changes to a repository. The production vesion of the website will be deployed using gitlab pages, a different free hosting service, or a custom ftp set by the user.

Build with

  • Caddy Reverse Proxy
  • Cloudflare DNS
  • Gitlab pages
  • NodeJS
  • MongoDB
  • Docker
  • Nodemon
  • Love

Roadmap

  • 09-2019: Sketches
  • 10-2019: Initial release
  • 01-2020: Crowfounding campaign (Canceled)

Node Version

  • 10.8.1

Documentation

This guidelines should allow you to use this tool without the GUI (If the GUI is is still WIP or is bugged)

Website development

yarn add -g montpesites
ms init

Pages

  • Stored under src/pages
  • The name of the folder is the default public pathname
  • Example: awesome-article
  • Each folder has two files: a content file and a config file
  • Content file default extension is html
  • Example of content file: index.html
  • Example of config file: index.js
module.exports = async app => {
    return {
        //indicates a layout
        //src/layouts/app.html
        layout: 'app',
        //changes the public path
        target: '/'
    }
}

Content file format

Is also possible to write a content file in markdown, just change the extension of the file inside the page folder.

src/awesome-article/index.md

Partials

  • Stored under src/layouts
  • Named with underscore first
  • Example: _header.html

Template engines

  • BUILT-IN Engine: Partials are part of the built-in template engine. Layouts and partials are used as follow.

    <!-- layout file -->
    <body>
        <header>
            %_header%
        </header>
        %page_content%
        <footer>
            %_footer%
        </footer>
    <body>

    Note: %page_content% is the only special block and it renders the page content file.

  • PUG: Add 'USE_PUG' at the beginnig of the content file of the page

    <!-- USE_PUG -->
  • HANDLEBARS: Same as PUG

    <!-- USE_HANDLEBARS -->

Sitemap generation

The client can generate a sitemap file (localhost only) after build completes. Generator crawler with hit localhost at the targeted port (default 3000).

Add the plugin as follow:

//ms.config.js
{
    plugins:{
        generateSitemap: {
            domain:'mydomain.com'
        }
    }
}

Start the server

ms
//sitemap.xml should be generated after static generation.

Platform development

The entire project has the follow structure:

- src/pages
- src/layouts
- src/js/api
- src/js/components
- src/js/containers
- src/js/mixins
- src/js/store
- src/js/styles
- src/index
- src/server
- src/server/plugins
- server.js
- ms.config.js

Note: The GUI web app is an client side app rendered using the project itself. That's why there is a ms.config.js in the root directory.

How to run

For development

yarn dev

For production

yarn start

Plugins

The plugins section in ms.config.js can be populated with plugins. Plugins are stored in /src/server/plugins

If you are interested in developing a plugin please create a separate repo and send a pull request.

List of plugins

  • cleanDistFolders
  • copyFolderContent
  • generateSitemap
  • webpackBundling

Issues

Please feel free to add issues.

Contributors

We are eager to find contributors for this project. If you want to help please email us.

Donate

This tools is being developed for free by misitioba.com. Any contribution is more than welcome.

MisitioBA on Liberapay