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

microplatform

v0.10.6

Published

Dev server + Static Site Generator + CDN Publishing

Downloads

1,633

Readme

microplatform (working title)

on-demand static publishing platform.

Introduction

Extending microplatform is a great way to get your own web publishing platform. It lets you customized the boilerplate projects and dev server while giving you seamless deployment to the the Surge CDN. microplatform provides you with your own CLI that published to your domain, and sends event notifications to a webhook of your choice and/or a slack channel. When using microplatform anyone in the public will be able to publish to an unclaimed subdomain on your platform domian just as they currently can do with surge.sh.


Why?

  1. Focus - Web publishing is far too broad of a topic for just one tool. The best dev server, tools, and starter project, is very much dependant on the task at hand. microplatform makes it really easy to develop focused tools with mature starting projects so no

  2. Consistency - The CLI is written for you which means every microplatform CLI behaves the exact same way. Imagine experimenting with someones React project and initializing a new project, starting the dev server and deploying to the web all take the exact same muscle memory regardless of starter project, library, and dev server it uses under the hood.

  3. Creativity - Experimenting with new libraries or development setups is now fast and easy. microplatform brings the fun back to experimentation.


Getting Started

The best way to understand microplatform is to see it in action. To start create a project with microplatform as the only dependency. Next all we need to do is have the following executable. For our demo we will save this file as superfun and change it to an executable via chmod +x superfun.

#!/usr/local/env node

require("microplatform")({
  name: "Super Fun Example",
  cmd: "superfun"
}).exec()

After saving the file as superfun and making it executable via chmod +x superfun we can then execute the program to get our very own front-end development CLI. Lets begin by running superfun help

superfun platoform - powered by surge.sh
Dev server & web publishing to https://surge.sh

Usage:
  superfun <source>             Starts dev server on <source> directory
  superfun <source> <domain>    Publishes <source> directory to the web at <domain>
  superfun <source> <output>    Compiles <source> into <output>

Global Commands:
  superfun list                 List all projects
  superfun whoami               Show authenticated user
  superfun login                Authenticate and begin session
  superfun logout               Terminate session
  superfun help                 This help message

Project Commands:
  superfun encrypt <domain>     Requests <domain> verified SSL cert
  superfun teardown <domain>    Removes <domain> from the web

Examples:
  superfun .                    Serves current dir on port 9966
  superfun . example.com        Publishes current dir to 'example.com'
  superfun . www                Compiles current dir to 'www' directory

please visit surge.sh for more information

As you can see it doesn't take long for things to take form. Let go ahead and use superfun to spin up a local dev server.

./superfun myproject

Thats it! The project was automatically created and the web server is started! Now lets deploy our project.

./superfun myproject http://example.com

We are now deployed to the superfun platform which publishes to the surge CDN! as the DNS resolves to the surge servers your project will be available.

What you will need.

  • a domain name such as example.com
  • a wildcard SSL certificate for *.example.com.
  • a bank account we can deposit funds into.
  • a great dev server and/or boilerplate project.

What microplatform gives you.

  • A Global CDN enabled web publishing platform on your wildcard domain.
  • CLI published to your npm package.
  • Developer Portal hosted at your domain.
  • A CDN with servers in London, Amsterdam, Toronto, & San Francisco
  • Slack Messages with deployment activity
  • Web-hooks so you can extend your platform with backend services.

What do our customers get when they use your platform?

  • atomic deploys to global CDN with instant cache invalidation
  • zero-click automatic SSL provisioning via [LetsEncrypt.org]
  • the ability to add custom CNAME
  • clean URLS & intelligent redirects
  • collaboration and continuous delivery support
  • optional basicAuth password protection

Examples