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

gvil

v0.0.1

Published

## Table of Contents

Downloads

2

Readme

Resource-Sharing Platform

Table of Contents


Overview

This platform aims to facilitate the sharing of resources between different entities, such as organizations and individuals. It matches available resources with those in need and notifies both parties for further action.


Personas

Organizations

Entities like hospitals, volunteer centers, and military bases that have resources to offer or are in need of specific resources.

{
  "id": "123",
  "name": "hospital",
  "desc": "a good place to volunteer"
}

Individuals

People who either want to donate resources or are seeking specific resources for themselves.

{
  "id": "789",
  "name": "baryo",
  "available": {
    "food box": [
      {
        "quantity": 3,
        "location": "TLV"
      }
    ]
  }

}

Features

Joining the System

  • Users can either register manually or be dynamically created based on data from forums, WhatsApp groups, etc.

Resource Management

  • Each persona (organization or individual) can list resources they have available or are missing.
  • Resources can have additional details such as quantity, location, time, and category.
  • Examples:
    • 3 combat-vests available in TLV
    • Need 20 volunteers in Beer Sheva tomorrow
{
  "available": {
    "food box": [
      {
        "quantity": 3,
        "location": "TLV"
      }
    ]
  }
}

Matching and Notifications

  • The system automatically matches available resources with missing resources.
  • When a match is found, both parties are alerted via selected channel.
sequenceDiagram
  User1->>System: List available resources
  User2->>System: List missing resources
  System->>WhatsApp Bot: Found a match
  WhatsApp Bot->>User1: Alert
  WhatsApp Bot->>User2: Alert

Transactions

  • Parties can communicate directly to finalize the transaction.
  • Both parties can confirm the transaction, updating the quantity of resources available or missing.
  • The system supports multi-resource transactions.
graph TD
  X[User X: Has vests] --> Z[User Z: Can transport]
  Z --> Y[User Y: Needs vests]

Development

Structure

packages:
    ts: # pure TS functunality
     src:
       ts.ts # types 
       
     

Install

Run yarn

Building

Run yarn build to build all workspace.

Run npx nx build ts to build the specific package.

Generate new package

Run name=my_lib yarn genwts to generate ts lib

Run any nx generate

Lib

nx generate @nx/<any> \
--preset=ts --directory=/packages/$name \
--publishable \
--importPath=@gvil/$name \
--tags=scope:gvil,type:lib

App

nx generate @nx/<any> \
--preset=ts --directory=/packages/$name \
--publishable \
--importPath=@gvil/$name \
--tags=scope:gvil,type:app

Publish

Run "nx publish" to build all workspace Run nx publish ts to build the specific package.