r/StreamDeckSDK • Elgato Staff • Feb 07 '22

Javascript JavaScript Stream Deck Plugin Template

Hi Devs,

I'm working on a new JavaScript Stream Deck plugin template... If anyone has some time I would love it if you could take a peek at this and let me know if it could use anything:

https://github.com/ChekTek/streamdeck-plugin-template

GOALS:

* Use modern javascript

* Remove all the unnecessary utils

* Add documentation inside the code (possibly a jsdoc)

* Make it easier to get started, and more approachable for new devs

* Make IntelliSense actually help you

* Make minimal changes that require updating the documentation site

* Separate what is the plugin and what is a library used for connecting (if you feel the need to make changes to anything inside of the "libs" folder please let me know. The end game will be to publish the "libs" folder as a node package, so we don't want to have to make changes in there.)

TODO

*Property Inspector still needs a bit of work

*Remove all classes from CSS so styles apply directly to elements easily

*Gather form data from ALL controls using name (the proper HTML way, not using sketchy classes), not just the easy ones

I don't think it's ready for prime time yet (and I still have talk to the team about getting it on the main github), but I think it is in a good place that people could try it out.

Any feedback is welcome!

10 Upvotes

13 comments sorted by

View all comments

5

u/Zenpher Feb 08 '22

This is pretty cool. I created a cli tool to help people develop on Windows: https://github.com/hhaidar/deckdev

I would recommend using typescript if possible. Having some type definitions available would help, especially if having IntelliSense is one of your goals.

1

u/WillingUK Feb 08 '22

I was looking at that deckdev and the thought that occured to me was that it could be adapted to create a kind of package manager, that way someone could rig up the shortcuts for a game, humankind for example, icon up all the keyboard shortcuts as buttons, give it a fancy wallpaper and then release a 'humpankind' package so other users dont have to go through the pain of setting it all up themselves.

1

u/Zenpher Feb 09 '22

I can see how something like that would be useful but you'd still want to use npm if you're writing a js plugin as it's kind of a solved problem.

I'm also happily taking PRs 😁