Surgical Schematic Sync for the Repair Community
The Schematic Sync Portal is a TUI (Terminal User Interface) application designed to update local schematic archives from a cloud source and optionaly create redundant cloud backups.
| π‘οΈ Surgical Isolation | π₯οΈ Zero-Terminal Setup | π§Ή Multiple Cleaning Options |
|---|---|---|
| Dedicated Rclone remotes that never touch your global system configuration. | Complete OAuth handshake within the TUIβno manual config editing required. | Pipelined scanning that purges or isolates threats before backup. |
| Linux π§ | Windows πͺ | macOS π |
|---|---|---|
XDG compliant. Standard .desktop integration. |
APPDATA based config. Start Menu shortcuts. |
Application Support storage. .command launcher. |
- Runtime: Bun (v1.0+) β Fast JavaScript runtime & package manager.
- Backend: Rclone β The "Swiss army knife" of cloud storage. Must be in your system
PATH. - Extraction & Shielding:
7z,7za, orunzipβ Critical Core Dependency. Used by the Malware Shield to surgically sanitize archives and by the Font Installer. - Visuals: A terminal with Nerd Font support (e.g., JetBrainsMono, FiraCode) is required for icon rendering.
- The Portal can automatically create system shortcuts (
.desktop,.bat, or.command) for one-click access.
# Clone the repository
git clone https://github.com/RepairYourTech/schem-sync-portal.git
cd schem-sync-portal
# Install dependencies
bun install
# Run the portal
bun devUpon first launch, the Portal will guide you through:
- System Integration: Creating a desktop/launcher shortcut.
- Source Config: Connecting to your schematic source (HTTP/WebDAV).
- Cloud Selection: Authenticating with your preferred provider (8+ supported).
- Local Shield: Choose to isolate or purge files know to flag cloud malware scanners.
The Portal is specifically optimized for CopyParty-based schematic repositories. All other source options are currently supported.
Support for 8+ Cloud Providers in isolated environments:
- GDrive, Backblaze B2, Cloudflare R2, pCloud, OneDrive, Dropbox, Mega.nz, and SFTP.
Caution
GOOGLE DRIVE SECURITY WARNING: Backing up schematics to Google Drive REQUIRES the Malware Shield to be enabled. Failure to sanitize archives will result in your Google Cloud Console project being suspended due to TOS violations (hosting/transferring detected "malware" archives).
The Malware Shield provides a three-layered defense against malicious files:
- Fail-Safe Archive Validation: Automatically flags archives that cannot be reliably listed as suspicious.
- Recursive Nested Scanning: Automatically detects and scans nested archives (
.zip,.7z,.rar) inside risky parent archives. - Standalone File Scanning: A dedicated phase that scans all pre-existing files in the local directory for malware patterns.
To balance security and archival completeness, the Portal offers granular control over how files are processed.
- Lean Mode (Surgical): [Recommended] Specifically designed for schematic collectors. It uses strict path-pattern matching to purge non-schematic files (like
.BIN,.EXE,.MSIor Large BIOS dumps) while preserving repair artifacts (.PDF,.BRD,.TVW). This minimizes cloud storage bloat and maximizes security. - Full Mode (Archival): Allows all files to pass through to the local archive. Local Shield can be used to purge or isolate known flagged files or to ignore them. Best for users who require total mirror parity.
- Purge (Maximum Safety): Matches that violate security rules or Lean boundaries are permanently deleted from the local environment before they can reach the cloud.
- Isolate (Audit Mode): Matches are moved to a quarantined
_risk_tools/directory in your local schematics folder. This allows advanced users to manually inspect "detections" without risking cloud contamination. - **Both options will check archives (zip, rar) for known useful schematics etc and surgically extract them to their appropriate place in the local copy before purging or isolating the known bad files from the archives, keeping the good and not the bad.
The portal uses a Three-Phase Sync Engine optimized for parallel processing.
graph LR
A[Source] -- Pull Phase --> B(Local Staging)
B -- Malware Shield --> C{Sanitized?}
C -- Yes --> D[Cloud Backup]
C -- No --> E[Purge/Isolate]
subgraph "The Shield"
B
C
E
end
This repository includes specialized tools for contributors using AI agents (e.g., Roo-Code, Windsurf, Cursor, Claude Code, Kilo Code).
- Local Skills: Found in
.agent/skills/, these provide agents with deep project context. - Standardized Workflows: Found in
.agent/workflows/, these allow agents to automate complex tasks like pushing changes and creating PRs consistently.
- Browser Auth Fails: Ensure your default browser is accessible; Rclone requires it for the OAuth callback.
- Missing Icons: Enable a Nerd Font in your terminal settings.
- Safe Mode (Reset): If configuration is broken, go to Options (Hotkey
o) and select RESET CONFIGURATION.
We welcome contributions from the repair community!
- Want to help? Read our COLLABORATION.md for technical standards.
- Found a bug? Use our Bug Report template.
- License: This project uses the BirdMan Attribution License.
- Mandatory Attribution: You MUST credit BirdMan, Slime, and PD (FlexBV) in all forks. See the LICENSE file for details.
Built for the Repair community, keep Right to Repair alive and thriving. π