-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration Files
CyberSnap stores all configuration, history, and data in local files. This document describes the file locations and their purposes.
| Data | Location |
|---|---|
| Settings | %LOCALAPPDATA%\CyberSnap\settings.json |
| History database | %LOCALAPPDATA%\CyberSnap\history.db |
| Upload credentials | %LOCALAPPDATA%\CyberSnap\vault.dat |
| Capture images | %USERPROFILE%\Pictures\CyberSnap\ |
| Recordings | %USERPROFILE%\Videos\CyberSnap\ |
| Logs | %LOCALAPPDATA%\CyberSnap\logs\ |
| Cache | %LOCALAPPDATA\CyberSnap\cache\ |
| Custom sounds | %LOCALAPPDATA%\CyberSnap\sounds\ |
In portable mode (when portable.txt exists alongside the executable), all data is stored in the application folder:
| Data | Location |
|---|---|
| Settings | .\Data\settings.json |
| History database | .\Data\history.db |
| Upload credentials | .\Data\vault.dat |
| Capture images | .\Data\Captures\ |
| Recordings | .\Data\Recordings\ |
| Logs | .\Data\logs\ |
| Cache | .\Data\cache\ |
| Custom sounds | .\Data\sounds\ |
File: settings.json
Contains all user-configurable options:
- Hotkey bindings
- Capture settings
- Appearance preferences
- Upload provider configurations
- Notification settings
- Widget configuration
⚠️ Do not edit this file while CyberSnap is running. Changes may be overwritten.
File: history.db (SQLite)
Contains:
- Capture metadata (date, source, dimensions, file path)
- OCR-extracted text
- Barcode/QR scan results
- Color picker history
- Full-text search index
| Table | Content |
|---|---|
captures |
Capture metadata and file references |
ocr_results |
Extracted text and language info |
barcodes |
Decoded barcode/QR content |
colors |
Picked colors with timestamps |
search_index |
Full-text search index |
You can open history.db with any SQLite browser for advanced queries or data export.
File: vault.dat
Contains encrypted upload provider credentials:
- FTP/SFTP passwords and keys
- S3 access and secret keys
- API keys for ImgBB, Imgur, CyberSnap Share
- Webhook secrets
- Algorithm: AES-256-GCM
- Key derivation: Machine-specific entropy
- No cloud sync: Vault never leaves your machine
⚠️ The vault is tied to your machine. Copying the vault file to another computer will not work.
Saved to the configured captures folder with automatic naming:
CyberSnap_YYYYMMDD_HHmmss.png
Saved to the configured recordings folder:
Recording_YYYYMMDD_HHmmss.mp4
Recording_YYYYMMDD_HHmmss.gif
CyberSnap allows overriding default sounds with your own MP3 files.
Place MP3 files in the sounds folder with these names:
| File | Event |
|---|---|
capture.mp3 |
Capture taken |
upload_success.mp3 |
Upload completed |
upload_fail.mp3 |
Upload failed |
ocr_complete.mp3 |
OCR finished |
achievement.mp3 |
Achievement unlocked |
- Format: MP3
- Recommended: Under 5 seconds
- Sample rate: 44.1 kHz
CyberSnap writes diagnostic logs for troubleshooting:
-
log_YYYYMMDD.txt— Daily log files - Automatically rotated (keeps last 7 days)
- Contains errors, warnings, and diagnostic info
| Level | Description |
|---|---|
| Error | Critical issues requiring attention |
| Warning | Non-critical issues |
| Info | General operation logging |
| Debug | Detailed diagnostic info (if enabled) |
To back up all CyberSnap data:
- Close CyberSnap
- Copy the entire
%LOCALAPPDATA%\CyberSnapfolder - (Optional) Copy your captures and recordings folders
- Store the backup in a safe location
To restore:
- Close CyberSnap
- Replace the folder with your backup
- Launch CyberSnap
Delete or rename settings.json. CyberSnap creates a new default file on next launch.
Delete or rename history.db. CyberSnap creates a new empty database on next launch.
Delete the entire %LOCALAPPDATA%\CyberSnap folder. CyberSnap recreates all files with defaults on next launch.
⚠️ Full reset removes all settings, history, and credentials. Back up first if needed.