Getting Started
Welcome to Enveil! This guide will help you get up and running with both site-based environment identification and cloud environment highlighting.
Installation
From Chrome Web Store (Recommended)
- Visit Chrome Web Store - Enveil
- Click “Add to Chrome”
- Confirm the installation
- The Enveil icon will appear in your Chrome toolbar
From GitHub Releases
- Go to GitHub Releases
- Download the latest
enveil-chrome-v*.zip - Extract the ZIP file to a folder
- Open Chrome and navigate to
chrome://extensions/ - Enable Developer mode (toggle in top-right)
- Click “Load unpacked”
- Select the extracted folder
Build from Source
# Clone the repository
git clone https://github.com/formaxcn/enveil.git
cd enveil
# Install dependencies
bun install
# Build for Chrome
bun run build
# The extension will be in .output/chrome-mv3/
First-Time Setup
Opening the Options Page
- Click the Enveil icon in your Chrome toolbar
- Select “Options” from the popup menu
- The configuration page will open in a new tab
Enveil configuration interface with dual-tab layout
Understanding the Interface
The configuration page has two main tabs:
- Site Configurations - For traditional URL-based environment identification
- Cloud Environments - For cloud provider account and role highlighting
The left sidebar contains:
- Browser Sync toggle for cross-device synchronization
- Color Palette for customizing available colors
- Import/Export buttons for configuration backup and sharing
Quick Start: Site Configuration
Step 1: Create a Configuration Group
- Stay on the “Site Configurations” tab
- Click the “Add Group” button
- Enter a name like “Development Environments”
- Set default colors and settings for the group
- Click Save
Site configuration portal showing groups and rules
Step 2: Add Your First Site Rule
- Inside your new group, click “Add Site”
- Configure the rule:
- Match Pattern:
domain - Match Value:
localhost - Environment Name:
DEV - Color: Blue (
#4a9eff) - Position:
rightTop - Banner: Enable âś“
- Background: Disable âś—
- Match Pattern:
- Click Save
Site group with multiple environment rules
Step 3: Test Your Configuration
- Visit
http://localhost:3000(or any localhost site) - You should see a blue “DEV” banner in the top-right corner
Example of environment banner displayed on a webpage
Quick Start: Cloud Environment Configuration
Step 1: Add a Cloud Provider
- Switch to the “Cloud Environments” tab
- Click the “Add Provider” button
- Select a provider template:
- AWS China: For
*.amazonaws.cndomains - AWS Global: For
*.aws.amazon.comdomains - Custom: For other cloud providers
- AWS China: For
- Enter a name like “Production AWS”
- Click Save
Cloud environment configuration with provider selection
Step 2: Add a Cloud Account
- In your cloud environment, click “Add Account”
- Configure the account:
- Name:
prod-main - Background Color: Red (
#f44336) for production warning - Account Patterns: Add patterns to match your account
- Name:
- Add account patterns:
- Pattern:
domain - Value: Your 12-digit AWS account ID (e.g.,
123456789012)
- Pattern:
- Click Save
Step 3: Add Role Highlighting (Optional)
- Edit your cloud account
- Add role keywords to highlight:
- Match Pattern:
contains - Match Value:
Administrator
- Match Pattern:
- Add more roles as needed (e.g.,
ReadOnly,PowerUser) - Click Save
Step 4: Test Cloud Highlighting
- Visit your AWS SAML sign-in page (e.g.,
https://signin.amazonaws.cn/saml) - Your configured accounts should be highlighted with background colors
- Role names matching your keywords should be highlighted in yellow
- After signing in, the highlighting persists in the AWS Console navigation bar
AWS account selection page with account container highlighting and role keyword emphasis
AWS Console navigation bar with account information and role highlighting
Common Configurations
Development Team Setup
Site Configurations
├── "Work Projects" Group
│ ├── localhost → DEV (Blue)
│ ├── dev.company.com → DEV (Blue)
│ ├── staging.company.com → STAGING (Yellow)
│ └── company.com → PROD (Red + Background)
└── "Personal Projects" Group
├── localhost:3000 → DEV (Green)
└── *.test → TEST (Orange)
AWS Multi-Account Setup
Cloud Environments
├── "Production AWS" (AWS China)
│ ├── prod-main (123456789012) → Red background
│ │ └── Roles: Administrator, FullAccess
│ └── prod-security (123456789013) → Orange background
│ └── Roles: SecurityAdmin, Auditor
└── "Development AWS" (AWS China)
├── dev-sandbox (987654321098) → Blue background
│ └── Roles: Developer, Tester
└── dev-shared (987654321099) → Green background
└── Roles: DevOps, ReadOnly
Configuration Tips
Color Coding Best Practices
| Environment | Color | Use Case |
|---|---|---|
| Development | Blue | Local development, safe to experiment |
| Staging | Green | Pre-production testing |
| Testing | Orange/ Yellow | QA and test environments |
| Production | Red | Live environments, requires caution |
Pattern Selection Guide
- Domain (
domain): Use for matching entire websites and subdomains - URL Prefix (
urlPrefix): Use for API versions or specific sections - Exact URL (
url): Use for single specific pages - Regex (
regex): Use for complex matching scenarios - Everything (
everything): Use for intelligent auto-detection
Cloud Account Pattern Examples
Match by Account ID:
Pattern: domain
Value: 123456789012
Match by Account Name:
Pattern: contains
Value: production-main
Match Multiple Accounts:
Pattern: regex
Value: (123456789012|987654321098)
Troubleshooting
Site Banner Not Showing?
- Check if extension is enabled: Look for the Enveil icon in your toolbar
- Verify URL pattern: Make sure the pattern matches your current URL
- Check group/site is enabled: Both group and site need to be enabled
- Refresh the page: Content scripts may need a page refresh after installation
Cloud Highlighting Not Working?
- Verify provider template: Make sure you selected the correct AWS region
- Check account patterns: Ensure account ID or name patterns are correct
- Enable account highlighting: Make sure “Background Enable” is checked
- Check page URL: Cloud highlighting only works on configured domains
Configuration Not Saving?
- Check browser storage permissions: Enveil needs storage permission
- Verify valid values: All fields must have valid values
- Check for errors: Open browser console (F12) for error messages
Next Steps
- Learn about Advanced Configuration
- Explore all Features
- Read the Architecture Overview
- Set up Browser Synchronization
Getting Help
- Documentation: https://formaxcn.github.io/enveil/
- GitHub Issues: https://github.com/formaxcn/enveil/issues
- Chrome Web Store: Leave a review or report issues
Ready to eliminate environment confusion? Enveil helps you instantly identify which environment you’re working in, preventing costly mistakes and improving your development workflow.