Gathering detailed insights and metrics for otp-react-redux
Gathering detailed insights and metrics for otp-react-redux
npm install otp-react-redux
Typescript
Module System
Node Version
NPM Version
JavaScript (50.88%)
TypeScript (46.04%)
CSS (2.96%)
HTML (0.11%)
Total Downloads
21,292
Last Day
12
Last Week
52
Last Month
297
Last Year
1,474
78 Stars
8,350 Commits
53 Forks
13 Watching
190 Branches
35 Contributors
Latest Version
3.8.0
Package Id
otp-react-redux@3.8.0
Unpacked Size
10.33 MB
Size
2.92 MB
File Count
302
NPM Version
7.21.1
Node Version
16.13.1
Publised On
16 Dec 2021
Cumulative downloads
Total Downloads
Last day
100%
12
Compared to previous day
Last week
-49%
52
Compared to previous week
Last month
371.4%
297
Compared to previous month
Last year
-26.9%
1,474
Compared to previous year
81
4
56
A library for writing modern OpenTripPlanner-compatible multimodal journey planning applications using React and Redux.
An example of an OTP-RR application is included in the repository. The example project is a single page application with a root entry point of the example.js
file. This example.js file can be modified to suit the needs of a particular implementation.
To run, first clone the repo and install yarn if needed.
Update example-config.yml
with the needed API keys, and optionally, the OTP endpoint and initial map origin. (The default values are for a test server for Portland, OR.).
Install the dependencies and start a local instance using the following script:
1yarn start
Should you want to maintain multiple configuration files, OTP-RR can be made to use a custom config file by using environment variables. Other environment variables also exist. CUSTOM_CSS
can be used to point to a css file to inject, and JS_CONFIG
can be used to point to a config.js
file to override the one shipped with OTP-RR.
1yarn start --env.YAML_CONFIG=/absolute/path/to/config.yml
Build the js/css bundle by running yarn build
. The build will appear in the dist/
directory).
The same environment variables which affect the behavior of yarn start
also affect yarn build
. Running the following command builds OTP-RR with customized js and css:
1yarn build --env.JS_CONFIG=my-custom-js.js env.CUSTOM_CSS=my-custom-css.css
More coming soon...
As of version 2.0, otp-react-redux utilizes React's context API in a number of components. This changed the way that some components receive props such that they will not work properly unless wrapped with the context provider used in the ResponsiveWebapp
component.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
all changesets reviewed
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
SAST tool is run on all commits
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
51 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More