Plugins #107
Replies: 1 comment 2 replies
-
Hey @SuddenDev — You got it. This is definitely on the roadmap. Because of Payload's config-based functionality, many things you'd want to accomplish with Plugins can already be accomplished via reusable packages that you can plug into your configs themselves. Think.. reusable hooks, maybe custom off-the-shelf collections for common functionalities, or functions that wrap your config like how NextJS does. For example, NextJS configs use a nice pattern that we can mimic now with Payload, like this: const config = withPlugin({
serverURL: 'http://localhost:3000',
collections: [
],
// the rest of the config
}) That
Super powerful pattern. "Plugins" using this approach are totally doable right now. We plan to write up some examples like this and publish them in our docs to show how it might work - but the beautiful part here—and one that is central to Payload—is... that it's just JavaScript. No magic, no "do plugins the Payload way"... So you definitely would never have to fight a complex plugin infrastructure. One personal goal of mine is to provide a config-based way for everything that a plugin might want to do to Payload, right in the config, and over time end up with a completely customizable base set of functionality that is 100% customizable. That said, there will likely be areas of Payload that do require a deliberate "plugin" implementation. We are fleshing that out internally and it is definitely on the roadmap. More on that soon. In the meantime, this Discussion would make for a great spot to centralize plugin ideas, as the community has them, so we can evaluate what's necessary to make them happen. If you have any ideas, send them our way and let's make it happen! |
Beta Was this translation helpful? Give feedback.
-
Hey there,
I'm pretty sure somethig like this is already on the roadmap, but do you guys plan something like plugins? I know they're a pain in the a** in Wordpress sometimes, but the fact that you can build your own one so easily is actually really handy. That's also one of the biggest drawbacks of Strapi currently imo; that their plugin and customization system is way too complicated.
What I do really like about payload is how easy to customize it is already. I think adding the possibilty to add something like community packages would also be awesome.
Let me know what you think
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions