Installations
npm install cra-template-overwolf-typescript-redux
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=20.11.0
Node Version
20.10.0
NPM Version
10.2.5
Score
75
Supply Chain
99
Quality
76.2
Maintenance
100
Vulnerability
99.6
License
Releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (85.44%)
CSS (10%)
JavaScript (2.62%)
HTML (1.94%)
Developer
Download Statistics
Total Downloads
8,233
Last Day
18
Last Week
225
Last Month
293
Last Year
1,693
GitHub Statistics
56 Stars
128 Commits
18 Forks
3 Watching
4 Branches
8 Contributors
Bundle Size
1.58 kB
Minified
742.00 B
Minified + Gzipped
Package Meta Information
Latest Version
3.2.1
Package Id
cra-template-overwolf-typescript-redux@3.2.1
Unpacked Size
5.23 MB
Size
5.13 MB
File Count
117
NPM Version
10.2.5
Node Version
20.10.0
Publised On
15 Jan 2024
Total Downloads
Cumulative downloads
Total Downloads
8,233
Last day
500%
18
Compared to previous day
Last week
1,150%
225
Compared to previous week
Last month
161.6%
293
Compared to previous month
Last year
1.9%
1,693
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
2
Overwolf Modern React Boilerplate
Quickstart · Project structure · Overwolf Custom Hooks · Remote Debug · Contribution ·
This is the official Overwolf Modern React Boilerplate template for Create React App.
OMRB is a free and open source opinionated boilerplate based on React that helps developers create fast, modular and modern overwolf app.
Technology
React JS · Redux ToolKit · I18next · Redux Devtools - Remote · Overwolf Api
-
Use a Modern Stack for Every App. Create a uniform workflow for you and your team without ejecting the Create React App code.
-
Internationalization. Support for multiple languages without having to change code.
-
Performance Is Baked In. Custom hooks with functions and variables memoized for common uses in overwolf development.
-
Build. Folders and structure ready for use in the overwolf store.
-
CI/CD continuous development, continuous testing, continuous integration, continuous deployment
🚀 Quick Start
Prerequisites
To use this template, add --template overwolf-typescript-redux
when creating a new app.
For example:
1npx create-react-app my-app --template overwolf-typescript-redux 2 3# or 4 5yarn create react-app my-app --template overwolf-typescript-redux
For more information, please refer to:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.
📸 Screenshot
this version the project is configured and ready to test with the Hearthstone game, you can use the template, compile and test without modifying anything to understand the development flow.
Desktop Window
InGame Window - 1
InGame Window - 2
💼 Project structure - Feature Folder.
Folder-by-type only works on small-scale projects. Folder-by-feature is superior in the majority of cases, is better due to its scalability, stands out in high modularity and cohesion. It allows us to play with the components' scope.
1. 2|--- public 3|---- # essencial files for overwolf store 4|--- src 5| |--- app/ 6| |----# global and shared components 7| |----lib/ 8| |----# global and shared functions 9| |--- components/ 10| |----# components that are not part of the application's business rule and can be reused in other features 11| |--- features/ 12| |----# features that are part of the application's business rule and can be reused in other features 13| |--- screens/ 14| |----# screens that are part of each entry point of the application from the ovewolf manifest 15| |--- locales/ 16| |-----------de/**/*.json 17| |-----------de/index.ts 18| |-----------en/**/*.json 19| |-----------en/index.ts 20| |-----------es/**/*.json 21| |-----------es/index.ts 22| |-----------fr/**/*.json 23| |-----------fr/index.ts 24| |-----------it/**/*.json 25| |-----------it/index.ts 26| |-----------ko/**/*.json 27| |-----------ko/index.ts 28| |-----------pl/**/*.json 29| |-----------pl/index.ts 30| |-----------pt/**/*.json 31| |-----------pt/index.ts 32| |-----------ru/**/*.json 33| |-----------ru/index.ts 34| |-----------tr/**/*.json 35| |-----------tr/index.ts 36| |-----------index.ts 37| |--- index.tsx 38| |--- overwolf.dev.mock.ts 39| |--- react-app-env.d.ts 40| |--- setupTests.ts 41|--- .gitignore 42|--- LICENSE 43|--- README.md 44|--- package-lock.json 45|--- package.json 46|--- tsconfig.json 47.
🐛 Remote Redux Debug.
In overwolf it is not possible to install plugins to debug the code, so the alternative is to use something remote to debug an injected code.
- Install tool.
- Install Redux DevTools in common browser.
- Configure
- if the installation is correct, a redux dev tools icon should appear in your browser's toolbar.
- click into icon then choose "Open remote devTools"
- click into settings option and let hostname called to "localhost" and port 8081.
- Run Server Bridge
- run the server that bridges the remote redux and the overwolf application.
1cd overwolf-modern-react-boilerplate 2npm run start-remote-server
- Start debugging
whenever you want to debug your app store, just remember to use the remote redux dev tools + the bridge server
📦 Build/Create package for overwolf store.
you need to create an optimized version of your code and the correct structure before sending it to the overwolf store. Overwolf Doc: How to submit an app
-
Compile
1#Change into directory 2cd overwolf-modern-react-boilerplate 3npm run build:overwolf
-
Edit Changelog
To make it easier for users, contributors and overwolf team to see precisely what notable changes have been made between each release (or version) of the project.
-
Send .zip (if it is the first time you are sending the app, you need to send the .zip file to the overwolf team, so that they can create the app in the store)
- the generated code is located in
|--- build/**/.**
- Package all build/ folders to .zip (the command above already does this for you)
- just send your .zip code to the overwolf test team. (package.vx.x.x.zip)
1$ vi project-root/CHANGELOG.md
📦 🔃 🛎️ CI/CD
throughout the development cycle testing or releasing small updates can become a bit tedious, so there is also a github action setting when you generate a new project, you don't actually need to do any extra steps if you use github, this means that whenever you add valid code to the main branch, then an automatic github action will do all the compiling and packaging steps automatically.
About CI/CD File.yml
Configure Github Actions with secrets and environment variables
variables
Name | Description | type |
---|---|---|
PRE_RELEASE_CHANNEL | overwolf channel id | number |
Note: Test Channel IDs from overwolf-cli Several commands work with test channels. While we plan to accept the channel's name, for now, we expect to receive the channel ID as the argument. You can find the channel's ID in the page URL of the channel in the Dev Console.
secrets
Name | Description | type |
---|---|---|
OW_CLI_EMAIL | overwolf dev email | string |
OW_CLI_API_KEY | overwolf dev api key | string |
Check out some screenshots of what github actions looks like:
🤝 Contributing
Contributions, issues and feature requests are welcome!
Projects using OMRB
If you are using OMRB in your project, please let me know! I'll be happy to list it here.
-
A map for Fortnite Battle Royale.
-
A tool to help you manage economy in the cs2.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
packaging workflow detected
Details
- Info: Project packages its releases by way of GitHub Actions.: .github/workflows/ci.yml:11
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Info: no jobLevel write permissions found
Reason
6 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/AlbericoD/overwolf-modern-react-boilerplate/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/AlbericoD/overwolf-modern-react-boilerplate/ci.yml/master?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 1 out of 1 npmCommand dependencies pinned
Reason
Found 4/16 approved changesets -- score normalized to 2
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
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
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 20 are checked with a SAST tool
Score
4.5
/10
Last Scanned on 2025-01-13
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