Skip to main content
Here you will learn how to monetize your Plasmo browser extension by integrating Mellowtel. Estimated time to complete: 5-15 minutes.

Manual Installation

If you have an existing Plasmo project, follow these steps to add Mellowtel integration.

Install Dependencies

First, add the Mellowtel package to your project:

Configure package.json

Update your package.json to include the required permissions:

Set Environment Variables

Create or update your .env file:
Make sure to replace your_mellowtel_api_key_here with your actual Mellowtel API key from the dashboard.

Implementation

Background Script Setup

Create or modify your background script (background.ts):

Content Script Setup

Create or modify your content script (content.ts):
Create or modify your popup component (popup.tsx):

Development Commands

Use these commands during development:
  1. Always test your extension thoroughly in both development and production environments
  2. Monitor the console for any Mellowtel-related warnings or errors
  3. Test the opt-in flow from a user’s perspective
  4. Verify that the settings link works correctly
  5. Ensure all permissions are properly configured

Testing

Before submitting your extension:
  1. Test the installation flow
  2. Verify the opt-in process works
  3. Check that the settings page is accessible
  4. Confirm all permissions are working correctly
  5. Test on different browsers if targeting multiple platforms
For additional information about Mellowtel’s features and API, visit the Quickstart.
Need help? Join our Discord community for support.