FlashRecord — डेवलपर्स के लिए अल्ट्रा-लाइट टर्मिनल रिकॉर्डिंग टूल - टर्मिनल से स्क्रीनशॉट·GIF
(github.com/Flamehaven)नमस्ते, मैं Flamehaven हूँ और हर हफ्ते नए व उपयोगी टूल बनाता हूँ। इस हफ्ते मैं FlashRecord का परिचय दे रहा हूँ.
FlashRecord एक अल्ट्रा-लाइट (≈2MB) Python-native CLI स्क्रीन कैप्चर टूल है, जिसे इस तरह डिज़ाइन किया गया है कि यह सीधे डेवलपर workflow में फिट हो सके। इसमें कोई GUI नहीं है; आप टर्मिनल से सीधे स्क्रीनशॉट (@sc) और GIF रिकॉर्डिंग (@sv) बना सकते हैं, और import flashrecord के जरिए इसे script/test/CI में सीधे इंटीग्रेट कर सकते हैं।
मुख्य विशेषताएँ
- CLI-first & Python-native —
import flashrecordकरें या pipeline मेंflashrecord @svसीधे चलाएँ। - Workflow-friendly — Claude/Gemini/Codex session ऑटो-सेव, PR/docs के लिए Markdown snippet export, inline instruction note सपोर्ट।
- अल्ट्रा-लाइट: इंस्टॉल साइज़ लगभग 2MB, dependencies मुख्यतः Pillow/NumPy/imageio जैसी standard libraries पर आधारित
- One-command simplicity —
@sc(स्क्रीनशॉट),@sv(GIF रिकॉर्डिंग) — interactive और script mode दोनों सपोर्ट। - Smart compression — CWAM-प्रेरित pure PIL+NumPy implementation, जो visually important हिस्सों को बनाए रखते हुए फ़ाइल साइज़ को काफ़ी कम करता है।
- कई compression preset —
high,balanced,compactआदि, ताकि quality-size tradeoff चुना जा सके। - Time-space optimization — temporal subsampling (जैसे 10→8 FPS), adaptive resolution scaling, saliency-based quality preservation (variance, edge density, entropy)।
- RGB color fidelity बरकरार — महत्वपूर्ण क्षेत्रों में पूरी color information संरक्षित रहती है।
- ऑटो cleanup & lifecycle management — N घंटे से पुराने फ़ाइलों को ऑटो-delete करने की सेटिंग, consistent output naming/folder structure।
- Cross-platform — Windows / macOS / Linux में एक जैसे commands (※ macOS:
screencapture, Linux:gnome-screenshot/scrotआदि, Windows: ImageGrab-आधारित)। - Production-ready — pytest test suite, Sphinx docs, GitHub Actions CI शामिल।
- Script & CI integration आसान — deterministic output path, जिससे test/build script/CI job में visual evidence सीधे attach किया जा सकता है।
- कोई अतिरिक्त native dependency नहीं — केवल Pillow, NumPy, imageio जैसी dependencies; भारी external binaries की ज़रूरत नहीं।
- तेज़ capture·encoding — स्क्रीनशॉट लगभग 10–50ms (platform पर निर्भर); डेवलपर workflow के लिए optimized capture·encoding pipeline।
- Extensible API — screenshot/recording/session management के लिए importable functions उपलब्ध — tooling या test में embed किया जा सकता है।
- Privacy-first — डिफ़ॉल्ट रूप से local processing; cloud upload केवल तभी काम करता है जब user खुद integrate करे।
- Roadmap तैयार — WebP/MP4 output, audio capture, window-level capture, VSCode extension, streaming आदि की योजना।
मुख्य उपयोग के मामले:
- PR विवरण और docs के लिए जल्दी GIF बनाना
- CI में visual test automation और failure पर evidence GIF attach करना
- टर्मिनल छोड़े बिना tutorial/demo assets बनाना
अभी आज़माएँ (source से install):
git clone https://github.com/Flamehaven/FlashRecord
cd FlashRecord
pip install -e .
flashrecord @sc # स्क्रीनशॉट
flashrecord @sv 5 10 # 5 सेकंड, 10FPS उदाहरण
Repo: https://github.com/Flamehaven/FlashRecord — MIT license.
Feedback, issue, PR का स्वागत है — अगर आपको benchmark (sample GIF के पहले/बाद का साइज़, resolution·FPS के हिसाब से performance) या technical details चाहिए हों, तो मैं तुरंत साझा कर दूँगा।
अभी कोई टिप्पणी नहीं है.