docs: add LICENSE, CODE_OF_CONDUCT, CONTRIBUTING, SECURITY, issue/PR templates
- MIT License (compatible with all dependencies) - Contributor Covenant Code of Conduct v2.1 - Contributing guidelines with build/test workflow - Security policy with vulnerability reporting process - Bug report and feature request templates - Pull request template
This commit is contained in:
1 parent
c31fca9226
commit
4c3dec9304
7 files changed
+481
No files matched your search
@@ -0,0 +1,43 @@
|
||||
---
|
||||
name: Bug Report
|
||||
description: Report a bug or unexpected behavior
|
||||
title: "[Bug]: "
|
||||
labels: ["bug"]
|
||||
---
|
||||
|
||||
## Bug Description
|
||||
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
## Steps to Reproduce
|
||||
|
||||
1. Go to '...'
|
||||
2. Click on '...'
|
||||
3. Scroll down to '...'
|
||||
4. See error
|
||||
|
||||
## Expected Behavior
|
||||
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
## Actual Behavior
|
||||
|
||||
What actually happened (include error messages, screenshots, etc.)
|
||||
|
||||
## Environment
|
||||
|
||||
- **OS**: Windows 10/11 (version)
|
||||
- **ClipForge Version**: (e.g., v0.1.0)
|
||||
- **GPU**: NVIDIA/AMD/Intel (model)
|
||||
- **Game**: (if game-specific)
|
||||
|
||||
## Logs
|
||||
|
||||
Please attach relevant logs:
|
||||
- Application logs (if available)
|
||||
- Windows Event Viewer entries
|
||||
- FFmpeg output (if capture-related)
|
||||
|
||||
## Additional Context
|
||||
|
||||
Add any other context about the problem here.
|
||||
@@ -0,0 +1,30 @@
|
||||
---
|
||||
name: Feature Request
|
||||
description: Suggest a new feature or enhancement
|
||||
title: "[Feature]: "
|
||||
labels: ["enhancement"]
|
||||
---
|
||||
|
||||
## Feature Description
|
||||
|
||||
A clear and concise description of the feature you'd like to see.
|
||||
|
||||
## Problem/Use Case
|
||||
|
||||
What problem does this solve? What's the use case?
|
||||
|
||||
## Proposed Solution
|
||||
|
||||
Describe how you'd like this feature to work.
|
||||
|
||||
## Alternatives Considered
|
||||
|
||||
Any alternative solutions or workarounds you've considered.
|
||||
|
||||
## Additional Context
|
||||
|
||||
Add any other context, mockups, or screenshots here.
|
||||
|
||||
## Implementation Ideas
|
||||
|
||||
If you have technical ideas on how to implement this, share them here.
|
||||
@@ -0,0 +1,43 @@
|
||||
---
|
||||
name: Pull Request
|
||||
description: Template for pull requests
|
||||
title: "[PR]: "
|
||||
labels: []
|
||||
---
|
||||
|
||||
## Description
|
||||
|
||||
Brief description of changes.
|
||||
|
||||
## Type of Change
|
||||
|
||||
- [ ] Bug fix
|
||||
- [ ] New feature
|
||||
- [ ] Breaking change
|
||||
- [ ] Documentation update
|
||||
- [ ] Refactoring
|
||||
- [ ] Tests
|
||||
- [ ] CI/CD
|
||||
|
||||
## Related Issues
|
||||
|
||||
Fixes #(issue number)
|
||||
|
||||
## Testing
|
||||
|
||||
- [ ] All existing tests pass (`cargo test`)
|
||||
- [ ] New tests added for changes
|
||||
- [ ] Manual testing performed
|
||||
- [ ] UI builds successfully (`pnpm run build`)
|
||||
|
||||
## Checklist
|
||||
|
||||
- [ ] Code follows project style (`cargo fmt`, `pnpm run lint`)
|
||||
- [ ] Clippy clean (`cargo clippy`)
|
||||
- [ ] No new warnings
|
||||
- [ ] Documentation updated (if applicable)
|
||||
- [ ] CHANGELOG updated (if applicable)
|
||||
|
||||
## Screenshots (if UI changes)
|
||||
|
||||
## Additional Notes
|
||||
@@ -0,0 +1,127 @@
|
||||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
We as members, contributors, and leaders pledge to make participation in our
|
||||
community a harassment-free experience for everyone, regardless of age, body
|
||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||
identity and expression, level of experience, education, socio-economic status,
|
||||
nationality, personal appearance, race, religion, or sexual identity
|
||||
and orientation.
|
||||
|
||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||
diverse, inclusive, and healthy community.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to a positive environment for our
|
||||
community include:
|
||||
|
||||
* Demonstrating empathy and kindness toward other people
|
||||
* Being respectful of differing opinions, viewpoints, and experiences
|
||||
* Giving and gracefully accepting constructive feedback
|
||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
and learning from the experience
|
||||
* Focusing on what is best not just for us as individuals, but for the
|
||||
overall community
|
||||
|
||||
Examples of unacceptable behavior include:
|
||||
|
||||
* The use of sexualized language or imagery, and sexual attention or
|
||||
advances of any kind
|
||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or email
|
||||
address, without their explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Enforcement Responsibilities
|
||||
|
||||
Community leaders are responsible for clarifying and enforcing our standards of
|
||||
acceptable behavior and will take appropriate and fair corrective action in
|
||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||
or harmful.
|
||||
|
||||
Community leaders have the right and responsibility to remove, edit, or reject
|
||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||
not aligned to this Code of Conduct, and will communicate reasons for
|
||||
moderation decisions when appropriate.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies within all community spaces, and also applies when
|
||||
an individual is officially representing the community in public spaces.
|
||||
Examples of representing our community include using an official e-mail address,
|
||||
posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported to the community leaders responsible for enforcement at
|
||||
alvin@zilverstand.com.
|
||||
|
||||
All complaints will be reviewed and investigated promptly and fairly.
|
||||
|
||||
All community leaders are obligated to respect the privacy and security of the
|
||||
reporter of any incident.
|
||||
|
||||
## Enforcement Guidelines
|
||||
|
||||
Community leaders will follow these Community Impact Guidelines in determining
|
||||
the consequences for any action they deem in violation of this Code of Conduct:
|
||||
|
||||
### 1. Correction
|
||||
|
||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||
unprofessional or unwelcome in the community.
|
||||
|
||||
**Consequence**: A private, written warning from community leaders, providing
|
||||
clarity around the nature of the violation and an explanation of why the
|
||||
behavior was inappropriate. A public apology may be requested.
|
||||
|
||||
### 2. Warning
|
||||
|
||||
**Community Impact**: A violation through a single incident or series of
|
||||
actions.
|
||||
|
||||
**Consequence**: A warning with consequences for continued behavior. No
|
||||
interaction with the people involved, including unsolicited interaction with
|
||||
those enforcing the Code of Conduct, for a specified period of time. This
|
||||
includes avoiding interactions in community spaces as well as external channels
|
||||
like social media. Violating these terms may lead to a temporary or permanent
|
||||
ban.
|
||||
|
||||
### 3. Temporary Ban
|
||||
|
||||
**Community Impact**: A serious violation of community standards, including
|
||||
sustained inappropriate behavior.
|
||||
|
||||
**Consequence**: A temporary ban from any sort of interaction or public
|
||||
communication with the community for a specified period of time. No public or
|
||||
private interaction with the people involved, including unsolicited interaction
|
||||
with those enforcing the Code of Conduct, is allowed during this period.
|
||||
Violating these terms may lead to a permanent ban.
|
||||
|
||||
### 4. Permanent Ban
|
||||
|
||||
**Community Impact**: Demonstrating a pattern of violation of community
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
individual, or aggression toward or disparagement of classes of individuals.
|
||||
|
||||
**Consequence**: A permanent ban from any sort of public interaction within
|
||||
the community.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||
version 2.1, available at
|
||||
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
||||
|
||||
Community Impact Guidelines were inspired by
|
||||
[Mozilla's code of conduct enforcement ladder][mozilla coc].
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
||||
[mozilla coc]: https://github.com/mozilla/diversity
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
# Contributing to ClipForge
|
||||
|
||||
Thank you for your interest in contributing to ClipForge! This document provides guidelines for contributing to the project.
|
||||
|
||||
## Getting Started
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- **Rust** (stable toolchain) - install via [rustup](https://rustup.rs/)
|
||||
- **Node.js** (v22+) and **pnpm** (v11+) - install via [corepack](https://github.com/nodejs/corepack)
|
||||
- **Windows** (Windows 10/11) - ClipForge is Windows-first
|
||||
- **Visual Studio 2022** with C++ workload (for MSVC toolchain)
|
||||
|
||||
### Building from Source
|
||||
|
||||
```bash
|
||||
# Clone the repository
|
||||
git clone https://github.com/Alvin-Zilverstand/clipforge-game-clipper.git
|
||||
cd clipforge-game-clipper
|
||||
|
||||
# Install frontend dependencies
|
||||
pnpm install
|
||||
|
||||
# Build the frontend
|
||||
pnpm run build
|
||||
|
||||
# Build the Tauri app (debug)
|
||||
pnpm run tauri dev
|
||||
|
||||
# Build the Tauri app (release installers)
|
||||
pnpm run desktop:build
|
||||
```
|
||||
|
||||
Installers will be created in `src-tauri/target/release/bundle/`.
|
||||
|
||||
### Running Tests
|
||||
|
||||
```bash
|
||||
# Run all Rust tests
|
||||
cargo test
|
||||
|
||||
# Run only library tests
|
||||
cargo test --lib
|
||||
|
||||
# Run specific test
|
||||
cargo test test_name
|
||||
```
|
||||
|
||||
## Development Workflow
|
||||
|
||||
### Branching Strategy
|
||||
|
||||
- `master` - Protected branch, only updated via PR merges
|
||||
- Feature branches: `feat/description` or `feature/description`
|
||||
- Bug fix branches: `fix/description` or `bugfix/description`
|
||||
- Documentation: `docs/description`
|
||||
|
||||
### Commit Messages
|
||||
|
||||
Follow [Conventional Commits](https://www.conventionalcommits.org/):
|
||||
|
||||
```
|
||||
type(scope): short description
|
||||
|
||||
Longer description if needed.
|
||||
|
||||
Fixes #123
|
||||
```
|
||||
|
||||
Types:
|
||||
- `feat`: New feature
|
||||
- `fix`: Bug fix
|
||||
- `docs`: Documentation changes
|
||||
- `style`: Code style (formatting, etc.)
|
||||
- `refactor`: Code refactoring
|
||||
- `test`: Adding/updating tests
|
||||
- `chore`: Maintenance tasks
|
||||
|
||||
### Pull Request Process
|
||||
|
||||
1. Fork the repository
|
||||
2. Create a feature branch from `master`
|
||||
3. Make your changes with tests
|
||||
4. Ensure all tests pass (`cargo test`)
|
||||
5. Ensure code is formatted (`cargo fmt`)
|
||||
6. Ensure clippy is clean (`cargo clippy`)
|
||||
7. Open a PR against `master`
|
||||
8. Wait for review and CI checks
|
||||
|
||||
### Code Style
|
||||
|
||||
- Rust: `cargo fmt` (standard rustfmt)
|
||||
- TypeScript: `pnpm run lint` (ESLint + Prettier)
|
||||
- Run `cargo clippy` before committing
|
||||
|
||||
## Architecture Overview
|
||||
|
||||
```
|
||||
clipforge-game-clipper/
|
||||
├── src/ # Rust library (core logic)
|
||||
│ ├── capture.rs # FFmpeg capture backends
|
||||
│ ├── native_wgc.rs # Windows Graphics Capture
|
||||
│ ├── native_audio.rs # WASAPI audio capture
|
||||
│ ├── recorder.rs # Replay buffer, auto-clipping
|
||||
│ ├── integrations.rs # League/Valve GSI events
|
||||
│ ├── library.rs # Clip library (SQLite)
|
||||
│ ├── upload.rs # Upload providers
|
||||
│ ├── settings.rs # Versioned settings
|
||||
│ └── ...
|
||||
├── src-tauri/ # Tauri desktop shell
|
||||
│ └── src/main.rs # Tauri commands, app setup
|
||||
├── ui/ # TypeScript/Vite frontend
|
||||
│ └── src/main.ts # Single-page UI
|
||||
└── scripts/ # Build scripts
|
||||
```
|
||||
|
||||
## Adding Features
|
||||
|
||||
### New Capture Backend
|
||||
|
||||
1. Implement `CaptureBackend` trait in `src/capture.rs`
|
||||
2. Add to `start_best_capture_backend` in `src-tauri/src/main.rs`
|
||||
3. Add tests
|
||||
|
||||
### New Game Integration
|
||||
|
||||
1. Add game profile in `src/game_detection.rs`
|
||||
2. Implement `GameIntegration` trait in `src/integrations.rs`
|
||||
3. Add event normalization
|
||||
4. Update `default_auto_clip_events_for_game` in `src-tauri/src/main.rs`
|
||||
5. Add UI entries in `ui/src/main.ts`
|
||||
|
||||
### New Upload Provider
|
||||
|
||||
1. Implement `Uploader` trait in `src/upload.rs`
|
||||
2. Add to `upload_clip_with_settings` in `src-tauri/src/main.rs`
|
||||
3. Add UI in `ui/src/main.ts` (Uploads view)
|
||||
|
||||
## Reporting Issues
|
||||
|
||||
Use the GitHub issue templates:
|
||||
- [Bug Report](.github/ISSUE_TEMPLATE/bug_report.md)
|
||||
- [Feature Request](.github/ISSUE_TEMPLATE/feature_request.md)
|
||||
|
||||
## Security
|
||||
|
||||
See [SECURITY.md](SECURITY.md) for reporting security vulnerabilities.
|
||||
|
||||
## License
|
||||
|
||||
By contributing, you agree that your contributions will be licensed under the [MIT License](LICENSE).
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2026 ClipForge Contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
# Security Policy
|
||||
|
||||
## Supported Versions
|
||||
|
||||
We release security updates for the following versions:
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 0.1.x | :white_check_mark: |
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
**Please do not report security vulnerabilities through public GitHub issues.**
|
||||
|
||||
Instead, please report them via email to: **alvin@zilverstand.com**
|
||||
|
||||
You should receive a response within 48 hours. If for some reason you do not, please follow up via email to ensure we received your original message.
|
||||
|
||||
Please include the following information:
|
||||
- Type of issue (e.g., buffer overflow, injection, information disclosure)
|
||||
- Full paths of source file(s) related to the vulnerability
|
||||
- Steps to reproduce the issue
|
||||
- Proof-of-concept or exploit code (if possible)
|
||||
- Impact of the vulnerability
|
||||
|
||||
## Disclosure Policy
|
||||
|
||||
- We will acknowledge receipt of your vulnerability report within 48 hours
|
||||
- We will provide a timeline for a fix within 5 business days
|
||||
- We will keep you informed of progress
|
||||
- We will credit you in the release notes (unless you prefer anonymity)
|
||||
- We will not take legal action against you for good-faith security research
|
||||
|
||||
## Security Considerations
|
||||
|
||||
ClipForge is a local-first application with the following security characteristics:
|
||||
|
||||
### Data Handling
|
||||
- All clips and metadata stored locally (SQLite + filesystem)
|
||||
- No telemetry or analytics
|
||||
- No account system or cloud sync
|
||||
- Upload is explicitly user-initiated (or via opt-in auto-upload)
|
||||
|
||||
### Network
|
||||
- League Live Client Data: HTTPS to localhost (127.0.0.1:2999) with cert verification disabled (Riot's self-signed cert)
|
||||
- Valve GSI: HTTP receiver on 127.0.0.1:49321 (local only)
|
||||
- Upload providers: HTTPS to Catbox/Litterbox/custom endpoints
|
||||
- No outbound connections except explicit uploads
|
||||
|
||||
### Permissions
|
||||
- Requires Windows screen capture permission (Windows Graphics Capture)
|
||||
- Requires microphone permission (if enabled)
|
||||
- Runs as standard user (not elevated)
|
||||
|
||||
### Known Attack Surface
|
||||
1. **GSI HTTP Receiver** - Local-only, but could be accessed by other local processes
|
||||
2. **FFmpeg subprocess** - User-controlled arguments sanitized, but FFmpeg itself is a large attack surface
|
||||
3. **SQLite database** - Local file, no network exposure
|
||||
4. **Tauri IPC** - Commands validated server-side
|
||||
|
||||
## Security Best Practices for Users
|
||||
|
||||
- Keep ClipForge updated
|
||||
- Only enable auto-upload to trusted providers
|
||||
- Review custom upload endpoints before use
|
||||
- Run on supported Windows versions with latest patches
|
||||
Reference in new issue
Block a user