Plugin Ecosystem is coming #391
tinchox5
announced in
Announcements
Replies: 3 comments
-
|
feat(plugin-template): add initial SnapDOM plugin template with example usage and options. See a4d2331 feat(docs): add contributing guidelines and plugin specification for SnapDOM plugins, including usage examples, lifecycle hooks, and best practices. 5243a34 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Plugins are working my friends, glad to see who share the first here 🙌 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As many of you know, SnapDOM already has a plugin system with lifecycle hooks, but right now the plugins are all inline in demo files and there’s no clear path for anyone to build and share their own. I want to change that.
Here’s what I’m working on:
Standalone official plugins
I’m extracting all the existing plugins into proper standalone modules with subpath exports:
<picture>placeholders before capturetoAscii()for ASCII art outputUsage:
Plugin spec and dev guide
I’m writing a full spec so anyone can build a plugin. It covers the factory pattern, every lifecycle hook with its context object, how
defineExportsworks, naming conventions, and a copy-paste template to get started fast.Community plugins
This is the part I’m most excited about. I want you to build plugins for SnapDOM.
Same model as Vite or Rollup plugins:
plugins/snapdom-plugin-*, your repo, your rulesTo get yours listed, just open a PR or an issue.
Plugin ideas I’d love to see
If you’re looking for something to build:
Feedback welcome
What plugins would you build or want to see? Any thoughts on the
snapdom-plugin-*naming? Are there lifecycle stages missing from the hook system?If you want to be among the first community plugin authors, now is a good time, the spec is almost done.
Beta Was this translation helpful? Give feedback.
All reactions