Installations
npm install otp-react-redux
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
16.13.1
NPM Version
7.21.1
Releases
Contributors
Languages
JavaScript (50.88%)
TypeScript (46.04%)
CSS (2.96%)
HTML (0.11%)
Developer
opentripplanner
Download Statistics
Total Downloads
21,292
Last Day
12
Last Week
52
Last Month
297
Last Year
1,474
GitHub Statistics
78 Stars
8,350 Commits
53 Forks
13 Watching
190 Branches
35 Contributors
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
21,292
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
81
Peer Dependencies
4
Dev Dependencies
56
otp-react-redux
A library for writing modern OpenTripPlanner-compatible multimodal journey planning applications using React and Redux.
Running the Example
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
Deploying the UI
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
Library Documentation
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
no binaries found in the repo
Reason
SAST tool is run on all commits
Details
- Info: SAST configuration detected: CodeQL
- Info: all commits (30) are checked with a SAST tool
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:30
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:31
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/dependabot.yml:12
- Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1
- Warn: no topLevel permission defined: .github/workflows/codespell.yml:1
- Warn: no topLevel permission defined: .github/workflows/dependabot.yml:1
- Warn: no topLevel permission defined: .github/workflows/node-ci.yml:1
- Warn: no topLevel permission defined: .github/workflows/percy.yml:1
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/codeql-analysis.yml/dev?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/codeql-analysis.yml/dev?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/codeql-analysis.yml/dev?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/codeql-analysis.yml/dev?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codespell.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/codespell.yml/dev?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/codespell.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/codespell.yml/dev?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependabot.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/dependabot.yml/dev?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node-ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/node-ci.yml/dev?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node-ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/node-ci.yml/dev?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/node-ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/node-ci.yml/dev?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/percy.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/percy.yml/dev?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/percy.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/percy.yml/dev?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/percy.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/percy.yml/dev?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/percy.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/percy.yml/dev?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/percy.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/percy.yml/dev?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/percy.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/opentripplanner/otp-react-redux/percy.yml/dev?enable=pin
- Info: 0 out of 11 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 5 third-party GitHubAction dependencies pinned
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
51 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-whgm-jr23-g3j9
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-9mvj-f7w8-pvh2
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q
- Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6
- Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm
- Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27
- Warn: Project is vulnerable to: GHSA-33f9-j839-rf8h
- Warn: Project is vulnerable to: GHSA-c36v-fmgq-m8hx
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq
- Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488
- Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g
- Warn: Project is vulnerable to: GHSA-779f-wgxg-qr8f
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj
- Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g
- Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5
- Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp
- Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq
- Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr
- Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765
- Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g
- Warn: Project is vulnerable to: GHSA-hj9c-8jmm-8c52
- Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr
- Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-x2pg-mjhr-2m5x
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx
- Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-f9xv-q969-pqx4
Score
5.5
/10
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