This repository contains a collection of plugins for Strapi CMS, designed to simplify the implementation of the Beckn Protocol. These plugins aim to help developers integrate Beckn-compliant services into their Strapi-based applications seamlessly.
The Beckn Protocol is an open and decentralized standard designed to enable interoperability among various digital platforms. These Strapi plugins provide ready-made tools and configurations for implementing the protocol, allowing developers to focus on their core application logic.
- Pre-built modules for Beckn-compliant APIs
- Easy integration with existing Strapi applications
- Customizable to suit specific business requirements
- Supports various Beckn API functionalities such as search, order, and fulfillment
- Simplifies validation of requests and responses as per the Beckn specifications
Follow these steps to add the Beckn Strapi Plugins to your project:
-
Clone the Repository:
git clone https://github.com/beckn/strapi-plugins.git
-
Navigate to the Plugin Directory:
cd strapi-plugins
-
Install Dependencies:
Run the following command to install necessary dependencies:
npm install
-
Copy the Plugins:
Copy the desired plugins into your Strapi project’s
src/plugins
directory:cp -r plugins/* /path/to/your/strapi-project/src/plugins/
-
Rebuild the Admin UI:
Run the following command to rebuild the admin panel:
npm run build --clean
-
Start Your Strapi Project:
npm run develop
Each plugin may require specific configurations. Refer to the documentation within each plugin folder for detailed setup instructions.
Typically, configuration involves:
- Adding environment variables
- Defining plugin settings in the
config/plugins.js
file
For example:
module.exports = {
"beckn-bpp-adapter": {
enabled: true,
resolve: "path-to-your-plugin-folder",
},
};
Once installed and configured, the plugins can be accessed via the Strapi admin panel or API endpoints. Below are some common use cases:
Use the plugin to handle search requests in compliance with the Beckn specifications. Configure the search parameters and responses as per your platform’s requirements.
Manage order creation, updates, and fulfillment through dedicated APIs provided by the plugins.
Automatically validate incoming and outgoing requests/responses against the Beckn protocol schema to ensure compliance.
Each plugin is designed to be flexible. You can customize logic, schema, and workflows to meet specific business needs.
The following plugins are included in this repository:
-
Beckn BPP Adapter
- It is one of the beckn BPP's adapter. It has all the ten endpoint for an order to process.
-
Beckn MDM
- Acts as an MDM for Beckn Energy. Has api like fetch customer details, dashboard data, etc.
-
Beckn Trade BAP
- It is a BAP for Beckn Energy.
-
Beckn Trade BPP
- Acts like BPP especially for Beckn Energy. Has all the beckn energy bpp endpoints.
-
Driver App
- Plugin for Driver Application
-
Industry Plugin
- Plugin for Industry 4.0 use case
-
Policy Api
- Plugin for Beckn Policy
-
Policy Voilation
- Plugin for checking Beckn policy voilations
-
PTOP Energy
- Plugin for enabling peer to peer energy trades
-
Unsolicited Request Plugin
- Plugin to handle unsolicited request from BPP to BAP
Below are the major releases and their highlights:
Version | Description |
---|---|
v1.0.0 | Initial Release with Support for Beckn Endpoints in Commerce Workflows |
v1.1.0 | Added Industry 4.0 Plugin for Industry 4.0 |
v1.2.0 | Added Driver App Plugin for Mobility |
v1.3.0 | Added Unsolicited Request Plugin for Handling Unsolicited Requests from BPP to BAP |
v1.4.0 | Added Policy API and Policy Violation Plugin for Beckn Policy |
v1.5.0 | Added P2P Energy Plugin for Peer-to-Peer Energy Trade |
v1.6.0 | Added Beckn Trade BAP, Beckn Trade BPP, and Beckn-MDM Plugin for Beckn Energy |
Initial release of the Beckn Strapi Plugins. This version includes foundational support for implementing Beckn endpoints in commerce workflows, enabling businesses to integrate with the Beckn protocol seamlessly.
Introduced the Industry 4.0 plugin, allowing integration with Industry 4.0 workflows, enhancing automation and smart manufacturing processes.
Added the Driver App plugin for mobility services, enabling Beckn-compliant driver applications for managing trips and tracking.
Launched the Unsolicited Request plugin to handle unsolicited requests from BPP (Beckn Provider Platform) to BAP (Beckn Application Platform), improving system resilience.
Added the Policy API and Policy Violation plugin to facilitate the creation, enforcement, and monitoring of Beckn policies across platforms.
Introduced the P2P Energy plugin to enable peer-to-peer energy trading, supporting decentralized energy exchange networks.
Released Beckn Trade BAP, Beckn Trade BPP, and Beckn-MDM plugins to support Beckn energy implementations, including trade facilitation and master data management.
Contributions are welcome! If you want to contribute to this project, follow these steps:
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Open a pull request.
Make sure to follow the coding standards and include relevant test cases.
This project is licensed under the MIT License.
For any queries or support, please raise an issue in this repository or reach out to the Beckn team.