Plugin Development
This recipe will go through creating your first plugin for the Sodacore framework and how to create and work with plugins.
What is a plugin?
Within the Sodacore ecosystem, a plugin is a self-contained package that extends the functionality of the core framework. Plugins can add new features, modify existing behavior, or integrate with third-party services. They are designed to be easily installed, configured, and managed within the Sodacore environment.
Sodacore is made up of several core plugins; HTTP, WS, Prisma, I18n, Discord, and more.
You can simply look at the project within Github if you are unsure about something, this section recipe is simply going to create a sample plugin to get you started.
Why create a plugin?
Creating a plugin allows developers to:
- Extend Functionality: Add new features or capabilities to the Sodacore framework without modifying the core codebase.
- Modular Development: Develop features in isolation, making it easier to maintain and update.
- Community Contribution: Share plugins with the community, allowing others to benefit from your work.
- Customization: Tailor the framework to specific use cases or requirements.
Sometimes creating a plugin, even if it's just internally can help keep your codebase clean and modular and split your code into separation of concerns.
Getting Started
To create a plugin, you will need to set up a new project and follow the structure and conventions defined by the Sodacore framework.
Click next to continue to the next step in creating your first plugin!