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

@automationsquared/lmr-api-spec

v1.39.1-rc.33

Published

A Cross-team repository to maintain API Specifications for Link My Ride mobile app.

Downloads

58

Readme

This repository contains information that describes how communication and data transfer takes place between the LMR Mobile app that is being developed by ASquared and its API layer that is being developed by Jump24. The information hosted on this repository is divided into the following categories:

  • Architectural decision records
  • Open API specs
  • TypeScript type definitions
  • Sample (mock) data
  • Jest unit tests

Installing

In order to be able to run scripts mentioed in package.json file, please make sure you have node installed. Then, the node module dependencies needs to be installed with the following command: npm i

Testing

  • First stage of quality assurance of the repository is lint rule checking, which can be done with the following command:

npm run lint

  • The second part is static type checking, which can be done with the following command:

npm run typecheck

  • In order to run tests locally and offline, the following command is used:

npm run test

  • For being able to run integration tests ( e.g by connecting to a real server environment), you can use the following command:

npm run test:staging

  • Before doing so, please make sure that:
    • Your IP is allow-listed by Jump24 so that you can issue requests to their servers.
    • You replace copy .env.example file to create a .env file that inculdes 2 uath tokens. The token values can be retrieved from other team members or from Gitlab CI's environment variables.

Building

  • The build artifact of the project is located under dist folder and contains the following:

    • Mock data under src/mock/data
    • API specs under src/specs
    • Type definitions inside type.d.ts file
  • Build artifact can be generated with the following command:

npm run build

CI/CD

  • If a merge request is created where the source is a feature branch and the target is the repository's default branch, the CI/CD does the following

  • Builds the project to generate artifacts.

  • Publishes a node module named lmr-api-spec with a release candidate (-rc) suffix.

Push notifications testing

In order to try out push notifications, you'll need to :

  • Get a copy of the scripts/keys/link-my-ride-8063e-firebase-adminsdk-v2knp-7e348e9853.json file from Nick K
  • Then run npm run send-notification

This should run the /scripts/send-notification.ts file using NodeJS. This is expected to send a push notification to all devices that have subscribed to firebase topic u_54797216-e1b6-11ec-8fea-0242ac120001 - the current mock api user id is 54797216-e1b6-11ec-8fea-0242ac120001 so this will only send to all mock users running a this MR in their branch on a real device: