
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
microplatform
Advanced tools
on-demand static publishing platform.
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.
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
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.
Creativity - Experimenting with new libraries or development setups is now fast and easy. microplatform
brings the fun back to experimentation.
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.
example.com
*.example.com
.microplatform
gives you.FAQs
Dev server + Static Site Generator + CDN Publishing
The npm package microplatform receives a total of 343 weekly downloads. As such, microplatform popularity was classified as not popular.
We found that microplatform demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.