FritzAndFriends/StreamDeckToolkit
A .NET Standard library, template, and tools for building extensions to the Elgato Stream Deck
🎮 StreamDeckToolkit — Template .NET Core xây dựng plugin Stream Deck siêu nhanh
Bộ công cụ open-source giúp dev .NET tạo plugin Elgato Stream Deck chỉ trong vài phút thay vì loay hoay với SDK gốc.
StreamDeckToolkit là dự án của nhóm FritzAndFriends, cung cấp template dự án (project template) và thư viện StreamDeckLib chạy trên .NET Standard/.NET Core. Mục tiêu: loại bỏ boilerplate nhàm chán khi viết plugin cho Stream Deck — từ việc đăng ký action, xử lý sự kiện, đến đồng bộ settings giữa C# và Property Inspector (JavaScript). Cài đặt qua dotnet new, gõ một lệnh là có sẵn khung xương dự án, chỉ việc viết logic action.
✨ Điểm nổi bật
- Template
dotnet new streamdeck-plugin: Tạo project plugin đầy đủ cấu trúc, manifest.json, và action mẫu chỉ bằng một lệnh. - StreamDeckLib (NuGet): Thư viện .NET Standard xử lý giao thức WebSocket với Stream Deck software — gửi hình ảnh, nhận sự kiện nhấn nút, quản lý vòng đời plugin.
- BaseStreamDeckAction: Lớp cơ sở "barebones" cho kiểm soát hoàn toàn luồng dữ liệu gửi/nhận từ Stream Deck.
- BaseStreamDeckActionWithSettingsModel<T>: Lớp cơ sở nâng cao — tự động map settings giữa C# model và Property Inspector JS, giảm code thủ công dễ sai.
- Attribute
[ActionUuid]: Đăng ký action tự động khi plugin khởi động, chỉ cần gán UUID khớp với manifest.json. - Hỗ trợ Property Inspector: Tích hợp sẵn pipeline truyền settings hai chiều giữa UI cấu hình (HTML/JS) và backend C#.
- Cài đặt từ NuGet hoặc filesystem:
dotnet new -i StreamDeckPluginTemplatehoặc cài local khi đang phát triển template. - Tài liệu trực tuyến: Docs tại FritzAndFriends.github.io/StreamDeckToolkit với hướng dẫn chi tiết.
💡 Vì sao đáng chú ý
Thay vì tự implement giao thức Stream Deck SDK từ đầu (WebSocket, JSON message framing, registration flow, image encoding), dev chỉ cần inherit một trong hai base class và tập trung vào logic nghiệp vụ. Lớp BaseStreamDeckActionWithSettingsModel<T> là điểm sáng nhất — nó loại bỏ lớp boilerplate mapping settings thủ công, một nỗi đau đầu phổ biến khi Property Inspector JS và C# model phải đồng bộ property name, kiểu dữ liệu. Template còn enforce cấu trúc manifest.json đúng chuẩn, tránh lỗi deploy plugin. Phù hợp cho streamer/dev muốn tự động hóa workflow (OBS control, Home Assistant, API call, macro phím tắt...) bằng C# quen thuộc thay vì Node.js/Python như các ví dụ chính thức.
#StreamDeck #DotNet #OpenSource #Plugin #Elgato #TiniX
Similar Projects
Discover other similar projects and AI models.
⏱️ Make time tracking a 🍰 piece of cake, with Toggl Track and Elgato Stream Deck (Toggl Track integration for Stream Deck)
💡 Easily integrate Stream Deck in your IFTTT setup and control smart home devices
Monitor sensor readings with this HWiNFO64 Stream Deck Plugin
A collection of icons for use with your Elgato Stream Deck.