@redlabs/rocket-loadout
v1.1.1
Published
Enhanced loadout (settings and features) for your Directus instance. EMAIL_FROM override + Email hook. More to come!??
Maintainers
Readme
RedLabs Rocket Loadout 🚀
Enhanced loadout (settings and features) for your Directus instance
Quick Notes
- Provided 'as is'. See πrate LICENSE.md
- Enhancements? Maybe. Bug fixes? Maybe. Responding to issues? Maybe...
- Happy huntin'
Features
📧 Email Management Module
- Admin-only access to email configuration settings
- Override system email address with custom name and address
- Visual interface to manage email settings directly from Directus admin panel
- Real-time preview of current system email & overridden email
🔗 Email Hook
- Automatic email override when sending emails through Directus
- Custom FROM address configuration stored in database
- Seamless integration with existing Directus email functionality
🌐 Environment Endpoint
- API endpoint (
/red/env) to access limited non-sensitive variables
🆘 Help....
- Module Access to Environment Variables
- tbh we only have the environment endpoint as we could not figure out how to access env variables from the module
- ... to get the EMAIL_FROM environment variable
- Using an API endpoint to get this is convulted and counter-intuitive.
- Happy to get advice how we could do this differently

Installation
Prerequisites
- Directus v11.10.1 or higher
-- As the ability to override email_from address was added at this point - Admin access to Directus instance
Install Extension
- Search for "RedLabs" or "Email" - it should pop up
- Install, configure and you are good to go
Usage
Email Management
- Log in to Directus as an admin user
- Got to Directus Settings > Settings
- Enable the RedLabs Rocket Loadout module so it appears in the module sidebar
- Navigate to the RedLabs Rocket Loadout 🚀🚀🚀 module in the sidebar
- Access the Email Management section
- Configure your custom email settings:
- Enable/disable email override
- Set custom sender name
- Set custom sender email address
- Save your settings
API Endpoints
Get Environment Variables
GET /red/envReturns limited, safe environment variables:
{
"EMAIL_FROM": "[email protected]",
"PUBLIC_URL": "https://your-directus-instance.com"
}Configuration
Database Setup
The extension automatically creates a red_loadout collection to store configuration settings
email_override(boolean) - Enable/disable custom email settingsemail_name(string) - Custom sender nameemail_address(string) - Custom sender email address
Development
See: Directus Extensions Overview
Clone into your directus ./extensions directory
# Using SSH
git clone [email protected]:RedLabs-Rocks/blackfang-cay.git redlabs-rocket-loadout
# Using HTTPS
git clone https://github.com/RedLabs-Rocks/blackfang-cay.git redlabs-rocket-loadoutInstall & Build
cd redlabs-rocket-loadout
npm install
npm run build- Restart your Directus instance
From: RedLabs 🚀🚀🚀
More features?? Massive time constraints, but who knows! 😎
🏴 Avast! We be done! 🏴
Arrr, be seein’ ye, an' may the Kraken ever look upon ye with favor! 🐙
