├── .github
└── ISSUE_TEMPLATE
│ ├── bug_report.md
│ ├── feature_request.md
│ └── pull_request_template.md
├── .gitignore
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── SECURITY.md
├── client
├── .eslintrc.cjs
├── favicon.ico
├── index.html
├── package-lock.json
├── package.json
├── postcss.config.js
├── src
│ ├── App.css
│ ├── App.jsx
│ ├── assets
│ │ ├── exit-fullscreen-symbol.svg
│ │ ├── fullscreen-symbol.svg
│ │ └── keyboard-symbol.svg
│ ├── components
│ │ ├── Browser
│ │ │ ├── BrowserHome.jsx
│ │ │ ├── FileTransferer.jsx
│ │ │ └── Header.jsx
│ │ ├── Home.jsx
│ │ └── Mobile
│ │ │ ├── FileReceiver.jsx
│ │ │ ├── FileTransferer.jsx
│ │ │ ├── FullScreen.jsx
│ │ │ ├── Header.jsx
│ │ │ ├── Keyboard.jsx
│ │ │ ├── MobileHome.jsx
│ │ │ └── Touchpad.jsx
│ ├── index.css
│ ├── main.jsx
│ └── utils
│ │ ├── config.js
│ │ ├── file_transfer.js
│ │ ├── geo.js
│ │ └── webRTC_setter.js
├── tailwind.config.js
└── vite.config.js
├── server
├── package-lock.json
├── package.json
└── src
│ ├── index.js
│ ├── routers
│ └── touchpad.js
│ └── utils
│ ├── file_transfer.js
│ ├── get_ip.js
│ ├── global_calls.js
│ └── signaling_server.js
└── setup.sh
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | ### How Do I Submit a Good Bug Report?
11 |
12 | To help us address your issue effectively, please provide the following details when submitting a bug report:
13 |
14 | **Describe the Bug**
15 | Provide a clear and concise description of what the bug is.
16 |
17 | **To Reproduce**
18 | Steps to reproduce the behavior:
19 | 1. Go to '...'
20 | 2. Click on '....'
21 | 3. Scroll down to '....'
22 | 4. See error
23 |
24 | **Expected Behavior**
25 | Describe what you expected to happen in a clear and concise manner.
26 |
27 | **Screenshots**
28 | If applicable, add screenshots to help explain your problem.
29 |
30 | **Desktop (please complete the following information):**
31 | - OS: [e.g., Windows, macOS, Linux]
32 | - Browser: [e.g., Chrome, Firefox, Safari]
33 | - Version: [e.g., 22]
34 |
35 | **Smartphone (please complete the following information):**
36 | - Device: [e.g., iPhone 12, Samsung Galaxy S21]
37 | - OS: [e.g., iOS 14.4, Android 11]
38 | - Browser: [e.g., Safari, Chrome, stock browser]
39 | - Version: [e.g., 22]
40 |
41 | **Additional Context**
42 | Add any other context about the problem here. This can include logs, error messages, or any other relevant information.
43 |
44 | Once you've gathered this information, please open an [Issue](https://github.com/Bhavye2003Developer/remotely/issues/new) and provide all the details listed above. This will help us diagnose and fix the issue as quickly as possible. Thank you for helping us improve Remotely!
45 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | ### How Do I Submit a Good Enhancement Suggestion?
11 |
12 | To help us understand and consider your feature request effectively, please provide the following details:
13 |
14 | **Is your feature request related to a problem? Please describe.**
15 | Provide a clear and concise description of what the problem is. Example: "I'm always frustrated when [...]"
16 |
17 | **Describe the Solution You'd Like**
18 | Clearly describe what you want to happen. Explain how this solution would solve the problem or improve the project.
19 |
20 | **Describe Alternatives You've Considered**
21 | List any alternative solutions or features you've considered and why you believe they might not be as effective.
22 |
23 | **Additional Context**
24 | Add any other context or screenshots about the feature request here. This can include use cases, potential benefits, or any other relevant information.
25 |
26 | Once you've gathered this information, please open an [Issue](https://github.com/Bhavye2003Developer/remotely/issues/new) and provide all the details listed above. This will help us evaluate and implement the feature as quickly as possible. Thank you for helping us improve Remotely!
27 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/pull_request_template.md:
--------------------------------------------------------------------------------
1 | # Pull Request Template
2 |
3 | ## Description
4 |
5 | Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
6 |
7 | Fixes # (issue)
8 |
9 | ## Type of Change
10 |
11 | Please delete options that are not relevant.
12 |
13 | - [ ] Bug fix (non-breaking change which fixes an issue)
14 | - [ ] New feature (non-breaking change which adds functionality)
15 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
16 | - [ ] Documentation update
17 |
18 | ## How Has This Been Tested?
19 |
20 | Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
21 |
22 | - [ ] Test A
23 | - [ ] Test B
24 |
25 | **Test Configuration**:
26 | * Firmware version:
27 | * Hardware:
28 | * Toolchain:
29 | * SDK:
30 |
31 | ## Checklist:
32 |
33 | - [ ] My code follows the style guidelines of this project
34 | - [ ] I have performed a self-review of my own code
35 | - [ ] I have commented my code, particularly in hard-to-understand areas
36 | - [ ] I have made corresponding changes to the documentation
37 | - [ ] My changes generate no new warnings
38 | - [ ] I have added tests that prove my fix is effective or that my feature works
39 | - [ ] New and existing unit tests pass locally with my changes
40 | - [ ] Any dependent changes have been merged and published in downstream modules
41 |
42 | ## Screenshots (if applicable):
43 |
44 | Please add any screenshots that can help illustrate the changes made in this pull request.
45 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 |
10 | node_modules
11 | dist
12 | dist-ssr
13 | *.local
14 |
15 | # Editor directories and files
16 | .vscode/*
17 | !.vscode/extensions.json
18 | .idea
19 | .DS_Store
20 | *.suo
21 | *.ntvs*
22 | *.njsproj
23 | *.sln
24 | *.sw?
25 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | We as members, contributors, and leaders pledge to make participation in our
6 | community a harassment-free experience for everyone, regardless of age, body
7 | size, visible or invisible disability, ethnicity, sex characteristics, gender
8 | identity and expression, level of experience, education, socio-economic status,
9 | nationality, personal appearance, race, religion, or sexual identity
10 | and orientation.
11 |
12 | We pledge to act and interact in ways that contribute to an open, welcoming,
13 | diverse, inclusive, and healthy community.
14 |
15 | ## Our Standards
16 |
17 | Examples of behavior that contributes to a positive environment for our
18 | community include:
19 |
20 | * Demonstrating empathy and kindness toward other people
21 | * Being respectful of differing opinions, viewpoints, and experiences
22 | * Giving and gracefully accepting constructive feedback
23 | * Accepting responsibility and apologizing to those affected by our mistakes,
24 | and learning from the experience
25 | * Focusing on what is best not just for us as individuals, but for the
26 | overall community
27 |
28 | Examples of unacceptable behavior include:
29 |
30 | * The use of sexualized language or imagery, and sexual attention or
31 | advances of any kind
32 | * Trolling, insulting or derogatory comments, and personal or political attacks
33 | * Public or private harassment
34 | * Publishing others' private information, such as a physical or email
35 | address, without their explicit permission
36 | * Other conduct which could reasonably be considered inappropriate in a
37 | professional setting
38 |
39 | ## Enforcement Responsibilities
40 |
41 | Community leaders are responsible for clarifying and enforcing our standards of
42 | acceptable behavior and will take appropriate and fair corrective action in
43 | response to any behavior that they deem inappropriate, threatening, offensive,
44 | or harmful.
45 |
46 | Community leaders have the right and responsibility to remove, edit, or reject
47 | comments, commits, code, wiki edits, issues, and other contributions that are
48 | not aligned to this Code of Conduct, and will communicate reasons for moderation
49 | decisions when appropriate.
50 |
51 | ## Scope
52 |
53 | This Code of Conduct applies within all community spaces, and also applies when
54 | an individual is officially representing the community in public spaces.
55 | Examples of representing our community include using an official e-mail address,
56 | posting via an official social media account, or acting as an appointed
57 | representative at an online or offline event.
58 |
59 | ## Enforcement
60 |
61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
62 | reported to the community leaders responsible for enforcement at
63 | bhavyedevelopment2003@gmail.com.
64 | All complaints will be reviewed and investigated promptly and fairly.
65 |
66 | All community leaders are obligated to respect the privacy and security of the
67 | reporter of any incident.
68 |
69 | ## Enforcement Guidelines
70 |
71 | Community leaders will follow these Community Impact Guidelines in determining
72 | the consequences for any action they deem in violation of this Code of Conduct:
73 |
74 | ### 1. Correction
75 |
76 | **Community Impact**: Use of inappropriate language or other behavior deemed
77 | unprofessional or unwelcome in the community.
78 |
79 | **Consequence**: A private, written warning from community leaders, providing
80 | clarity around the nature of the violation and an explanation of why the
81 | behavior was inappropriate. A public apology may be requested.
82 |
83 | ### 2. Warning
84 |
85 | **Community Impact**: A violation through a single incident or series
86 | of actions.
87 |
88 | **Consequence**: A warning with consequences for continued behavior. No
89 | interaction with the people involved, including unsolicited interaction with
90 | those enforcing the Code of Conduct, for a specified period of time. This
91 | includes avoiding interactions in community spaces as well as external channels
92 | like social media. Violating these terms may lead to a temporary or
93 | permanent ban.
94 |
95 | ### 3. Temporary Ban
96 |
97 | **Community Impact**: A serious violation of community standards, including
98 | sustained inappropriate behavior.
99 |
100 | **Consequence**: A temporary ban from any sort of interaction or public
101 | communication with the community for a specified period of time. No public or
102 | private interaction with the people involved, including unsolicited interaction
103 | with those enforcing the Code of Conduct, is allowed during this period.
104 | Violating these terms may lead to a permanent ban.
105 |
106 | ### 4. Permanent Ban
107 |
108 | **Community Impact**: Demonstrating a pattern of violation of community
109 | standards, including sustained inappropriate behavior, harassment of an
110 | individual, or aggression toward or disparagement of classes of individuals.
111 |
112 | **Consequence**: A permanent ban from any sort of public interaction within
113 | the community.
114 |
115 | ## Attribution
116 |
117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118 | version 2.0, available at
119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120 |
121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct
122 | enforcement ladder](https://github.com/mozilla/diversity).
123 |
124 | [homepage]: https://www.contributor-covenant.org
125 |
126 | For answers to common questions about this code of conduct, see the FAQ at
127 | https://www.contributor-covenant.org/faq. Translations are available at
128 | https://www.contributor-covenant.org/translations.
129 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to Remotely
2 |
3 | First off, thanks for taking the time to contribute!
4 |
5 | All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions.
6 |
7 | > And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
8 | > - Star the project
9 | > - Tweet about it
10 | > - Refer this project in your project's readme
11 | > - Mention the project at local meetups and tell your friends/colleagues
12 |
13 | ## Table of Contents
14 |
15 | - [Code of Conduct](#code-of-conduct)
16 | - [I Have a Question](#i-have-a-question)
17 | - [I Want To Contribute](#i-want-to-contribute)
18 | - [Reporting Bugs](#reporting-bugs)
19 | - [Suggesting Enhancements](#suggesting-enhancements)
20 | - [Your First Code Contribution](#your-first-code-contribution)
21 | - [Improving The Documentation](#improving-the-documentation)
22 | - [Styleguides](#styleguides)
23 | - [Commit Messages](#commit-messages)
24 | - [Join The Project Team](#join-the-project-team)
25 | - [Attribution](#attribution)
26 |
27 | ## Code of Conduct
28 |
29 | This project and everyone participating in it is governed by the
30 | [Remotely Code of Conduct](blob/master/CODE_OF_CONDUCT.md).
31 | By participating, you are expected to uphold this code. Please report unacceptable behavior
32 | to [bhavyedevelopment2003@gmail.com](mailto:bhavyedevelopment2003@gmail.com).
33 |
34 | ## I Have a Question
35 |
36 | > If you want to ask a question, we assume that you have read the available [Documentation](https://github.com/Bhavye2003Developer/remotely#readme).
37 |
38 | Before you ask a question, it is best to search for existing [Issues](https://github.com/Bhavye2003Developer/remotely/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
39 |
40 | If you then still feel the need to ask a question and need clarification, we recommend the following:
41 |
42 | - Open an [Issue](https://github.com/Bhavye2003Developer/remotely/issues/new).
43 | - Provide as much context as you can about what you're running into.
44 | - Provide project and platform versions (nodejs, npm, etc), depending on what seems relevant.
45 |
46 | We will then take care of the issue as soon as possible.
47 |
48 | ## I Want To Contribute
49 |
50 | > ### Legal Notice
51 | > When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project license.
52 |
53 | ### Reporting Bugs
54 |
55 | #### Before Submitting a Bug Report
56 |
57 | A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
58 |
59 | - Make sure that you are using the latest version.
60 | - Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](https://github.com/Bhavye2003Developer/remotely#readme). If you are looking for support, you might want to check [this section](#i-have-a-question)).
61 | - To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/Bhavye2003Developer/remotely/issues?q=label%3Abug).
62 | - Also make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue.
63 | - Collect information about the bug:
64 | - Stack trace (Traceback)
65 | - OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
66 | - Version of the interpreter, compiler, SDK, runtime environment, package manager, depending on what seems relevant.
67 | - Possibly your input and the output
68 | - Can you reliably reproduce the issue? And can you also reproduce it with older versions?
69 |
70 | #### How Do I Submit a Good Bug Report?
71 |
72 | > You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to [bhavyedevelopment2003@gmail.com](mailto:bhavyedevelopment2003@gmail.com).
73 |
74 | We use GitHub issues to track bugs and errors. If you run into an issue with the project:
75 |
76 | - Open an [Issue](https://github.com/Bhavye2003Developer/remotely/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
77 | - Explain the behavior you would expect and the actual behavior.
78 | - Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case.
79 | - Provide the information you collected in the previous section.
80 |
81 | Once it's filed:
82 |
83 | - The project team will label the issue accordingly.
84 | - A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps and mark the issue as `needs-repro`. Bugs with the `needs-repro` tag will not be addressed until they are reproduced.
85 | - If the team is able to reproduce the issue, it will be marked `needs-fix`, as well as possibly other tags (such as `critical`), and the issue will be left to be [implemented by someone](#your-first-code-contribution).
86 |
87 | ### Suggesting Enhancements
88 |
89 | This section guides you through submitting an enhancement suggestion for Remotely, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.
90 |
91 | #### Before Submitting an Enhancement
92 |
93 | - Make sure that you are using the latest version.
94 | - Read the [documentation](https://github.com/Bhavye2003Developer/remotely#readme) carefully and find out if the functionality is already covered, maybe by an individual configuration.
95 | - Perform a [search](https://github.com/Bhavye2003Developer/remotely/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
96 | - Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.
97 |
98 | #### How Do I Submit a Good Enhancement Suggestion?
99 |
100 | Enhancement suggestions are tracked as [GitHub issues](https://github.com/Bhavye2003Developer/remotely/issues).
101 |
102 | - Use a **clear and descriptive title** for the issue to identify the suggestion.
103 | - Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
104 | - **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
105 | - You may want to **include screenshots and animated GIFs** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux.
106 | - **Explain why this enhancement would be useful** to most Remotely users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
107 |
108 | ### Your First Code Contribution
109 |
110 | TBD
111 |
112 | ### Improving The Documentation
113 |
114 | TBD
115 |
116 | ## Styleguides
117 |
118 | ### Commit Messages
119 |
120 | TBD
121 |
122 | ## Join The Project Team
123 |
124 | TBD
125 |
126 | ## Attribution
127 |
128 | This guide is based on the **contributing.md**. [Make your own](https://contributing.md/)!
129 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Bhavye2003Developer
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Remotely
2 |
3 | ## Overview
4 |
5 | Remotely is a versatile application that transforms your mobile device into a powerful remote control for your desktop. This application offers multiple functionalities, including file transfers, touchpad, and keyboard features, making it an essential tool for seamless interaction between your mobile and desktop environments.
6 |
7 | ## Features
8 |
9 | 1. **Multiple File Transfer from Mobile to Desktop:**
10 |
11 | - Easily transfer multiple files from your mobile device to your desktop.
12 |
13 | 2. **Single File Transfer from Desktop to Mobile:**
14 |
15 | - Transfer a single file from your desktop to your mobile device with ease.
16 |
17 | 3. **Touchpad:**
18 |
19 | - Use your mobile device as a touchpad to control the cursor on your desktop.
20 |
21 | - Supports coordinate transfer to enable smooth cursor movements.
22 |
23 | 4. **Keyboard:**
24 |
25 | - Use your mobile device as a keyboard to type on your desktop.
26 |
27 | - Enhances productivity with remote typing capabilities.
28 |
29 | ## Technologies Used
30 |
31 | 1. **Backend:**
32 |
33 | - **Node.js:** A powerful JavaScript runtime for building the backend of the application.
34 |
35 | 2. **Frontend:**
36 |
37 | - **React:** A popular JavaScript library for building user interfaces.
38 |
39 | - **Tailwind CSS:** A utility-first CSS framework for styling the frontend.
40 |
41 | 3. **Communication:**
42 |
43 | - **WebSockets:** Used for real-time communication between the touchpad and the desktop to transfer coordinates for cursor movements.
44 |
45 | - **WebRTC:** Used for peer-to-peer file transfer between the desktop and mobile device, ensuring fast and secure data transfer.
46 |
47 | ## Setup and Installation
48 |
49 | ### Prerequisites
50 |
51 | - Node.js installed on your system.
52 |
53 | - npm (Node Package Manager) installed.
54 |
55 | - A modern web browser (e.g., Chrome, Firefox).
56 |
57 | ### Quick Setup
58 |
59 | 1. Clone the repository:
60 |
61 | ```bash
62 |
63 | git clone https://github.com/Bhavye2003Developer/remotely.git
64 |
65 | ```
66 |
67 | 2. Change to the Project Directory
68 |
69 | ```bash
70 |
71 | cd remotely
72 |
73 | ```
74 |
75 | 3. Run the script
76 |
77 | ```bash
78 | ./setup.sh
79 | ```
80 |
81 | This script will automatically install all dependencies required for the project.
82 |
83 | ### Launch the Application
84 |
85 | - After successfully running the setup script, follow the instructions displayed in the terminal to access the application.
86 | - Typically, you will need to visit the IP address shown on the terminal from your mobile device to begin using Desktop Remote.
87 |
88 | ## License
89 |
90 | This project is licensed under the MIT License - see the LICENSE file for details.
91 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Supported Versions
4 |
5 | The following versions of the Remotely project are currently being supported with security updates:
6 |
7 | | Version | Supported |
8 | | ------- | ------------------ |
9 | | 1.2.x | :white_check_mark: |
10 | | 1.1.x | :white_check_mark: |
11 | | 1.0.x | :x: |
12 | | < 1.0 | :x: |
13 |
14 | ## Reporting a Vulnerability
15 |
16 | If you discover a vulnerability in the Remotely project, please follow these steps to report it:
17 |
18 | 1. **Email the vulnerability details to:** [bhavyedevelopment2003@gmail.com](mailto:bhavyedevelopment2003@gmail.com).
19 | 2. **Include the following information:**
20 | - A detailed description of the vulnerability.
21 | - Steps to reproduce the vulnerability.
22 | - Any potential impacts of the vulnerability.
23 | - Any possible fixes you may have.
24 |
25 | You can expect an update on your reported vulnerability within 72 hours of submission.
26 |
27 | ### What to Expect After Reporting
28 |
29 | - **Acknowledgement:** We will acknowledge receipt of your report within 24 hours.
30 | - **Investigation:** We will investigate the vulnerability and verify its validity.
31 | - **Fixing the Issue:** If the vulnerability is confirmed, we will work on a fix and update you on the progress.
32 | - **Update:** We will provide regular updates (at least once a week) on the status of the fix.
33 | - **Resolution:** Once the vulnerability is fixed, we will notify you and give you credit for the discovery, if desired.
34 |
35 | Thank you for helping to keep Remotely secure!
36 |
--------------------------------------------------------------------------------
/client/.eslintrc.cjs:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | env: { browser: true, es2020: true },
4 | extends: [
5 | 'eslint:recommended',
6 | 'plugin:react/recommended',
7 | 'plugin:react/jsx-runtime',
8 | 'plugin:react-hooks/recommended',
9 | ],
10 | ignorePatterns: ['dist', '.eslintrc.cjs'],
11 | parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
12 | settings: { react: { version: '18.2' } },
13 | plugins: ['react-refresh'],
14 | rules: {
15 | 'react/jsx-no-target-blank': 'off',
16 | 'react-refresh/only-export-components': [
17 | 'warn',
18 | { allowConstantExport: true },
19 | ],
20 | },
21 | }
22 |
--------------------------------------------------------------------------------
/client/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bhavye2003Developer/remotely/a1583ef32ed279848f3b8d119d97bccf71af1064/client/favicon.ico
--------------------------------------------------------------------------------
/client/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
10 | Remotely
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/client/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "client",
3 | "private": true,
4 | "version": "0.0.0",
5 | "type": "module",
6 | "scripts": {
7 | "dev": "vite",
8 | "build": "vite build",
9 | "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
10 | "preview": "vite preview"
11 | },
12 | "dependencies": {
13 | "axios": "^1.7.2",
14 | "react": "^18.2.0",
15 | "react-device-detect": "^2.2.3",
16 | "react-dom": "^18.2.0",
17 | "react-router-dom": "^6.23.1",
18 | "react-toastify": "^10.0.5",
19 | "vite-plugin-svgr": "^4.2.0"
20 | },
21 | "devDependencies": {
22 | "@types/react": "^18.2.66",
23 | "@types/react-dom": "^18.2.22",
24 | "@vitejs/plugin-react": "^4.2.1",
25 | "autoprefixer": "^10.4.19",
26 | "eslint": "^8.57.0",
27 | "eslint-plugin-react": "^7.34.1",
28 | "eslint-plugin-react-hooks": "^4.6.0",
29 | "eslint-plugin-react-refresh": "^0.4.6",
30 | "postcss": "^8.4.38",
31 | "tailwindcss": "^3.4.4",
32 | "vite": "^5.2.0"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/client/postcss.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | plugins: {
3 | tailwindcss: {},
4 | autoprefixer: {},
5 | },
6 | }
7 |
--------------------------------------------------------------------------------
/client/src/App.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Bhavye2003Developer/remotely/a1583ef32ed279848f3b8d119d97bccf71af1064/client/src/App.css
--------------------------------------------------------------------------------
/client/src/App.jsx:
--------------------------------------------------------------------------------
1 | import "./App.css";
2 | import Home from "./components/Home";
3 |
4 | const App = () => {
5 | return (
6 |
7 |
8 |
9 | );
10 | };
11 |
12 | export default App;
13 |
--------------------------------------------------------------------------------
/client/src/assets/exit-fullscreen-symbol.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/client/src/assets/fullscreen-symbol.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/client/src/assets/keyboard-symbol.svg:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
8 |
10 |
12 |
14 |
16 |
18 |
21 |
23 |
25 |
27 |
29 |
31 |
33 |
35 |
37 |
39 |
41 |
43 |
45 |
47 |
49 |
51 |
53 |
55 |
57 |
59 |
61 |
63 |
65 |
67 |
69 |
71 |
73 |
75 |
77 |
79 |
81 |
--------------------------------------------------------------------------------
/client/src/components/Browser/BrowserHome.jsx:
--------------------------------------------------------------------------------
1 | import FileTransferer from "./FileTransferer";
2 | import { createBrowserRouter, RouterProvider } from "react-router-dom";
3 |
4 | const router = createBrowserRouter([
5 | {
6 | path: "/send-file",
7 | element: ,
8 | },
9 | ]);
10 |
11 | const BrowserHome = () => {
12 | return ;
13 | };
14 |
15 | export default BrowserHome;
16 |
--------------------------------------------------------------------------------
/client/src/components/Browser/FileTransferer.jsx:
--------------------------------------------------------------------------------
1 | import { useEffect, useState } from "react";
2 | import WebRTC_setter from "../../utils/webRTC_setter";
3 |
4 | const FileTransfer = () => {
5 | const [fileToTransfer, setFileToTransfer] = useState(null);
6 | const [message, setMessage] = useState({});
7 | const [isUploading, setIsUploading] = useState(false);
8 | const [isRemoteDataChannelConnected, setIsRemoteDataChannelConnected] =
9 | useState(false);
10 |
11 | const [webrtc_setter, setWebRTC_setter] = useState(null);
12 |
13 | useEffect(() => {
14 | const socket = new WebSocket("ws://192.168.1.35:3000/reach-signal-server");
15 | socket.onopen = () => {
16 | console.log("connected to ws server");
17 | };
18 |
19 | const webRTC_setter = new WebRTC_setter(socket);
20 |
21 | // sender
22 | webRTC_setter.sendAndReceive_sender(
23 | (signal) => {
24 | console.log("signal: ", signal);
25 | setIsRemoteDataChannelConnected(signal);
26 | },
27 | (signal) => setIsUploading(signal)
28 | );
29 |
30 | setWebRTC_setter(webRTC_setter);
31 |
32 | return () => {
33 | console.log("closing ws connection...");
34 | socket.close();
35 | webRTC_setter.closeChannels();
36 | };
37 | }, []);
38 |
39 | const handleUpload = () => {
40 | if (fileToTransfer && fileToTransfer.length > 0) {
41 | console.log("files to send: ", fileToTransfer[0]);
42 | webrtc_setter.sendFile(fileToTransfer[0], (signal) =>
43 | setIsUploading(signal)
44 | );
45 | } else {
46 | setMessage({ status: -1, msg: "No file uploaded" });
47 | }
48 | };
49 |
50 | return (
51 |
52 |
53 | File Transfer
54 |
61 | {isRemoteDataChannelConnected ? "Connected" : "Disconnected"}
62 |
63 |
64 |
65 |
66 |
67 | setFileToTransfer(e.target.files)}
71 | disabled={!isRemoteDataChannelConnected || isUploading}
72 | />
73 |
74 | Choose files
75 |
76 |
77 |
78 |
79 | {fileToTransfer && fileToTransfer.length > 0 && (
80 |
81 | {fileToTransfer[0].name} selected
82 |
83 | )}
84 |
85 |
86 |
94 | Upload
95 |
96 | {isUploading ? (
97 |
98 |
Uploading
99 |
104 |
105 | ) : (
106 | message?.msg && (
107 |
118 | {message.msg}
119 |
120 | )
121 | )}
122 |
123 |
124 | );
125 | };
126 |
127 | export default FileTransfer;
128 |
--------------------------------------------------------------------------------
/client/src/components/Browser/Header.jsx:
--------------------------------------------------------------------------------
1 | const BrowserHeader = () => {
2 | return (
3 |
4 |
5 |
Menu
6 | Desktop Remote
7 |
8 |
9 | );
10 | };
11 |
12 | export default BrowserHeader;
13 |
--------------------------------------------------------------------------------
/client/src/components/Home.jsx:
--------------------------------------------------------------------------------
1 | import { BrowserView, MobileView } from "react-device-detect";
2 | import MobileHome from "./Mobile/MobileHome";
3 | import BrowserHome from "./Browser/BrowserHome";
4 |
5 | const Home = () => {
6 | return (
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | );
16 | };
17 |
18 | export default Home;
19 |
--------------------------------------------------------------------------------
/client/src/components/Mobile/FileReceiver.jsx:
--------------------------------------------------------------------------------
1 | import { useEffect, useRef, useState } from "react";
2 | import WebRTC_setter from "../../utils/webRTC_setter";
3 | import { ToastContainer, toast } from "react-toastify";
4 | import "react-toastify/dist/ReactToastify.css";
5 | import { useOutletContext } from "react-router-dom";
6 | import { SIGNAL_SERVER_URL } from "../../utils/config";
7 |
8 | const FileReceiver = () => {
9 | const [isConnectedToLocal, setIsConnectedToLocal] = useState(false);
10 | const [fileMetaData, setFileMetaData] = useState(null);
11 | const fileDownloadRef = useRef(null);
12 |
13 | const setRelativePath = useOutletContext();
14 | useEffect(() => {
15 | setRelativePath(location.pathname);
16 |
17 | const socket = new WebSocket(SIGNAL_SERVER_URL);
18 | socket.onopen = () => {
19 | console.log("Connected to WebSocket server");
20 | toast.success("Connected to WebSocket server");
21 | };
22 | socket.onclose = () => {
23 | console.log("WebSocket connection closed");
24 | toast.error("WebSocket connection closed");
25 | };
26 | socket.onerror = (error) => {
27 | console.error("WebSocket error:", error);
28 | toast.error("WebSocket error");
29 | };
30 |
31 | const webRTC_setter = new WebRTC_setter(socket);
32 |
33 | // Receiver setup
34 | webRTC_setter.receiveAndSend_receiver(setFileMetaData);
35 | webRTC_setter.receiveFile(
36 | (signal) => setIsConnectedToLocal(signal),
37 | fileDownloadRef.current
38 | );
39 |
40 | return () => {
41 | console.log("Closing WebSocket connection...");
42 | socket.close();
43 | webRTC_setter.closeChannels();
44 | };
45 | }, []);
46 |
47 | useEffect(() => {
48 | console.log(fileMetaData);
49 | if (fileMetaData) {
50 | toast.info(`Received file: ${fileMetaData.fileName}`);
51 | }
52 | }, [fileMetaData]);
53 |
54 | return (
55 |
56 |
57 |
File Receiver
58 |
65 | {isConnectedToLocal ? "Connected" : "Disconnected"}
66 |
67 |
68 |
69 | Note: Supports only files up to 80MB.
70 |
71 |
72 | {isConnectedToLocal
73 | ? "Ready to receive files. If not receiving, ensure the sender is active."
74 | : "Please open 'http://localhost:5173/send-file' on your desktop to start sending files."}
75 |
76 |
77 |
78 |
79 |
80 | );
81 | };
82 |
83 | export default FileReceiver;
84 |
--------------------------------------------------------------------------------
/client/src/components/Mobile/FileTransferer.jsx:
--------------------------------------------------------------------------------
1 | import { useEffect, useState } from "react";
2 | import file_transfer from "../../utils/file_transfer";
3 | import { useOutletContext } from "react-router-dom";
4 |
5 | const FileTransfer = () => {
6 | const [filesToTransfer, setFilesToTransfer] = useState(null);
7 | const [message, setMessage] = useState({});
8 | const [isUploading, setIsUploading] = useState(false);
9 | const [downloadPath, setDownloadPath] = useState("");
10 |
11 | const setRelativePath = useOutletContext();
12 | useEffect(() => {
13 | setRelativePath(location.pathname);
14 | }, [setRelativePath]);
15 |
16 | const handleUpload = () => {
17 | if (filesToTransfer && filesToTransfer.length > 0) {
18 | setIsUploading(true);
19 | file_transfer(filesToTransfer).then((res) => {
20 | setIsUploading(false);
21 | setMessage({ status: res.data.status, msg: res.data.msg });
22 | setDownloadPath(res.data.downloadPath);
23 | });
24 | } else {
25 | setMessage({ status: -1, msg: "No file uploaded" });
26 | }
27 | };
28 |
29 | return (
30 |
31 |
File Transfer
32 |
33 |
34 | setFilesToTransfer(e.target.files)}
39 | />
40 |
41 | Choose files
42 |
43 |
44 |
45 |
46 | {filesToTransfer && filesToTransfer.length > 0 && (
47 |
48 | {filesToTransfer.length} file{filesToTransfer.length > 1 ? "s" : ""}{" "}
49 | selected
50 |
51 | )}
52 |
53 |
54 |
61 | Upload
62 |
63 | {isUploading ? (
64 |
72 | ) : (
73 | message?.msg && (
74 |
75 |
86 | {message.msg}
87 |
88 | {downloadPath && (
89 |
90 | File downloaded to:{" "}
91 | {downloadPath}
92 |
93 | )}
94 |
95 | )
96 | )}
97 |
98 |
99 | );
100 | };
101 |
102 | export default FileTransfer;
103 |
--------------------------------------------------------------------------------
/client/src/components/Mobile/FullScreen.jsx:
--------------------------------------------------------------------------------
1 | import { useState } from "react";
2 | import FullscreenSymbol from "../../assets/fullscreen-symbol.svg?react";
3 | import ExitFullscreenSymbol from "../../assets/exit-fullscreen-symbol.svg?react";
4 |
5 | const FullScreen = () => {
6 | const [isFullScreen, setIsFullScreen] = useState(false);
7 |
8 | return (
9 |
10 |
{
12 | if (!isFullScreen) document.documentElement.requestFullscreen();
13 | else document.exitFullscreen();
14 | setIsFullScreen(!isFullScreen);
15 | }}
16 | >
17 |
18 | {isFullScreen ? : }
19 |
20 |
21 |
22 | );
23 | };
24 |
25 | export default FullScreen;
26 |
--------------------------------------------------------------------------------
/client/src/components/Mobile/Header.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { Link } from "react-router-dom";
3 | import FullScreen from "./FullScreen";
4 |
5 | const Header = ({ relativePath }) => {
6 | return (
7 |
8 |
9 |
14 |
18 |
25 |
31 |
32 |
33 |
34 |
35 |
Remotely
36 |
37 |
38 |
39 | );
40 | };
41 |
42 | export default Header;
43 |
--------------------------------------------------------------------------------
/client/src/components/Mobile/Keyboard.jsx:
--------------------------------------------------------------------------------
1 | import { useEffect, useRef, useState } from "react";
2 | import KeyboardSymbol from "../../assets/keyboard-symbol.svg?react";
3 |
4 | const Keyboard = ({ socket }) => {
5 | const [inputText, setInputText] = useState("");
6 | const [isInputFocused, setIsInputFocused] = useState(false);
7 | const inputRef = useRef(null);
8 |
9 | useEffect(() => {
10 | if (inputText)
11 | socket.send(
12 | JSON.stringify({
13 | type: "typing",
14 | data: inputText.slice(inputText.length - 1),
15 | })
16 | );
17 | setInputText("");
18 | }, [inputText]);
19 |
20 | return (
21 |
22 |
setInputText(e.target.value)}
28 | onKeyDown={(e) => {
29 | if (e.key == "Enter")
30 | socket.send(
31 | JSON.stringify({ type: "special_key_press", value: "enter" })
32 | );
33 | else if (e.key === "Backspace")
34 | socket.send(
35 | JSON.stringify({
36 | type: "special_key_press",
37 | value: "backspace",
38 | })
39 | );
40 | }}
41 | onBlurCapture={() => {
42 | setIsInputFocused(false);
43 | }}
44 | />
45 | {inputRef && (
46 |
47 | {
49 | if (!isInputFocused) {
50 | inputRef.current?.focus();
51 | setIsInputFocused(true);
52 | } else {
53 | inputRef.current?.blur();
54 | setIsInputFocused(false);
55 | }
56 | }}
57 | className="p-2"
58 | >
59 |
60 |
61 |
62 | )}
63 |
64 | );
65 | };
66 |
67 | export default Keyboard;
68 |
--------------------------------------------------------------------------------
/client/src/components/Mobile/MobileHome.jsx:
--------------------------------------------------------------------------------
1 | import React, { useEffect, useState } from "react";
2 | import {
3 | Link,
4 | Outlet,
5 | BrowserRouter as Router,
6 | Routes,
7 | Route,
8 | useOutletContext,
9 | } from "react-router-dom";
10 | import Touchpad from "./Touchpad";
11 | import FileTransferer from "./FileTransferer";
12 | import Header from "./Header";
13 | import FileReceiver from "./FileReceiver";
14 |
15 | const LocalHome = () => {
16 | const setRelativePath = useOutletContext();
17 | useEffect(() => {
18 | setRelativePath("/");
19 | }, []);
20 |
21 | return (
22 |
23 |
Welcome to Remotely
24 |
25 |
26 |
27 | Touchpad
28 |
29 |
30 |
31 |
32 | Send File to desktop
33 |
34 |
35 |
36 |
37 | Receive file from desktop
38 |
39 |
40 |
41 |
42 | );
43 | };
44 |
45 | const MobileHome = () => {
46 | const [relativePath, setRelativePath] = useState("/");
47 |
48 | return (
49 |
50 |
51 |
52 |
53 | );
54 | };
55 |
56 | const Home = () => (
57 |
58 |
59 | }>
60 | } />
61 | } />
62 | } />
63 | } />
64 |
65 |
66 |
67 | );
68 |
69 | export default Home;
70 |
--------------------------------------------------------------------------------
/client/src/components/Mobile/Touchpad.jsx:
--------------------------------------------------------------------------------
1 | import { useEffect, useState, useRef } from "react";
2 | import axios from "axios";
3 | import { getHypotenuse } from "../../utils/geo";
4 | import Keyboard from "./Keyboard";
5 | import { useOutletContext } from "react-router-dom";
6 | import {
7 | LEFT_CLICK_URL,
8 | RIGHT_CLICK_URL,
9 | TOUCHPAD_CLICK_URL,
10 | TOUCHPAD_URL,
11 | } from "../../utils/config";
12 |
13 | const Touchpad = () => {
14 | const [socket, setSocket] = useState(null);
15 | const [pointerCoordinates, setPointerCoordinates] = useState([-1, -1]);
16 | const [isClicked, setIsClicked] = useState(false);
17 | const [isButtonClicked, setIsButtonClicked] = useState(0); // -1 -> right, 0 -> none, 1 -> left
18 | const [padSize, setPadSize] = useState([0, 0]);
19 | const canvasCenterCoord = useRef([0, 0]);
20 | const canvasRef = useRef(null);
21 | const isFirstTouch = useRef(null);
22 | const setRelativePath = useOutletContext();
23 | useEffect(() => {
24 | setRelativePath(location.pathname);
25 |
26 | const socket = new WebSocket(TOUCHPAD_URL);
27 | socket.onopen = () => {
28 | console.log("Connected to WebSocket server");
29 | };
30 | setSocket(socket);
31 |
32 | return () => {
33 | console.log("Closing WebSocket connection...");
34 | socket.close();
35 | };
36 | }, []);
37 |
38 | useEffect(() => {
39 | if (pointerCoordinates[0] !== -1 && pointerCoordinates[1] !== -1) {
40 | console.log("Sending pointer coordinates:", pointerCoordinates);
41 | socket.send(
42 | JSON.stringify({
43 | pointerCoordinates,
44 | padSize,
45 | isFirstTouch: isFirstTouch.current,
46 | type: "move",
47 | })
48 | );
49 | isFirstTouch.current = 0;
50 | }
51 | }, [pointerCoordinates]);
52 |
53 | useEffect(() => {
54 | if (isClicked) {
55 | console.log("Sending click event");
56 | axios.post(TOUCHPAD_CLICK_URL, { clicked: true });
57 | setIsClicked(false);
58 | }
59 | }, [isClicked]);
60 |
61 | useEffect(() => {
62 | if (isButtonClicked === -1) {
63 | console.log("Sending right-click event");
64 | axios.post(RIGHT_CLICK_URL, {
65 | right_clicked: true,
66 | });
67 | } else if (isButtonClicked === 1) {
68 | console.log("Sending left-click event");
69 | axios.post(LEFT_CLICK_URL, {
70 | left_clicked: true,
71 | });
72 | }
73 | setIsButtonClicked(0);
74 | }, [isButtonClicked]);
75 |
76 | useEffect(() => {
77 | if (canvasRef.current) {
78 | const rect = canvasRef.current.getBoundingClientRect();
79 | const padWidth = canvasRef.current.offsetWidth;
80 | const padHeight = canvasRef.current.offsetHeight;
81 | canvasCenterCoord.current = [
82 | rect.right - padWidth / 2,
83 | rect.bottom - padHeight / 2,
84 | ];
85 | setPadSize([padWidth, padHeight]);
86 | }
87 | }, [canvasRef.current]);
88 |
89 | if (!socket) return Loading...
;
90 |
91 | return (
92 |
93 |
Touchpad
94 |
95 |
{
99 | const x2 = e.changedTouches[0].clientX;
100 | const y2 = e.changedTouches[0].clientY;
101 | const hypotenuse = getHypotenuse(x2, y2, canvasCenterCoord.current);
102 | setPointerCoordinates([x2, y2, hypotenuse]);
103 | }}
104 | onTouchStart={() => {
105 | isFirstTouch.current = 1;
106 | }}
107 | onClick={() => {
108 | setIsClicked(true);
109 | }}
110 | >
111 |
112 | setIsButtonClicked(1)}
114 | className="w-1/2 bg-blue-600 hover:bg-blue-700 rounded-l-lg mr-1 h-12 text-white transition-colors duration-300"
115 | >
116 | Left Click
117 |
118 | setIsButtonClicked(-1)}
120 | className="w-1/2 bg-blue-600 hover:bg-blue-700 rounded-r-lg h-12 text-white transition-colors duration-300"
121 | >
122 | Right Click
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 | );
131 | };
132 |
133 | export default Touchpad;
134 |
--------------------------------------------------------------------------------
/client/src/index.css:
--------------------------------------------------------------------------------
1 | @tailwind base;
2 | @tailwind components;
3 | @tailwind utilities;
4 |
--------------------------------------------------------------------------------
/client/src/main.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom/client";
3 | import App from "./App.jsx";
4 | import "./index.css";
5 |
6 | ReactDOM.createRoot(document.getElementById("root")).render( );
7 |
--------------------------------------------------------------------------------
/client/src/utils/config.js:
--------------------------------------------------------------------------------
1 | const PORT = 3000;
2 | const server_ip = `${location.hostname}:${PORT}`;
3 |
4 | export const TOUCHPAD_URL = `ws://${server_ip}/real-time`;
5 | export const TOUCHPAD_CLICK_URL = `http://${server_ip}/touchpad/click`;
6 | export const RIGHT_CLICK_URL = `http://${server_ip}/touchpad/right-click`;
7 | export const LEFT_CLICK_URL = `http://${server_ip}/touchpad/left-click`;
8 | export const FILE_UPLOAD_URL = `http://${server_ip}/upload`;
9 | export const SIGNAL_SERVER_URL = `ws://${server_ip}/reach-signal-server`;
10 |
--------------------------------------------------------------------------------
/client/src/utils/file_transfer.js:
--------------------------------------------------------------------------------
1 | import axios from "axios";
2 | import { FILE_UPLOAD_URL } from "./config";
3 |
4 | export default async (filesToTransfer, isMobile = true) => {
5 | console.log(filesToTransfer);
6 | const formData = new FormData();
7 |
8 | console.log(filesToTransfer, typeof filesToTransfer);
9 | const fileIndexes = Object.keys(filesToTransfer);
10 | console.log(fileIndexes);
11 |
12 | fileIndexes.forEach((_, index) => {
13 | formData.append(`file_${index + 1}`, filesToTransfer[index]);
14 | });
15 |
16 | const result = await axios.post(isMobile ? FILE_UPLOAD_URL : "", formData, {
17 | headers: {
18 | "Content-Type": "multipart/form-data",
19 | },
20 | });
21 | return result;
22 | };
23 |
--------------------------------------------------------------------------------
/client/src/utils/geo.js:
--------------------------------------------------------------------------------
1 | const getHypotenuse = (x1, y1, canvasCenterCoord) => {
2 | console.log("in geo: ", canvasCenterCoord);
3 | return Math.sqrt(
4 | Math.pow(x1 - canvasCenterCoord[0], 2) +
5 | Math.pow(y1 - canvasCenterCoord[1], 2)
6 | );
7 | };
8 |
9 | export { getHypotenuse };
10 |
--------------------------------------------------------------------------------
/client/src/utils/webRTC_setter.js:
--------------------------------------------------------------------------------
1 | import { toast } from "react-toastify";
2 |
3 | class WebRTC_setter {
4 | constructor(socket) {
5 | this.socket = socket;
6 | this.senderDataChannel = null;
7 | this.receiverPeerConnection = null;
8 | this.receiveBuffer = [];
9 | this.receivedSize = 0;
10 | this.fileMetaData = null;
11 | }
12 |
13 | async sendAndReceive_sender(setIsRemoteDataChannelConnected, setIsUploading) {
14 | const peerConnection = new RTCPeerConnection();
15 |
16 | // Create a data channel for sending files
17 | const dataChannel = peerConnection.createDataChannel("files-data");
18 | this.senderDataChannel = dataChannel;
19 |
20 | // Event handlers for data channel state changes
21 | dataChannel.onopen = () => setIsRemoteDataChannelConnected(true);
22 | dataChannel.onclose = () => setIsRemoteDataChannelConnected(false);
23 |
24 | // WebSocket message handling
25 | this.socket.onmessage = async (message) => {
26 | try {
27 | const msg = JSON.parse(message.data);
28 | if (msg.answer) {
29 | const remoteDesc = new RTCSessionDescription(msg.answer);
30 | await peerConnection.setRemoteDescription(remoteDesc);
31 | console.log("SDP exchange successful");
32 | } else if (msg.candidate) {
33 | await peerConnection.addIceCandidate(
34 | new RTCIceCandidate(msg.candidate)
35 | );
36 | console.log("ICE candidate exchange completed");
37 | } else if (msg.fileStatus) {
38 | setIsUploading(false);
39 | }
40 | } catch (error) {
41 | console.error("Error handling WebSocket message:", error);
42 | }
43 | };
44 |
45 | // ICE candidate handling
46 | peerConnection.onicecandidate = async (event) => {
47 | if (event.candidate) {
48 | await this.socket.send(JSON.stringify({ candidate: event.candidate }));
49 | }
50 | };
51 |
52 | // Create and send offer to initiate connection
53 | const offer = await peerConnection.createOffer();
54 | await peerConnection.setLocalDescription(offer);
55 | console.log("Offer sent:", offer);
56 | this.socket.send(JSON.stringify({ offer }));
57 | }
58 |
59 | sendFile(fileToTransfer, setIsUploading) {
60 | const file = fileToTransfer;
61 |
62 | // Send file metadata
63 | const fileInfo = {
64 | name: file.name,
65 | size: file.size,
66 | type: file.type,
67 | lastModified: file.lastModified,
68 | };
69 | this.socket.send(JSON.stringify(fileInfo));
70 | setIsUploading(true);
71 |
72 | // Function to read and send file slices
73 | const chunkSize = 16384; // 16KB
74 | const fileReader = new FileReader();
75 | let offset = 0;
76 |
77 | fileReader.addEventListener("error", (error) =>
78 | console.error("Error reading file:", error)
79 | );
80 | fileReader.addEventListener("abort", (event) =>
81 | console.log("File reading aborted:", event)
82 | );
83 | fileReader.addEventListener("load", (event) => {
84 | console.log("FileRead.onload ", event);
85 | this.senderDataChannel.send(event.target.result);
86 | offset += event.target.result.byteLength;
87 | if (offset < file.size) {
88 | readSlice(offset);
89 | }
90 | });
91 |
92 | const readSlice = (o) => {
93 | const slice = file.slice(o, o + chunkSize);
94 | fileReader.readAsArrayBuffer(slice);
95 | };
96 |
97 | readSlice(0);
98 | }
99 |
100 | async receiveAndSend_receiver(setFileMetaData) {
101 | const peerConnection = new RTCPeerConnection();
102 | this.receiverPeerConnection = peerConnection;
103 |
104 | // WebSocket message handling for receiver
105 | this.socket.onmessage = async (message) => {
106 | try {
107 | const msg = JSON.parse(message.data);
108 | if (msg.offer) {
109 | await peerConnection.setRemoteDescription(
110 | new RTCSessionDescription(msg.offer)
111 | );
112 | const answer = await peerConnection.createAnswer();
113 | await peerConnection.setLocalDescription(answer);
114 | console.log("Answer created and sent:", answer);
115 | this.socket.send(JSON.stringify({ answer }));
116 | } else if (msg.candidate) {
117 | await peerConnection.addIceCandidate(
118 | new RTCIceCandidate(msg.candidate)
119 | );
120 | console.log("ICE candidate received and added");
121 | } else if (msg.name && msg.size && msg.type && msg.lastModified) {
122 | await setFileMetaData(msg);
123 | this.fileMetaData = msg;
124 | }
125 | } catch (error) {
126 | console.error("Error handling WebSocket message:", error);
127 | }
128 | };
129 |
130 | // ICE candidate handling
131 | peerConnection.onicecandidate = (event) => {
132 | if (event.candidate) {
133 | this.socket.send(JSON.stringify({ candidate: event.candidate }));
134 | }
135 | };
136 | }
137 |
138 | receiveFile(setIsConnectedToLocal, fileDownloadRef) {
139 | this.receiverPeerConnection.ondatachannel = (event) => {
140 | const receiveChannel = event.channel;
141 |
142 | // Event handlers for data channel state changes
143 | receiveChannel.onopen = () => setIsConnectedToLocal(true);
144 | receiveChannel.onclose = () => setIsConnectedToLocal(false);
145 |
146 | // Event handler for receiving file data
147 | receiveChannel.onmessage = (event) => {
148 | this.receiveBuffer.push(event.data);
149 | this.receivedSize += event.data.byteLength;
150 |
151 | // Check if file transfer is complete
152 | if (this.receivedSize === this.fileMetaData.size) {
153 | const received = new Blob(this.receiveBuffer);
154 | const fileAccessLink = URL.createObjectURL(received);
155 |
156 | // Prepare download link
157 | fileDownloadRef.href = fileAccessLink;
158 | fileDownloadRef.download = this.fileMetaData.name;
159 | fileDownloadRef.textContent = `Click to download '${this.fileMetaData.name}' (${this.fileMetaData.size} bytes)`;
160 |
161 | toast.success("File received successfully");
162 | this.resetTransference();
163 | }
164 | };
165 | };
166 | }
167 |
168 | resetTransference() {
169 | // Reset variables after file transfer completion
170 | this.receiveBuffer = [];
171 | this.receivedSize = 0;
172 | this.fileMetaData = null;
173 | }
174 |
175 | closeChannels() {
176 | // Close data channels when cleaning up
177 | if (this.senderDataChannel) {
178 | this.senderDataChannel.close();
179 | this.senderDataChannel = null;
180 | console.log("Sender data channel closed");
181 | }
182 |
183 | if (this.receiverPeerConnection) {
184 | this.receiverPeerConnection.close();
185 | this.receiverPeerConnection = null;
186 | console.log("Receiver peer connection closed");
187 | }
188 | }
189 | }
190 |
191 | export default WebRTC_setter;
192 |
--------------------------------------------------------------------------------
/client/tailwind.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('tailwindcss').Config} */
2 | export default {
3 | content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
4 | theme: {
5 | extend: {},
6 | },
7 | plugins: [],
8 | };
9 |
--------------------------------------------------------------------------------
/client/vite.config.js:
--------------------------------------------------------------------------------
1 | import { defineConfig } from "vite";
2 | import react from "@vitejs/plugin-react";
3 | import svgr from "vite-plugin-svgr";
4 |
5 | // https://vitejs.dev/config/
6 | export default defineConfig({
7 | plugins: [
8 | react(),
9 | svgr({
10 | svgrOptions: {},
11 | }),
12 | ],
13 | });
14 |
--------------------------------------------------------------------------------
/server/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "server",
3 | "version": "1.0.0",
4 | "lockfileVersion": 3,
5 | "requires": true,
6 | "packages": {
7 | "": {
8 | "name": "server",
9 | "version": "1.0.0",
10 | "license": "ISC",
11 | "dependencies": {
12 | "cors": "^2.8.5",
13 | "dotenv": "^16.4.5",
14 | "express": "^4.19.2",
15 | "express-ws": "^5.0.2",
16 | "formidable": "^3.5.1",
17 | "open": "^10.1.0",
18 | "robotjs": "^0.6.0",
19 | "ws": "^8.17.0"
20 | }
21 | },
22 | "node_modules/accepts": {
23 | "version": "1.3.8",
24 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
25 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
26 | "license": "MIT",
27 | "dependencies": {
28 | "mime-types": "~2.1.34",
29 | "negotiator": "0.6.3"
30 | },
31 | "engines": {
32 | "node": ">= 0.6"
33 | }
34 | },
35 | "node_modules/ansi-regex": {
36 | "version": "2.1.1",
37 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
38 | "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
39 | "license": "MIT",
40 | "engines": {
41 | "node": ">=0.10.0"
42 | }
43 | },
44 | "node_modules/aproba": {
45 | "version": "1.2.0",
46 | "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
47 | "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
48 | "license": "ISC"
49 | },
50 | "node_modules/are-we-there-yet": {
51 | "version": "1.1.7",
52 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz",
53 | "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==",
54 | "deprecated": "This package is no longer supported.",
55 | "license": "ISC",
56 | "dependencies": {
57 | "delegates": "^1.0.0",
58 | "readable-stream": "^2.0.6"
59 | }
60 | },
61 | "node_modules/array-flatten": {
62 | "version": "1.1.1",
63 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
64 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
65 | "license": "MIT"
66 | },
67 | "node_modules/asap": {
68 | "version": "2.0.6",
69 | "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz",
70 | "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==",
71 | "license": "MIT"
72 | },
73 | "node_modules/base64-js": {
74 | "version": "1.5.1",
75 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
76 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
77 | "funding": [
78 | {
79 | "type": "github",
80 | "url": "https://github.com/sponsors/feross"
81 | },
82 | {
83 | "type": "patreon",
84 | "url": "https://www.patreon.com/feross"
85 | },
86 | {
87 | "type": "consulting",
88 | "url": "https://feross.org/support"
89 | }
90 | ],
91 | "license": "MIT"
92 | },
93 | "node_modules/bl": {
94 | "version": "4.1.0",
95 | "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
96 | "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
97 | "license": "MIT",
98 | "dependencies": {
99 | "buffer": "^5.5.0",
100 | "inherits": "^2.0.4",
101 | "readable-stream": "^3.4.0"
102 | }
103 | },
104 | "node_modules/bl/node_modules/readable-stream": {
105 | "version": "3.6.2",
106 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
107 | "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
108 | "license": "MIT",
109 | "dependencies": {
110 | "inherits": "^2.0.3",
111 | "string_decoder": "^1.1.1",
112 | "util-deprecate": "^1.0.1"
113 | },
114 | "engines": {
115 | "node": ">= 6"
116 | }
117 | },
118 | "node_modules/body-parser": {
119 | "version": "1.20.2",
120 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz",
121 | "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==",
122 | "license": "MIT",
123 | "dependencies": {
124 | "bytes": "3.1.2",
125 | "content-type": "~1.0.5",
126 | "debug": "2.6.9",
127 | "depd": "2.0.0",
128 | "destroy": "1.2.0",
129 | "http-errors": "2.0.0",
130 | "iconv-lite": "0.4.24",
131 | "on-finished": "2.4.1",
132 | "qs": "6.11.0",
133 | "raw-body": "2.5.2",
134 | "type-is": "~1.6.18",
135 | "unpipe": "1.0.0"
136 | },
137 | "engines": {
138 | "node": ">= 0.8",
139 | "npm": "1.2.8000 || >= 1.4.16"
140 | }
141 | },
142 | "node_modules/buffer": {
143 | "version": "5.7.1",
144 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
145 | "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
146 | "funding": [
147 | {
148 | "type": "github",
149 | "url": "https://github.com/sponsors/feross"
150 | },
151 | {
152 | "type": "patreon",
153 | "url": "https://www.patreon.com/feross"
154 | },
155 | {
156 | "type": "consulting",
157 | "url": "https://feross.org/support"
158 | }
159 | ],
160 | "license": "MIT",
161 | "dependencies": {
162 | "base64-js": "^1.3.1",
163 | "ieee754": "^1.1.13"
164 | }
165 | },
166 | "node_modules/bundle-name": {
167 | "version": "4.1.0",
168 | "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz",
169 | "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==",
170 | "license": "MIT",
171 | "dependencies": {
172 | "run-applescript": "^7.0.0"
173 | },
174 | "engines": {
175 | "node": ">=18"
176 | },
177 | "funding": {
178 | "url": "https://github.com/sponsors/sindresorhus"
179 | }
180 | },
181 | "node_modules/bytes": {
182 | "version": "3.1.2",
183 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
184 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
185 | "license": "MIT",
186 | "engines": {
187 | "node": ">= 0.8"
188 | }
189 | },
190 | "node_modules/call-bind": {
191 | "version": "1.0.7",
192 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
193 | "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
194 | "license": "MIT",
195 | "dependencies": {
196 | "es-define-property": "^1.0.0",
197 | "es-errors": "^1.3.0",
198 | "function-bind": "^1.1.2",
199 | "get-intrinsic": "^1.2.4",
200 | "set-function-length": "^1.2.1"
201 | },
202 | "engines": {
203 | "node": ">= 0.4"
204 | },
205 | "funding": {
206 | "url": "https://github.com/sponsors/ljharb"
207 | }
208 | },
209 | "node_modules/chownr": {
210 | "version": "1.1.4",
211 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
212 | "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
213 | "license": "ISC"
214 | },
215 | "node_modules/code-point-at": {
216 | "version": "1.1.0",
217 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
218 | "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==",
219 | "license": "MIT",
220 | "engines": {
221 | "node": ">=0.10.0"
222 | }
223 | },
224 | "node_modules/console-control-strings": {
225 | "version": "1.1.0",
226 | "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
227 | "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",
228 | "license": "ISC"
229 | },
230 | "node_modules/content-disposition": {
231 | "version": "0.5.4",
232 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
233 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
234 | "license": "MIT",
235 | "dependencies": {
236 | "safe-buffer": "5.2.1"
237 | },
238 | "engines": {
239 | "node": ">= 0.6"
240 | }
241 | },
242 | "node_modules/content-type": {
243 | "version": "1.0.5",
244 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
245 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
246 | "license": "MIT",
247 | "engines": {
248 | "node": ">= 0.6"
249 | }
250 | },
251 | "node_modules/cookie": {
252 | "version": "0.6.0",
253 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",
254 | "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==",
255 | "license": "MIT",
256 | "engines": {
257 | "node": ">= 0.6"
258 | }
259 | },
260 | "node_modules/cookie-signature": {
261 | "version": "1.0.6",
262 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
263 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
264 | "license": "MIT"
265 | },
266 | "node_modules/core-util-is": {
267 | "version": "1.0.3",
268 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
269 | "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
270 | "license": "MIT"
271 | },
272 | "node_modules/cors": {
273 | "version": "2.8.5",
274 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
275 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
276 | "license": "MIT",
277 | "dependencies": {
278 | "object-assign": "^4",
279 | "vary": "^1"
280 | },
281 | "engines": {
282 | "node": ">= 0.10"
283 | }
284 | },
285 | "node_modules/debug": {
286 | "version": "2.6.9",
287 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
288 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
289 | "license": "MIT",
290 | "dependencies": {
291 | "ms": "2.0.0"
292 | }
293 | },
294 | "node_modules/decompress-response": {
295 | "version": "4.2.1",
296 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz",
297 | "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==",
298 | "license": "MIT",
299 | "dependencies": {
300 | "mimic-response": "^2.0.0"
301 | },
302 | "engines": {
303 | "node": ">=8"
304 | }
305 | },
306 | "node_modules/deep-extend": {
307 | "version": "0.6.0",
308 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
309 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
310 | "license": "MIT",
311 | "engines": {
312 | "node": ">=4.0.0"
313 | }
314 | },
315 | "node_modules/default-browser": {
316 | "version": "5.2.1",
317 | "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.2.1.tgz",
318 | "integrity": "sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==",
319 | "license": "MIT",
320 | "dependencies": {
321 | "bundle-name": "^4.1.0",
322 | "default-browser-id": "^5.0.0"
323 | },
324 | "engines": {
325 | "node": ">=18"
326 | },
327 | "funding": {
328 | "url": "https://github.com/sponsors/sindresorhus"
329 | }
330 | },
331 | "node_modules/default-browser-id": {
332 | "version": "5.0.0",
333 | "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.0.tgz",
334 | "integrity": "sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==",
335 | "license": "MIT",
336 | "engines": {
337 | "node": ">=18"
338 | },
339 | "funding": {
340 | "url": "https://github.com/sponsors/sindresorhus"
341 | }
342 | },
343 | "node_modules/define-data-property": {
344 | "version": "1.1.4",
345 | "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
346 | "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
347 | "license": "MIT",
348 | "dependencies": {
349 | "es-define-property": "^1.0.0",
350 | "es-errors": "^1.3.0",
351 | "gopd": "^1.0.1"
352 | },
353 | "engines": {
354 | "node": ">= 0.4"
355 | },
356 | "funding": {
357 | "url": "https://github.com/sponsors/ljharb"
358 | }
359 | },
360 | "node_modules/define-lazy-prop": {
361 | "version": "3.0.0",
362 | "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz",
363 | "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==",
364 | "license": "MIT",
365 | "engines": {
366 | "node": ">=12"
367 | },
368 | "funding": {
369 | "url": "https://github.com/sponsors/sindresorhus"
370 | }
371 | },
372 | "node_modules/delegates": {
373 | "version": "1.0.0",
374 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
375 | "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",
376 | "license": "MIT"
377 | },
378 | "node_modules/depd": {
379 | "version": "2.0.0",
380 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
381 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
382 | "license": "MIT",
383 | "engines": {
384 | "node": ">= 0.8"
385 | }
386 | },
387 | "node_modules/destroy": {
388 | "version": "1.2.0",
389 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
390 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
391 | "license": "MIT",
392 | "engines": {
393 | "node": ">= 0.8",
394 | "npm": "1.2.8000 || >= 1.4.16"
395 | }
396 | },
397 | "node_modules/detect-libc": {
398 | "version": "1.0.3",
399 | "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz",
400 | "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==",
401 | "license": "Apache-2.0",
402 | "bin": {
403 | "detect-libc": "bin/detect-libc.js"
404 | },
405 | "engines": {
406 | "node": ">=0.10"
407 | }
408 | },
409 | "node_modules/dezalgo": {
410 | "version": "1.0.4",
411 | "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz",
412 | "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==",
413 | "license": "ISC",
414 | "dependencies": {
415 | "asap": "^2.0.0",
416 | "wrappy": "1"
417 | }
418 | },
419 | "node_modules/dotenv": {
420 | "version": "16.4.5",
421 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",
422 | "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==",
423 | "license": "BSD-2-Clause",
424 | "engines": {
425 | "node": ">=12"
426 | },
427 | "funding": {
428 | "url": "https://dotenvx.com"
429 | }
430 | },
431 | "node_modules/ee-first": {
432 | "version": "1.1.1",
433 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
434 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
435 | "license": "MIT"
436 | },
437 | "node_modules/encodeurl": {
438 | "version": "1.0.2",
439 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
440 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
441 | "license": "MIT",
442 | "engines": {
443 | "node": ">= 0.8"
444 | }
445 | },
446 | "node_modules/end-of-stream": {
447 | "version": "1.4.4",
448 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
449 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
450 | "license": "MIT",
451 | "dependencies": {
452 | "once": "^1.4.0"
453 | }
454 | },
455 | "node_modules/es-define-property": {
456 | "version": "1.0.0",
457 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
458 | "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
459 | "license": "MIT",
460 | "dependencies": {
461 | "get-intrinsic": "^1.2.4"
462 | },
463 | "engines": {
464 | "node": ">= 0.4"
465 | }
466 | },
467 | "node_modules/es-errors": {
468 | "version": "1.3.0",
469 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
470 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
471 | "license": "MIT",
472 | "engines": {
473 | "node": ">= 0.4"
474 | }
475 | },
476 | "node_modules/escape-html": {
477 | "version": "1.0.3",
478 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
479 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
480 | "license": "MIT"
481 | },
482 | "node_modules/etag": {
483 | "version": "1.8.1",
484 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
485 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
486 | "license": "MIT",
487 | "engines": {
488 | "node": ">= 0.6"
489 | }
490 | },
491 | "node_modules/expand-template": {
492 | "version": "2.0.3",
493 | "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
494 | "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
495 | "license": "(MIT OR WTFPL)",
496 | "engines": {
497 | "node": ">=6"
498 | }
499 | },
500 | "node_modules/express": {
501 | "version": "4.19.2",
502 | "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz",
503 | "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==",
504 | "license": "MIT",
505 | "dependencies": {
506 | "accepts": "~1.3.8",
507 | "array-flatten": "1.1.1",
508 | "body-parser": "1.20.2",
509 | "content-disposition": "0.5.4",
510 | "content-type": "~1.0.4",
511 | "cookie": "0.6.0",
512 | "cookie-signature": "1.0.6",
513 | "debug": "2.6.9",
514 | "depd": "2.0.0",
515 | "encodeurl": "~1.0.2",
516 | "escape-html": "~1.0.3",
517 | "etag": "~1.8.1",
518 | "finalhandler": "1.2.0",
519 | "fresh": "0.5.2",
520 | "http-errors": "2.0.0",
521 | "merge-descriptors": "1.0.1",
522 | "methods": "~1.1.2",
523 | "on-finished": "2.4.1",
524 | "parseurl": "~1.3.3",
525 | "path-to-regexp": "0.1.7",
526 | "proxy-addr": "~2.0.7",
527 | "qs": "6.11.0",
528 | "range-parser": "~1.2.1",
529 | "safe-buffer": "5.2.1",
530 | "send": "0.18.0",
531 | "serve-static": "1.15.0",
532 | "setprototypeof": "1.2.0",
533 | "statuses": "2.0.1",
534 | "type-is": "~1.6.18",
535 | "utils-merge": "1.0.1",
536 | "vary": "~1.1.2"
537 | },
538 | "engines": {
539 | "node": ">= 0.10.0"
540 | }
541 | },
542 | "node_modules/express-ws": {
543 | "version": "5.0.2",
544 | "resolved": "https://registry.npmjs.org/express-ws/-/express-ws-5.0.2.tgz",
545 | "integrity": "sha512-0uvmuk61O9HXgLhGl3QhNSEtRsQevtmbL94/eILaliEADZBHZOQUAiHFrGPrgsjikohyrmSG5g+sCfASTt0lkQ==",
546 | "license": "BSD-2-Clause",
547 | "dependencies": {
548 | "ws": "^7.4.6"
549 | },
550 | "engines": {
551 | "node": ">=4.5.0"
552 | },
553 | "peerDependencies": {
554 | "express": "^4.0.0 || ^5.0.0-alpha.1"
555 | }
556 | },
557 | "node_modules/express-ws/node_modules/ws": {
558 | "version": "7.5.9",
559 | "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
560 | "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
561 | "license": "MIT",
562 | "engines": {
563 | "node": ">=8.3.0"
564 | },
565 | "peerDependencies": {
566 | "bufferutil": "^4.0.1",
567 | "utf-8-validate": "^5.0.2"
568 | },
569 | "peerDependenciesMeta": {
570 | "bufferutil": {
571 | "optional": true
572 | },
573 | "utf-8-validate": {
574 | "optional": true
575 | }
576 | }
577 | },
578 | "node_modules/finalhandler": {
579 | "version": "1.2.0",
580 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",
581 | "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==",
582 | "license": "MIT",
583 | "dependencies": {
584 | "debug": "2.6.9",
585 | "encodeurl": "~1.0.2",
586 | "escape-html": "~1.0.3",
587 | "on-finished": "2.4.1",
588 | "parseurl": "~1.3.3",
589 | "statuses": "2.0.1",
590 | "unpipe": "~1.0.0"
591 | },
592 | "engines": {
593 | "node": ">= 0.8"
594 | }
595 | },
596 | "node_modules/formidable": {
597 | "version": "3.5.1",
598 | "resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.1.tgz",
599 | "integrity": "sha512-WJWKelbRHN41m5dumb0/k8TeAx7Id/y3a+Z7QfhxP/htI9Js5zYaEDtG8uMgG0vM0lOlqnmjE99/kfpOYi/0Og==",
600 | "license": "MIT",
601 | "dependencies": {
602 | "dezalgo": "^1.0.4",
603 | "hexoid": "^1.0.0",
604 | "once": "^1.4.0"
605 | },
606 | "funding": {
607 | "url": "https://ko-fi.com/tunnckoCore/commissions"
608 | }
609 | },
610 | "node_modules/forwarded": {
611 | "version": "0.2.0",
612 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
613 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
614 | "license": "MIT",
615 | "engines": {
616 | "node": ">= 0.6"
617 | }
618 | },
619 | "node_modules/fresh": {
620 | "version": "0.5.2",
621 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
622 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
623 | "license": "MIT",
624 | "engines": {
625 | "node": ">= 0.6"
626 | }
627 | },
628 | "node_modules/fs-constants": {
629 | "version": "1.0.0",
630 | "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
631 | "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
632 | "license": "MIT"
633 | },
634 | "node_modules/function-bind": {
635 | "version": "1.1.2",
636 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
637 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
638 | "license": "MIT",
639 | "funding": {
640 | "url": "https://github.com/sponsors/ljharb"
641 | }
642 | },
643 | "node_modules/gauge": {
644 | "version": "2.7.4",
645 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
646 | "integrity": "sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg==",
647 | "deprecated": "This package is no longer supported.",
648 | "license": "ISC",
649 | "dependencies": {
650 | "aproba": "^1.0.3",
651 | "console-control-strings": "^1.0.0",
652 | "has-unicode": "^2.0.0",
653 | "object-assign": "^4.1.0",
654 | "signal-exit": "^3.0.0",
655 | "string-width": "^1.0.1",
656 | "strip-ansi": "^3.0.1",
657 | "wide-align": "^1.1.0"
658 | }
659 | },
660 | "node_modules/get-intrinsic": {
661 | "version": "1.2.4",
662 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
663 | "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
664 | "license": "MIT",
665 | "dependencies": {
666 | "es-errors": "^1.3.0",
667 | "function-bind": "^1.1.2",
668 | "has-proto": "^1.0.1",
669 | "has-symbols": "^1.0.3",
670 | "hasown": "^2.0.0"
671 | },
672 | "engines": {
673 | "node": ">= 0.4"
674 | },
675 | "funding": {
676 | "url": "https://github.com/sponsors/ljharb"
677 | }
678 | },
679 | "node_modules/github-from-package": {
680 | "version": "0.0.0",
681 | "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
682 | "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",
683 | "license": "MIT"
684 | },
685 | "node_modules/gopd": {
686 | "version": "1.0.1",
687 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
688 | "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
689 | "license": "MIT",
690 | "dependencies": {
691 | "get-intrinsic": "^1.1.3"
692 | },
693 | "funding": {
694 | "url": "https://github.com/sponsors/ljharb"
695 | }
696 | },
697 | "node_modules/has-property-descriptors": {
698 | "version": "1.0.2",
699 | "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
700 | "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
701 | "license": "MIT",
702 | "dependencies": {
703 | "es-define-property": "^1.0.0"
704 | },
705 | "funding": {
706 | "url": "https://github.com/sponsors/ljharb"
707 | }
708 | },
709 | "node_modules/has-proto": {
710 | "version": "1.0.3",
711 | "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",
712 | "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",
713 | "license": "MIT",
714 | "engines": {
715 | "node": ">= 0.4"
716 | },
717 | "funding": {
718 | "url": "https://github.com/sponsors/ljharb"
719 | }
720 | },
721 | "node_modules/has-symbols": {
722 | "version": "1.0.3",
723 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
724 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
725 | "license": "MIT",
726 | "engines": {
727 | "node": ">= 0.4"
728 | },
729 | "funding": {
730 | "url": "https://github.com/sponsors/ljharb"
731 | }
732 | },
733 | "node_modules/has-unicode": {
734 | "version": "2.0.1",
735 | "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
736 | "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",
737 | "license": "ISC"
738 | },
739 | "node_modules/hasown": {
740 | "version": "2.0.2",
741 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
742 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
743 | "license": "MIT",
744 | "dependencies": {
745 | "function-bind": "^1.1.2"
746 | },
747 | "engines": {
748 | "node": ">= 0.4"
749 | }
750 | },
751 | "node_modules/hexoid": {
752 | "version": "1.0.0",
753 | "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz",
754 | "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==",
755 | "license": "MIT",
756 | "engines": {
757 | "node": ">=8"
758 | }
759 | },
760 | "node_modules/http-errors": {
761 | "version": "2.0.0",
762 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
763 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
764 | "license": "MIT",
765 | "dependencies": {
766 | "depd": "2.0.0",
767 | "inherits": "2.0.4",
768 | "setprototypeof": "1.2.0",
769 | "statuses": "2.0.1",
770 | "toidentifier": "1.0.1"
771 | },
772 | "engines": {
773 | "node": ">= 0.8"
774 | }
775 | },
776 | "node_modules/iconv-lite": {
777 | "version": "0.4.24",
778 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
779 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
780 | "license": "MIT",
781 | "dependencies": {
782 | "safer-buffer": ">= 2.1.2 < 3"
783 | },
784 | "engines": {
785 | "node": ">=0.10.0"
786 | }
787 | },
788 | "node_modules/ieee754": {
789 | "version": "1.2.1",
790 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
791 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
792 | "funding": [
793 | {
794 | "type": "github",
795 | "url": "https://github.com/sponsors/feross"
796 | },
797 | {
798 | "type": "patreon",
799 | "url": "https://www.patreon.com/feross"
800 | },
801 | {
802 | "type": "consulting",
803 | "url": "https://feross.org/support"
804 | }
805 | ],
806 | "license": "BSD-3-Clause"
807 | },
808 | "node_modules/inherits": {
809 | "version": "2.0.4",
810 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
811 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
812 | "license": "ISC"
813 | },
814 | "node_modules/ini": {
815 | "version": "1.3.8",
816 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
817 | "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
818 | "license": "ISC"
819 | },
820 | "node_modules/ipaddr.js": {
821 | "version": "1.9.1",
822 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
823 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
824 | "license": "MIT",
825 | "engines": {
826 | "node": ">= 0.10"
827 | }
828 | },
829 | "node_modules/is-docker": {
830 | "version": "3.0.0",
831 | "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",
832 | "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==",
833 | "license": "MIT",
834 | "bin": {
835 | "is-docker": "cli.js"
836 | },
837 | "engines": {
838 | "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
839 | },
840 | "funding": {
841 | "url": "https://github.com/sponsors/sindresorhus"
842 | }
843 | },
844 | "node_modules/is-fullwidth-code-point": {
845 | "version": "1.0.0",
846 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
847 | "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==",
848 | "license": "MIT",
849 | "dependencies": {
850 | "number-is-nan": "^1.0.0"
851 | },
852 | "engines": {
853 | "node": ">=0.10.0"
854 | }
855 | },
856 | "node_modules/is-inside-container": {
857 | "version": "1.0.0",
858 | "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz",
859 | "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==",
860 | "license": "MIT",
861 | "dependencies": {
862 | "is-docker": "^3.0.0"
863 | },
864 | "bin": {
865 | "is-inside-container": "cli.js"
866 | },
867 | "engines": {
868 | "node": ">=14.16"
869 | },
870 | "funding": {
871 | "url": "https://github.com/sponsors/sindresorhus"
872 | }
873 | },
874 | "node_modules/is-wsl": {
875 | "version": "3.1.0",
876 | "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz",
877 | "integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==",
878 | "license": "MIT",
879 | "dependencies": {
880 | "is-inside-container": "^1.0.0"
881 | },
882 | "engines": {
883 | "node": ">=16"
884 | },
885 | "funding": {
886 | "url": "https://github.com/sponsors/sindresorhus"
887 | }
888 | },
889 | "node_modules/isarray": {
890 | "version": "1.0.0",
891 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
892 | "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",
893 | "license": "MIT"
894 | },
895 | "node_modules/media-typer": {
896 | "version": "0.3.0",
897 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
898 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
899 | "license": "MIT",
900 | "engines": {
901 | "node": ">= 0.6"
902 | }
903 | },
904 | "node_modules/merge-descriptors": {
905 | "version": "1.0.1",
906 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
907 | "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==",
908 | "license": "MIT"
909 | },
910 | "node_modules/methods": {
911 | "version": "1.1.2",
912 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
913 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
914 | "license": "MIT",
915 | "engines": {
916 | "node": ">= 0.6"
917 | }
918 | },
919 | "node_modules/mime": {
920 | "version": "1.6.0",
921 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
922 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
923 | "license": "MIT",
924 | "bin": {
925 | "mime": "cli.js"
926 | },
927 | "engines": {
928 | "node": ">=4"
929 | }
930 | },
931 | "node_modules/mime-db": {
932 | "version": "1.52.0",
933 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
934 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
935 | "license": "MIT",
936 | "engines": {
937 | "node": ">= 0.6"
938 | }
939 | },
940 | "node_modules/mime-types": {
941 | "version": "2.1.35",
942 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
943 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
944 | "license": "MIT",
945 | "dependencies": {
946 | "mime-db": "1.52.0"
947 | },
948 | "engines": {
949 | "node": ">= 0.6"
950 | }
951 | },
952 | "node_modules/mimic-response": {
953 | "version": "2.1.0",
954 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz",
955 | "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==",
956 | "license": "MIT",
957 | "engines": {
958 | "node": ">=8"
959 | },
960 | "funding": {
961 | "url": "https://github.com/sponsors/sindresorhus"
962 | }
963 | },
964 | "node_modules/minimist": {
965 | "version": "1.2.8",
966 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
967 | "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
968 | "license": "MIT",
969 | "funding": {
970 | "url": "https://github.com/sponsors/ljharb"
971 | }
972 | },
973 | "node_modules/mkdirp-classic": {
974 | "version": "0.5.3",
975 | "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
976 | "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
977 | "license": "MIT"
978 | },
979 | "node_modules/ms": {
980 | "version": "2.0.0",
981 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
982 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
983 | "license": "MIT"
984 | },
985 | "node_modules/nan": {
986 | "version": "2.20.0",
987 | "resolved": "https://registry.npmjs.org/nan/-/nan-2.20.0.tgz",
988 | "integrity": "sha512-bk3gXBZDGILuuo/6sKtr0DQmSThYHLtNCdSdXk9YkxD/jK6X2vmCyyXBBxyqZ4XcnzTyYEAThfX3DCEnLf6igw==",
989 | "license": "MIT"
990 | },
991 | "node_modules/napi-build-utils": {
992 | "version": "1.0.2",
993 | "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz",
994 | "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==",
995 | "license": "MIT"
996 | },
997 | "node_modules/negotiator": {
998 | "version": "0.6.3",
999 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
1000 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
1001 | "license": "MIT",
1002 | "engines": {
1003 | "node": ">= 0.6"
1004 | }
1005 | },
1006 | "node_modules/node-abi": {
1007 | "version": "2.30.1",
1008 | "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.30.1.tgz",
1009 | "integrity": "sha512-/2D0wOQPgaUWzVSVgRMx+trKJRC2UG4SUc4oCJoXx9Uxjtp0Vy3/kt7zcbxHF8+Z/pK3UloLWzBISg72brfy1w==",
1010 | "license": "MIT",
1011 | "dependencies": {
1012 | "semver": "^5.4.1"
1013 | }
1014 | },
1015 | "node_modules/noop-logger": {
1016 | "version": "0.1.1",
1017 | "resolved": "https://registry.npmjs.org/noop-logger/-/noop-logger-0.1.1.tgz",
1018 | "integrity": "sha512-6kM8CLXvuW5crTxsAtva2YLrRrDaiTIkIePWs9moLHqbFWT94WpNFjwS/5dfLfECg5i/lkmw3aoqVidxt23TEQ==",
1019 | "license": "MIT"
1020 | },
1021 | "node_modules/npmlog": {
1022 | "version": "4.1.2",
1023 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
1024 | "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
1025 | "deprecated": "This package is no longer supported.",
1026 | "license": "ISC",
1027 | "dependencies": {
1028 | "are-we-there-yet": "~1.1.2",
1029 | "console-control-strings": "~1.1.0",
1030 | "gauge": "~2.7.3",
1031 | "set-blocking": "~2.0.0"
1032 | }
1033 | },
1034 | "node_modules/number-is-nan": {
1035 | "version": "1.0.1",
1036 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
1037 | "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==",
1038 | "license": "MIT",
1039 | "engines": {
1040 | "node": ">=0.10.0"
1041 | }
1042 | },
1043 | "node_modules/object-assign": {
1044 | "version": "4.1.1",
1045 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
1046 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
1047 | "license": "MIT",
1048 | "engines": {
1049 | "node": ">=0.10.0"
1050 | }
1051 | },
1052 | "node_modules/object-inspect": {
1053 | "version": "1.13.1",
1054 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",
1055 | "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==",
1056 | "license": "MIT",
1057 | "funding": {
1058 | "url": "https://github.com/sponsors/ljharb"
1059 | }
1060 | },
1061 | "node_modules/on-finished": {
1062 | "version": "2.4.1",
1063 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
1064 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
1065 | "license": "MIT",
1066 | "dependencies": {
1067 | "ee-first": "1.1.1"
1068 | },
1069 | "engines": {
1070 | "node": ">= 0.8"
1071 | }
1072 | },
1073 | "node_modules/once": {
1074 | "version": "1.4.0",
1075 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
1076 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
1077 | "license": "ISC",
1078 | "dependencies": {
1079 | "wrappy": "1"
1080 | }
1081 | },
1082 | "node_modules/open": {
1083 | "version": "10.1.0",
1084 | "resolved": "https://registry.npmjs.org/open/-/open-10.1.0.tgz",
1085 | "integrity": "sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==",
1086 | "license": "MIT",
1087 | "dependencies": {
1088 | "default-browser": "^5.2.1",
1089 | "define-lazy-prop": "^3.0.0",
1090 | "is-inside-container": "^1.0.0",
1091 | "is-wsl": "^3.1.0"
1092 | },
1093 | "engines": {
1094 | "node": ">=18"
1095 | },
1096 | "funding": {
1097 | "url": "https://github.com/sponsors/sindresorhus"
1098 | }
1099 | },
1100 | "node_modules/parseurl": {
1101 | "version": "1.3.3",
1102 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
1103 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
1104 | "license": "MIT",
1105 | "engines": {
1106 | "node": ">= 0.8"
1107 | }
1108 | },
1109 | "node_modules/path-to-regexp": {
1110 | "version": "0.1.7",
1111 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
1112 | "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==",
1113 | "license": "MIT"
1114 | },
1115 | "node_modules/prebuild-install": {
1116 | "version": "5.3.6",
1117 | "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-5.3.6.tgz",
1118 | "integrity": "sha512-s8Aai8++QQGi4sSbs/M1Qku62PFK49Jm1CbgXklGz4nmHveDq0wzJkg7Na5QbnO1uNH8K7iqx2EQ/mV0MZEmOg==",
1119 | "license": "MIT",
1120 | "dependencies": {
1121 | "detect-libc": "^1.0.3",
1122 | "expand-template": "^2.0.3",
1123 | "github-from-package": "0.0.0",
1124 | "minimist": "^1.2.3",
1125 | "mkdirp-classic": "^0.5.3",
1126 | "napi-build-utils": "^1.0.1",
1127 | "node-abi": "^2.7.0",
1128 | "noop-logger": "^0.1.1",
1129 | "npmlog": "^4.0.1",
1130 | "pump": "^3.0.0",
1131 | "rc": "^1.2.7",
1132 | "simple-get": "^3.0.3",
1133 | "tar-fs": "^2.0.0",
1134 | "tunnel-agent": "^0.6.0",
1135 | "which-pm-runs": "^1.0.0"
1136 | },
1137 | "bin": {
1138 | "prebuild-install": "bin.js"
1139 | },
1140 | "engines": {
1141 | "node": ">=6"
1142 | }
1143 | },
1144 | "node_modules/process-nextick-args": {
1145 | "version": "2.0.1",
1146 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
1147 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
1148 | "license": "MIT"
1149 | },
1150 | "node_modules/proxy-addr": {
1151 | "version": "2.0.7",
1152 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
1153 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
1154 | "license": "MIT",
1155 | "dependencies": {
1156 | "forwarded": "0.2.0",
1157 | "ipaddr.js": "1.9.1"
1158 | },
1159 | "engines": {
1160 | "node": ">= 0.10"
1161 | }
1162 | },
1163 | "node_modules/pump": {
1164 | "version": "3.0.0",
1165 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
1166 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
1167 | "license": "MIT",
1168 | "dependencies": {
1169 | "end-of-stream": "^1.1.0",
1170 | "once": "^1.3.1"
1171 | }
1172 | },
1173 | "node_modules/qs": {
1174 | "version": "6.11.0",
1175 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
1176 | "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
1177 | "license": "BSD-3-Clause",
1178 | "dependencies": {
1179 | "side-channel": "^1.0.4"
1180 | },
1181 | "engines": {
1182 | "node": ">=0.6"
1183 | },
1184 | "funding": {
1185 | "url": "https://github.com/sponsors/ljharb"
1186 | }
1187 | },
1188 | "node_modules/range-parser": {
1189 | "version": "1.2.1",
1190 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
1191 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
1192 | "license": "MIT",
1193 | "engines": {
1194 | "node": ">= 0.6"
1195 | }
1196 | },
1197 | "node_modules/raw-body": {
1198 | "version": "2.5.2",
1199 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
1200 | "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
1201 | "license": "MIT",
1202 | "dependencies": {
1203 | "bytes": "3.1.2",
1204 | "http-errors": "2.0.0",
1205 | "iconv-lite": "0.4.24",
1206 | "unpipe": "1.0.0"
1207 | },
1208 | "engines": {
1209 | "node": ">= 0.8"
1210 | }
1211 | },
1212 | "node_modules/rc": {
1213 | "version": "1.2.8",
1214 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
1215 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
1216 | "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
1217 | "dependencies": {
1218 | "deep-extend": "^0.6.0",
1219 | "ini": "~1.3.0",
1220 | "minimist": "^1.2.0",
1221 | "strip-json-comments": "~2.0.1"
1222 | },
1223 | "bin": {
1224 | "rc": "cli.js"
1225 | }
1226 | },
1227 | "node_modules/readable-stream": {
1228 | "version": "2.3.8",
1229 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",
1230 | "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
1231 | "license": "MIT",
1232 | "dependencies": {
1233 | "core-util-is": "~1.0.0",
1234 | "inherits": "~2.0.3",
1235 | "isarray": "~1.0.0",
1236 | "process-nextick-args": "~2.0.0",
1237 | "safe-buffer": "~5.1.1",
1238 | "string_decoder": "~1.1.1",
1239 | "util-deprecate": "~1.0.1"
1240 | }
1241 | },
1242 | "node_modules/readable-stream/node_modules/safe-buffer": {
1243 | "version": "5.1.2",
1244 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
1245 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
1246 | "license": "MIT"
1247 | },
1248 | "node_modules/robotjs": {
1249 | "version": "0.6.0",
1250 | "resolved": "https://registry.npmjs.org/robotjs/-/robotjs-0.6.0.tgz",
1251 | "integrity": "sha512-6pRWI3d+CBZqCXT/rsJfabbZoELua+jTeXilG27F8Jvix/J2BYZ0O7Tly2WCmXyqw5xYdCvOwvCeLRHEtXkt4w==",
1252 | "hasInstallScript": true,
1253 | "license": "MIT",
1254 | "dependencies": {
1255 | "nan": "^2.14.0",
1256 | "node-abi": "^2.13.0",
1257 | "prebuild-install": "^5.3.3"
1258 | }
1259 | },
1260 | "node_modules/run-applescript": {
1261 | "version": "7.0.0",
1262 | "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.0.0.tgz",
1263 | "integrity": "sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==",
1264 | "license": "MIT",
1265 | "engines": {
1266 | "node": ">=18"
1267 | },
1268 | "funding": {
1269 | "url": "https://github.com/sponsors/sindresorhus"
1270 | }
1271 | },
1272 | "node_modules/safe-buffer": {
1273 | "version": "5.2.1",
1274 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
1275 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
1276 | "funding": [
1277 | {
1278 | "type": "github",
1279 | "url": "https://github.com/sponsors/feross"
1280 | },
1281 | {
1282 | "type": "patreon",
1283 | "url": "https://www.patreon.com/feross"
1284 | },
1285 | {
1286 | "type": "consulting",
1287 | "url": "https://feross.org/support"
1288 | }
1289 | ],
1290 | "license": "MIT"
1291 | },
1292 | "node_modules/safer-buffer": {
1293 | "version": "2.1.2",
1294 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
1295 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
1296 | "license": "MIT"
1297 | },
1298 | "node_modules/semver": {
1299 | "version": "5.7.2",
1300 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",
1301 | "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",
1302 | "license": "ISC",
1303 | "bin": {
1304 | "semver": "bin/semver"
1305 | }
1306 | },
1307 | "node_modules/send": {
1308 | "version": "0.18.0",
1309 | "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",
1310 | "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==",
1311 | "license": "MIT",
1312 | "dependencies": {
1313 | "debug": "2.6.9",
1314 | "depd": "2.0.0",
1315 | "destroy": "1.2.0",
1316 | "encodeurl": "~1.0.2",
1317 | "escape-html": "~1.0.3",
1318 | "etag": "~1.8.1",
1319 | "fresh": "0.5.2",
1320 | "http-errors": "2.0.0",
1321 | "mime": "1.6.0",
1322 | "ms": "2.1.3",
1323 | "on-finished": "2.4.1",
1324 | "range-parser": "~1.2.1",
1325 | "statuses": "2.0.1"
1326 | },
1327 | "engines": {
1328 | "node": ">= 0.8.0"
1329 | }
1330 | },
1331 | "node_modules/send/node_modules/ms": {
1332 | "version": "2.1.3",
1333 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1334 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
1335 | "license": "MIT"
1336 | },
1337 | "node_modules/serve-static": {
1338 | "version": "1.15.0",
1339 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz",
1340 | "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==",
1341 | "license": "MIT",
1342 | "dependencies": {
1343 | "encodeurl": "~1.0.2",
1344 | "escape-html": "~1.0.3",
1345 | "parseurl": "~1.3.3",
1346 | "send": "0.18.0"
1347 | },
1348 | "engines": {
1349 | "node": ">= 0.8.0"
1350 | }
1351 | },
1352 | "node_modules/set-blocking": {
1353 | "version": "2.0.0",
1354 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
1355 | "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==",
1356 | "license": "ISC"
1357 | },
1358 | "node_modules/set-function-length": {
1359 | "version": "1.2.2",
1360 | "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
1361 | "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
1362 | "license": "MIT",
1363 | "dependencies": {
1364 | "define-data-property": "^1.1.4",
1365 | "es-errors": "^1.3.0",
1366 | "function-bind": "^1.1.2",
1367 | "get-intrinsic": "^1.2.4",
1368 | "gopd": "^1.0.1",
1369 | "has-property-descriptors": "^1.0.2"
1370 | },
1371 | "engines": {
1372 | "node": ">= 0.4"
1373 | }
1374 | },
1375 | "node_modules/setprototypeof": {
1376 | "version": "1.2.0",
1377 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
1378 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
1379 | "license": "ISC"
1380 | },
1381 | "node_modules/side-channel": {
1382 | "version": "1.0.6",
1383 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
1384 | "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
1385 | "license": "MIT",
1386 | "dependencies": {
1387 | "call-bind": "^1.0.7",
1388 | "es-errors": "^1.3.0",
1389 | "get-intrinsic": "^1.2.4",
1390 | "object-inspect": "^1.13.1"
1391 | },
1392 | "engines": {
1393 | "node": ">= 0.4"
1394 | },
1395 | "funding": {
1396 | "url": "https://github.com/sponsors/ljharb"
1397 | }
1398 | },
1399 | "node_modules/signal-exit": {
1400 | "version": "3.0.7",
1401 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
1402 | "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
1403 | "license": "ISC"
1404 | },
1405 | "node_modules/simple-concat": {
1406 | "version": "1.0.1",
1407 | "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
1408 | "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
1409 | "funding": [
1410 | {
1411 | "type": "github",
1412 | "url": "https://github.com/sponsors/feross"
1413 | },
1414 | {
1415 | "type": "patreon",
1416 | "url": "https://www.patreon.com/feross"
1417 | },
1418 | {
1419 | "type": "consulting",
1420 | "url": "https://feross.org/support"
1421 | }
1422 | ],
1423 | "license": "MIT"
1424 | },
1425 | "node_modules/simple-get": {
1426 | "version": "3.1.1",
1427 | "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz",
1428 | "integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==",
1429 | "license": "MIT",
1430 | "dependencies": {
1431 | "decompress-response": "^4.2.0",
1432 | "once": "^1.3.1",
1433 | "simple-concat": "^1.0.0"
1434 | }
1435 | },
1436 | "node_modules/statuses": {
1437 | "version": "2.0.1",
1438 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
1439 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
1440 | "license": "MIT",
1441 | "engines": {
1442 | "node": ">= 0.8"
1443 | }
1444 | },
1445 | "node_modules/string_decoder": {
1446 | "version": "1.1.1",
1447 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
1448 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
1449 | "license": "MIT",
1450 | "dependencies": {
1451 | "safe-buffer": "~5.1.0"
1452 | }
1453 | },
1454 | "node_modules/string_decoder/node_modules/safe-buffer": {
1455 | "version": "5.1.2",
1456 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
1457 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
1458 | "license": "MIT"
1459 | },
1460 | "node_modules/string-width": {
1461 | "version": "1.0.2",
1462 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
1463 | "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==",
1464 | "license": "MIT",
1465 | "dependencies": {
1466 | "code-point-at": "^1.0.0",
1467 | "is-fullwidth-code-point": "^1.0.0",
1468 | "strip-ansi": "^3.0.0"
1469 | },
1470 | "engines": {
1471 | "node": ">=0.10.0"
1472 | }
1473 | },
1474 | "node_modules/strip-ansi": {
1475 | "version": "3.0.1",
1476 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
1477 | "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",
1478 | "license": "MIT",
1479 | "dependencies": {
1480 | "ansi-regex": "^2.0.0"
1481 | },
1482 | "engines": {
1483 | "node": ">=0.10.0"
1484 | }
1485 | },
1486 | "node_modules/strip-json-comments": {
1487 | "version": "2.0.1",
1488 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
1489 | "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
1490 | "license": "MIT",
1491 | "engines": {
1492 | "node": ">=0.10.0"
1493 | }
1494 | },
1495 | "node_modules/tar-fs": {
1496 | "version": "2.1.1",
1497 | "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz",
1498 | "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",
1499 | "license": "MIT",
1500 | "dependencies": {
1501 | "chownr": "^1.1.1",
1502 | "mkdirp-classic": "^0.5.2",
1503 | "pump": "^3.0.0",
1504 | "tar-stream": "^2.1.4"
1505 | }
1506 | },
1507 | "node_modules/tar-stream": {
1508 | "version": "2.2.0",
1509 | "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
1510 | "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
1511 | "license": "MIT",
1512 | "dependencies": {
1513 | "bl": "^4.0.3",
1514 | "end-of-stream": "^1.4.1",
1515 | "fs-constants": "^1.0.0",
1516 | "inherits": "^2.0.3",
1517 | "readable-stream": "^3.1.1"
1518 | },
1519 | "engines": {
1520 | "node": ">=6"
1521 | }
1522 | },
1523 | "node_modules/tar-stream/node_modules/readable-stream": {
1524 | "version": "3.6.2",
1525 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
1526 | "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
1527 | "license": "MIT",
1528 | "dependencies": {
1529 | "inherits": "^2.0.3",
1530 | "string_decoder": "^1.1.1",
1531 | "util-deprecate": "^1.0.1"
1532 | },
1533 | "engines": {
1534 | "node": ">= 6"
1535 | }
1536 | },
1537 | "node_modules/toidentifier": {
1538 | "version": "1.0.1",
1539 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
1540 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
1541 | "license": "MIT",
1542 | "engines": {
1543 | "node": ">=0.6"
1544 | }
1545 | },
1546 | "node_modules/tunnel-agent": {
1547 | "version": "0.6.0",
1548 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
1549 | "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
1550 | "license": "Apache-2.0",
1551 | "dependencies": {
1552 | "safe-buffer": "^5.0.1"
1553 | },
1554 | "engines": {
1555 | "node": "*"
1556 | }
1557 | },
1558 | "node_modules/type-is": {
1559 | "version": "1.6.18",
1560 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
1561 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
1562 | "license": "MIT",
1563 | "dependencies": {
1564 | "media-typer": "0.3.0",
1565 | "mime-types": "~2.1.24"
1566 | },
1567 | "engines": {
1568 | "node": ">= 0.6"
1569 | }
1570 | },
1571 | "node_modules/unpipe": {
1572 | "version": "1.0.0",
1573 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
1574 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
1575 | "license": "MIT",
1576 | "engines": {
1577 | "node": ">= 0.8"
1578 | }
1579 | },
1580 | "node_modules/util-deprecate": {
1581 | "version": "1.0.2",
1582 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
1583 | "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
1584 | "license": "MIT"
1585 | },
1586 | "node_modules/utils-merge": {
1587 | "version": "1.0.1",
1588 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
1589 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
1590 | "license": "MIT",
1591 | "engines": {
1592 | "node": ">= 0.4.0"
1593 | }
1594 | },
1595 | "node_modules/vary": {
1596 | "version": "1.1.2",
1597 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
1598 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
1599 | "license": "MIT",
1600 | "engines": {
1601 | "node": ">= 0.8"
1602 | }
1603 | },
1604 | "node_modules/which-pm-runs": {
1605 | "version": "1.1.0",
1606 | "resolved": "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.1.0.tgz",
1607 | "integrity": "sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==",
1608 | "license": "MIT",
1609 | "engines": {
1610 | "node": ">=4"
1611 | }
1612 | },
1613 | "node_modules/wide-align": {
1614 | "version": "1.1.5",
1615 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
1616 | "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
1617 | "license": "ISC",
1618 | "dependencies": {
1619 | "string-width": "^1.0.2 || 2 || 3 || 4"
1620 | }
1621 | },
1622 | "node_modules/wrappy": {
1623 | "version": "1.0.2",
1624 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
1625 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
1626 | "license": "ISC"
1627 | },
1628 | "node_modules/ws": {
1629 | "version": "8.17.1",
1630 | "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz",
1631 | "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==",
1632 | "license": "MIT",
1633 | "engines": {
1634 | "node": ">=10.0.0"
1635 | },
1636 | "peerDependencies": {
1637 | "bufferutil": "^4.0.1",
1638 | "utf-8-validate": ">=5.0.2"
1639 | },
1640 | "peerDependenciesMeta": {
1641 | "bufferutil": {
1642 | "optional": true
1643 | },
1644 | "utf-8-validate": {
1645 | "optional": true
1646 | }
1647 | }
1648 | }
1649 | }
1650 | }
1651 |
--------------------------------------------------------------------------------
/server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "server",
3 | "version": "1.0.0",
4 | "main": "index.js",
5 | "type": "commonjs",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1",
8 | "server": "nodemon ./src/index.js"
9 | },
10 | "author": "",
11 | "license": "ISC",
12 | "description": "",
13 | "dependencies": {
14 | "cors": "^2.8.5",
15 | "dotenv": "^16.4.5",
16 | "express": "^4.19.2",
17 | "express-ws": "^5.0.2",
18 | "formidable": "^3.5.1",
19 | "nodemon": "^3.1.4",
20 | "open": "^10.1.0",
21 | "robotjs": "^0.6.0",
22 | "ws": "^8.17.0"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/server/src/index.js:
--------------------------------------------------------------------------------
1 | const express = require("express");
2 | const cors = require("cors");
3 | const app = express();
4 | const expressWs = require("express-ws")(app);
5 | const touchpad = require("./routers/touchpad");
6 | const global_ws = require("./utils/global_calls");
7 | const { file_transfer } = require("./utils/file_transfer");
8 | const signaling_server = require("./utils/signaling_server");
9 | const port = 3000;
10 |
11 | app.use(express.json());
12 | app.use(cors());
13 |
14 | app.use("/touchpad", touchpad);
15 | global_ws(app);
16 | signaling_server(app, expressWs);
17 |
18 | app.post("/upload", (req, res) => {
19 | console.log("uploading...");
20 | const response = file_transfer(req, res);
21 | return response;
22 | });
23 |
24 | app.listen(port, () => {
25 | console.log(`app listening on port ${port}`);
26 | });
27 |
--------------------------------------------------------------------------------
/server/src/routers/touchpad.js:
--------------------------------------------------------------------------------
1 | const express = require("express");
2 | const robot = require("robotjs");
3 | const router = express.Router();
4 |
5 | router.post("/click", (req, res) => {
6 | robot.mouseClick();
7 | res.json({ success: true });
8 | });
9 |
10 | router.post("/right-click", (req, res) => {
11 | robot.mouseClick("right");
12 | res.json({ success: true });
13 | });
14 |
15 | router.post("/left-click", (req, res) => {
16 | robot.mouseClick("left");
17 | res.json({ success: true });
18 | });
19 |
20 | module.exports = router;
21 |
--------------------------------------------------------------------------------
/server/src/utils/file_transfer.js:
--------------------------------------------------------------------------------
1 | const os = require("node:os");
2 | const fs = require("fs");
3 | const { formidable } = require("formidable");
4 |
5 | const homeDir = os.homedir();
6 | const file_transfer = (req, res) => {
7 | const form = formidable({});
8 | return form.parse(req, (err, fields, files) => {
9 | if (err) {
10 | console.log("Error occured: ", err);
11 | return res.json({
12 | status: 1,
13 | msg: "Error uploading!",
14 | });
15 | }
16 | const filesIndexes = Object.keys(files);
17 | filesIndexes.forEach((fileIndex) => {
18 | const properties = files[fileIndex][0];
19 | fs.writeFileSync(
20 | `${homeDir}\\${properties.originalFilename}`,
21 | fs.readFileSync(properties.filepath)
22 | );
23 | console.log("file saved successfully...", fileIndex);
24 | });
25 | return res.json({
26 | status: 0,
27 | msg: "uploaded successfully",
28 | downloadPath: homeDir,
29 | });
30 | });
31 | };
32 |
33 | module.exports = { file_transfer };
34 |
--------------------------------------------------------------------------------
/server/src/utils/get_ip.js:
--------------------------------------------------------------------------------
1 | const os = require("os");
2 | const get_ip = () => {
3 | const networkInterfaces = os.networkInterfaces();
4 |
5 | // Find the IPv4 address associated with the local network interface
6 | const localIpAddress = Object.values(networkInterfaces)
7 | .flat()
8 | .filter((iface) => iface.family === "IPv4" && !iface.internal)
9 | .map((iface) => iface.address)[0];
10 |
11 | return localIpAddress;
12 | };
13 |
14 | module.exports = get_ip;
15 |
--------------------------------------------------------------------------------
/server/src/utils/global_calls.js:
--------------------------------------------------------------------------------
1 | const robot = require("robotjs");
2 |
3 | let previousPoint = [-1, -1];
4 | robot.setMouseDelay(0);
5 |
6 | const global_ws = (app) => {
7 | app.ws("/real-time", (ws, req) => {
8 | console.log("WebSocket connection established");
9 | ws.on("error", (err) => {
10 | console.log("Error occurred:", err);
11 | });
12 | ws.on("message", (msg) => {
13 | const data = JSON.parse(msg);
14 | const type = data.type;
15 |
16 | if (type === "move") {
17 | // move the cursor
18 | const { pointerCoordinates, isFirstTouch } = data;
19 | const [coordinateX, coordinateY] = pointerCoordinates;
20 | const { x: currentCursorPosX, y: currentCursorPosY } =
21 | robot.getMousePos();
22 |
23 | if (coordinateX !== -1 && coordinateY !== -1) {
24 | if (isFirstTouch === 1) {
25 | previousPoint = [coordinateX, coordinateY];
26 | } else {
27 | const divX = coordinateX - previousPoint[0];
28 | const divY = coordinateY - previousPoint[1];
29 | const cursorToBePlacePosX = currentCursorPosX + divX * 2;
30 | const cursorToBePlacePosY = currentCursorPosY + divY * 2;
31 | robot.moveMouse(cursorToBePlacePosX, cursorToBePlacePosY);
32 | console.log(
33 | `Moving cursor: current(${currentCursorPosX}, ${currentCursorPosY}) -> new(${cursorToBePlacePosX}, ${cursorToBePlacePosY})`
34 | );
35 | previousPoint = [coordinateX, coordinateY];
36 | }
37 | }
38 | } else if (type === "special_key_press") {
39 | const key = data.value;
40 | console.log("special-type: ", key);
41 | robot.keyTap(key);
42 | } else if (type === "typing") {
43 | // enable keyboard
44 | const textToBeTyped = data.data;
45 | console.log("to be writen: ", textToBeTyped);
46 | robot.typeString(textToBeTyped);
47 | }
48 | });
49 | ws.on("close", () => {
50 | console.log("WebSocket was closed");
51 | });
52 | });
53 | };
54 |
55 | module.exports = global_ws;
56 |
--------------------------------------------------------------------------------
/server/src/utils/signaling_server.js:
--------------------------------------------------------------------------------
1 | const get_ip = require("./get_ip");
2 | const localIpAddress = get_ip();
3 | console.log(localIpAddress);
4 |
5 | const signaling_server = async (app, expressWs) => {
6 | const open = (await import("open")).default;
7 |
8 | app.ws("/reach-signal-server", (ws, req) => {
9 | console.log(
10 | "WebSocket connection established - signaling server",
11 | req.socket.remoteAddress,
12 | "hostname: ",
13 | req.hostname
14 | );
15 |
16 | const client_ip = req.socket.remoteAddress.split(":")[3];
17 |
18 | if (client_ip !== localIpAddress) {
19 | open("http://localhost:5173/send-file");
20 | console.log("external client added");
21 | }
22 |
23 | ws.on("error", (err) => {
24 | console.log("Error occurred:", err);
25 | });
26 |
27 | ws.on("message", (msg) => {
28 | console.log("Webrtc: ", msg, JSON.parse(msg));
29 |
30 | const data = JSON.parse(msg);
31 | console.log("data from client: ", data);
32 |
33 | expressWs.getWss().clients.forEach((client) => {
34 | if (client !== ws) client.send(msg);
35 | });
36 | });
37 | });
38 | };
39 |
40 | module.exports = signaling_server;
41 |
--------------------------------------------------------------------------------
/setup.sh:
--------------------------------------------------------------------------------
1 | cd server
2 | npm install
3 |
4 | cd ../client
5 | npm install
6 |
7 | echo "dependencies have been installed"
8 |
9 | cd ../
10 | node server/src/index.js &
11 |
12 | cd client
13 | npm run dev -- --host
--------------------------------------------------------------------------------