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

nebula-lib

v0.1.28

Published

nebula web service library

Downloads

6

Readme

Dev Notes On Nebula Web Tier

Nebula web tier is designed for supplying web faced layer to run user requests. Through this tier, Nebula provides supports for

  • Nebula UI via web requests (GET).
  • Nebula REST API - defined by api.js extensions

Some UI Dependencies In Use

  • install grunt "npm install -g grunt-cli"
  • use selectize for multi-values input
  • go to "selectize/" and "npm install"
  • build with plugins "grunt --plugins=remove_button,restore_on_backspace"
  • we can also use it from CDNJS directly if no changes in the build
  • https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/js/standalone/selectize.min.js
  • https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/css/selectize.min.css

Web tier is fully in ESM.

To embrace ESM is a good choice as modern browser and node.js (>v13) server are all supporting it. This is good for

  • module reuse by both browser stack and web stack stack (node).
  • good for future upgrade with optimizations.

Hence, we're declaring Nebula Web Tier is fully in ESM mode. However, there are some legacy dependencies require us stay in require for some cases. So here are some detailed notes.

  1. We use webpack to build bundle for NebulaClient library, we keep this in commonjs still due to its own limitation.
  2. Because of #1, we have to use createRequire to ensure require is still available in ES module mode.
  3. We're enforcing using named export rather than default export, so please keep export default xx out of the code base.
  4. All Nebula ES modules will be organized in folder _ for better identification, please follow this convension as well.
  5. If a module is used by both Web Server and Browser, we will minify it, we use VS Code extension Minify to do this work.

Nebula tier is designed to be a plugable platform so that any adopter can customize Nebula for its own appication. That is why I spent a lot of effort to enforce Nebula Web to be a consistent tech stack, above convensions are some basic requirements for nebula web advanced development.

Use Webpack

Webpack is used to produce two bundles for both browser and node.js, follow these steps to refresh them whenver proto contracts updated in the service. Note: make sure run below command in terminal that has node version of lts/gallium (nvm use lts/gallium).

  1. remove "type:module" from package.json to make below command work (due to webpack bad support for ES6).
  2. $ ~/nebula/src/service/http/nebula > npm install (based on package.json - can be reused for all service)
  3. (temporary), current grpc node plugin generates import of grpc not grpc-js, we will manually change it in nebula_grpc_pb.js
  4. ~/nebula/src/service/http/nebula > npx webpack
  5. $ in dist/web/main.js and dist/web/main2.js, prepend "export" in it to export NebulaClient. (webpack doesn't generate export key)

Publish nebula-lib

Publish nebula-lib to npmjs

  1. npm login
  2. npm version patch
  3. npm publish