RepositoryCSS
FritzAndFriends

FritzAndFriends/StreamDeckToolkit

A .NET Standard library, template, and tools for building extensions to the Elgato Stream Deck

172stars
43forks
27issues
4views

🎮 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 StreamDeckPluginTemplate hoặ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.

RepositoryJavaScript
tobimori/streamdeck-toggl

⏱️ Make time tracking a 🍰 piece of cake, with Toggl Track and Elgato Stream Deck (Toggl Track integration for Stream Deck)

123
Jun 6, 2024
RepositoryJavaScript
tobimori/streamdeck-ifttt

💡 Easily integrate Stream Deck in your IFTTT setup and control smart home devices

112
May 24, 2020
RepositoryCSS
nicollasricas/decks-vscode

Enables Stream Deck integration with Visual Studio Code.

168
Dec 8, 2022
RepositoryC#
OpenMacroBoard/StreamDeckSharp

A simple .NET wrapper for Stream Deck

398
Nov 17, 2026
RepositoryGo
muesli/deckmaster

An application to control your Elgato Stream Deck on Linux

296
May 22, 2024
RepositoryJavaScript
moeilijk/hwinfo-streamdeck

Monitor sensor readings with this HWiNFO64 Stream Deck Plugin

262
Nov 22, 2026
RepositoryC++
elgatosf/streamdeck-cpu

Stream Deck SDK: CPU sample plugin

142
May 23, 2025
Repository
Lovely-Sim-Racing/lovely-streamdeck-icons

A collection of icons for use with your Elgato Stream Deck.

115
May 6, 2025
RepositoryGo
dh1tw/streamdeck

Golang API for the Corsair / Elgato StreamDeck

90
Sep 18, 2025