# flex-plugin-js **Repository Path**: mirrors_twilio/flex-plugin-js ## Basic Information - **Project Name**: flex-plugin-js - **Description**: A base JavaScript template for Flex Plugins - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-22 - **Last Updated**: 2025-09-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Your Custom Twilio Flex Plugin Twilio Flex Plugins allow you to customize the appearance and behavior of [Twilio Flex](https://www.twilio.com/flex). If you want to learn more about the capabilities and how to use the API, check out our [Flex documentation](https://www.twilio.com/docs/flex). ## Setup Make sure you have [Node.js](https://nodejs.org) as well as [`npm`](https://npmjs.com) installed. Afterwards, install the dependencies by running `npm install`: ```bash cd {{pluginFileName}} # If you use npm npm install ``` ## Development In order to develop locally, you can use the Webpack Dev Server by running: ```bash npm start ``` This will automatically start up the Webpack Dev Server and open the browser for you. Your app will run on `http://localhost:3000`. If you want to change that you can do this by setting the `PORT` environment variable: ```bash PORT=3001 npm start ``` When you make changes to your code, the browser window will be automatically refreshed. ## Deploy When you are ready to deploy your plugin, in your terminal run: ```bash npm run deploy ``` This will publish your plugin as a Private Asset that is accessible by the Functions & Assets API. If you want to deploy your plugin as a Public Asset, you may pass --public to your deploy command: ```bash npm run deploy --public ``` For more details on deploying your plugin, refer to the [deploying your plugin guide](https://www.twilio.com/docs/flex/plugins#deploying-your-plugin). Note: Common packages like `React`, `ReactDOM`, `Redux` and `ReactRedux` are not bundled with the build because they are treated as external dependencies so the plugin will depend on Flex to provide them globally.