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

annams

v0.0.33

Published

Authentication && Authorization MicroService created for container-based deployments.

Downloads

28

Readme

ANNAMS

Authentication && Authorization MicroService created for container-based deployments.

Build Status Maintainability Test Coverage

  1. Authentication
  2. Authorisation
  3. MicroService

Documentation Index

  1. Configuring Annams
  2. Deploying Annams
  3. REST-ful API
  4. GraphQL API
  5. Contributing

Annams Elsewhere

  • on CodeClimate @ https://codeclimate.com/github/zephinzer/annams
  • on DockerHub @ https://hub.docker.com/r/zephinzer/annams/
  • on GitHub @ https://github.com/zephinzer/annams
  • on NPM @ https://www.npmjs.com/package/annams
  • on Travis @ https://travis-ci.org/zephinzer/annams/

About ANNAMS

Authentication

Authentication is the process of knowing who a user is. Annams provides for the following methods of authenticating a user:

  • [ ] Email/password
  • [ ] Username/password
  • [ ] One-Time-Email
  • [ ] Via Facebook
  • [ ] Via Google

To keep Annams stateless, we utilise JSON Web Tokens (JWTs) which are signed using asymmetric keys.

Authorization

Authorization is the process of restricting access to content a user may access. Annams allows you to create Resource Types, Groups, and Accounts.

  1. Resource Types are atomic and can be assigned one or more Groups.
  2. Groups can be assigned one or more Accounts.
  3. Accounts belonging to a Group that has access to a Resource Type will be able to access the Resource Type, otherwise, access can be denied.

MicroService

Annams was created for deployment as part of a larger microservice architecture and accounts for both intra-network communications with other microservices, as well as communication with a client-side application. We implement the following features:

  • [x] Basic HTTP header security
  • [x] GZIP compressed responses
  • [x] Metrics collection/exposing (via Prometheus)
  • [x] Liveness Checks
  • [x] Readiness Checks
  • [x] Cross-Origin-Resource-Sharing (CORS)
  • [x] MicroServices compatible logging (via Pino)
  • [x] Containerisable (via Docker)
  • [x] Traceability (via Zipkin)
  • [ ] Support for Consumer Driven Contract (CDC) Testing (via Wiremock)
  • [ ] Virtual Machine Deployment Support (via PM2)
  • [ ] Container Deployment Support (via Docker)
  • [ ] Container Deployment Support (via Kubernetes)
  • [ ] REST-ful API

Future Development

The following are on the roadmap for future development:

  • [ ] HTTP/2 Compatibility
  • [ ] GraphQL API
  • [ ] Administrator Frontend

Architecture Notes

Primary Technologies

  • Shell Scripting
  • JavaScript (ES2017)
  • Docker
  • Kubernetes

Significant Frameworks/Libraries/Tools

Third Party Services

License

Annams is licensed under the GPLv3 license.


Authentication && Authorization MicroService (ANNAMS)

Copyright (C) 2018 Joseph Matthias Goh (@zephinzer)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.


Cheers

(please contribute!)