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

tydids-ssi-consent-router

v1.0.4

Published

tydids-ssi-consent-router is a lightweight, SSI-based consent management solution. It acts as a proxy between web forms and backend systems, ensuring compliance with GDPR data privacy regulations. The router stores consent data, including SSI IDs and payl

Downloads

12

Readme

Moleculer

tydids-ssi-consent-router

** The microservice provides a solution for handling SSI (Self Sourvereign Identity) protected grants and ensuring that users have the ability to revoke consent. By using the microservice, developers can easily integrate SSI into their existing webforms without having to modify the underlying code. **

Key Features

  • Scalability: Based on the moleculer.service microservice framework, it can be used directly for large scalability.
  • Durability: The storage backend is based on pouchdb which ensures durability.
  • Lightweight Design: Makes it easy to use SSI for consent in existing environments.

Demo

Open in Gitpod

Concept

The microservice is designed to be used in web applications that collect sensitive data, such as a user's real name, phone number, and email address. By using SSI, the microservice ensures that the user has the ability to revoke consent at a later time.

The way a developer uses this microservice is by letting a webform submit to the /frontend/submit endpoint. Depending on the configuration in the .env file, the user will either be redirected to a configured URL or the request will be forwarded to another URL, where the microservice will do a POST request and capture the results redirect location and send it with the response. In other words, the microservice can be used as a snap-in to existing webforms by setting the <form action> to the microservice and configuring the FORWARD_URLto the original target.

Installation

The microservice requires Node JS 18.x or higher to be installed. It can also run as a docker container.

To install the microservice, follow these steps:

git clone https://github.com/energychain/tydids-ssi-consent-router
cd tydids-ssi-consent-router
npm install
cp sample.env .env

Configuration

The configuration is mainly in the .env file. You need to configure at least the PRIVATE_KEY. To create a new private key, run npm run createPrivateKey.

Usage

To start the microservice, run npm start. A test webform should be accessible at http://localhost:3000/showcase.html

Useful links

  • TyDIDs Core: https://github.com/energychain/tydids-core
  • TyDIDs Consent jQuery Extension: https://www.npmjs.com/package/tydids-jquery-consent
  • Moleculer website: https://moleculer.services/
  • Moleculer Documentation: https://moleculer.services/docs/0.14/

NPM scripts

  • npm run dev: Start development mode (load all services locally with hot-reload & REPL)
  • npm run start: Start production mode (set SERVICES env variable to load certain services)
  • npm run cli: Start a CLI and connect to production. Don't forget to set production namespace with --ns argument in script
  • npm run ci: Run continuous test mode with watching
  • npm test: Run tests & generate coverage report
  • npm run dc:up: Start the stack with Docker Compose
  • npm run dc:down: Stop the stack with Docker Compose

License: Apache-2.0

Maintainer / Impressum