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

serverassist

v0.1.27

Published

SeverAssist

Downloads

9

Readme

ServerAssist

This is the package you include if you are writing a server-assist server-side app/module.

SeverAssist is a technology that aims to allow client-side developers (mostly mobile) to easily leverage server-side technologies. For example, for a client-side app to easily store things on S3.

If, however, you are writing a server-side technology, and want it to play well with other ServerAssist server-side things, you should use this module to assist you.

Server Side Overview

Projects and Apps

Projects

This is a big, feature-rich package, pretty much like you would expect with a name like Project. A project has a name, but the projectId is the thing that is key. It is the projects namespace within the system. So, for the mythical project project, it would have a projectId of prj, for example. As such, it would get the URL space:

*.mobilewebassist.net/prj/*

The Project can allocate the URL path however it wants, but should follow the conventions. The code should not care about the subdomains -- ServerAssist will manage those.

Besides projectId and name, a project's DB entries consist of:

  • uri-base -- like mobilewebassist.net/prj/

Apps

Apps are really what most developers know as micro-services. They are (usually) small services that are available to other server-side entities, as well as client-side. Apps belong to a project, and thus are always mounted within the project's URL space:

*.mobilewebassist.net/prj/api/v2/app*

It is the app's perogative to allocate the URL space below its own. An app work correctly irrespectively of where it gets mounted, but it will be informed.

An apps DB entries are:

  • appId -- like prj_app
  • mount -- like prj/api/v2/app for an API end-point.

Components

Webtier

server-assist-server/webtier/webtier.js manages the instances that act as the webtier.

  • Generate nginx.conf file.

HQ

server-assist-server/hq/hq.js is the top-level controller for the cluster.

  • handles /clientStart requests, to send clients to the right server-side endpoint.
  • Hosts admin panels and apps

serverassist NPM package

This is an NPM package you require in order to help you hook your micro-service into the server-side of ServerAssist. It is also used by the server-assist-server modules.

Attr-man

Attribute man is a server-side app for the server-assist project, itself. It is a telemetry collector app. You send it unstructured JSON data, and attr-man stores it in S3 for you.

  • Fast and cheap storage of telemetry data -- allows developers to instrument their code without worrying about storage, lifetime, etc for the data.
  • Indexes the data a couple of different ways, and allows the project to index it any way they like.
  • Then serves the data up to a analysis program or viewer.

Other

Workstation

When on a local workstation, the system automatically inserts a service for development of SPAs on the local machine. The service is at localhost:3000, and the FQDN is local.mobilewebassist.net

It is the webtier.js module of server-assist-server that does this favor.

TODO

  • projectId/type/name -- defines an app -- all other attrs can be derived