Routing View
The Routing view lets you control where each service routes its traffic — to the local CloudMock emulator or to a real cloud environment. This is useful during development when you want some services running locally and others pointing at a shared dev/staging environment.
How it works
Section titled “How it works”The view builds its routing table from two sources:
- Topology config — Nodes from
GET /api/topology/configprovide the list of services with their groups, types, and local port numbers. - Active services — Services from
GET /api/servicesthat are not already in the topology are added to the list. - Cloud endpoints — Cloud URLs are loaded from
/service-domains.jsonwhen available (typically generated by Pulumi or Terraform).
Each service gets a local/cloud toggle. Toggling a service changes where its traffic is directed.
Controls
Section titled “Controls”Search
Section titled “Search”Filter the service list by name using the search field.
Summary
Section titled “Summary”The toolbar shows a count of how many services are routing locally vs. to the cloud (e.g., “8 local, 3 cloud”).
Environment selector
Section titled “Environment selector”Choose the target cloud environment: dev, staging, or prod. The prod button is visually distinguished to prevent accidental selection. The selected environment determines which cloud endpoint URL is shown for each service.
Bulk actions
Section titled “Bulk actions”- All Local — Switch all services to route through CloudMock.
- All Cloud — Switch all services to route to the selected cloud environment.
Service groups
Section titled “Service groups”Services are organized by group (derived from the topology config):
| Group | Contains |
|---|---|
| AWS Services | S3, DynamoDB, SQS, Cognito, and other AWS service emulations |
| Client | Frontend applications |
| API | Backend servers and gateways |
| Compute | Workers, Lambda functions |
| Other | Services not categorized in the topology |
Each group has its own All Local / All Cloud buttons for quick bulk switching.
Service rows
Section titled “Service rows”Each row in a service group shows:
| Element | Description |
|---|---|
| Health dot | Green when the local endpoint responds to /health, red when down, cloud icon when routing to cloud |
| Service name | Display name from the topology config |
| Sync indicator | Dot showing whether the route change has been synced to the CloudMock proxy |
| Toggle | Local/Cloud switch button |
| Endpoint | The active endpoint URL (local address or cloud URL based on current mode and environment) |
Health checks
Section titled “Health checks”For services with HTTP local endpoints (e.g., http://localhost:3202), the view performs health checks every 30 seconds by fetching {endpoint}/health. The health dot updates to reflect availability.
AWS services and Lambda functions routed through CloudMock are always shown as healthy.
Proxy integration
Section titled “Proxy integration”If the CloudMock proxy API is available (GET /api/proxy/routes), route changes are automatically synced via POST /api/proxy/routes. A “Proxy connected” or “Proxy unavailable” status is shown in the header.
When the proxy is not available, the “How to apply” section provides environment variable commands you can use to configure routing manually.
How to apply
Section titled “How to apply”Click How to apply at the bottom to expand instructions. Depending on the proxy availability:
- Proxy connected — Changes are applied automatically. Environment variables are listed as a reference for services that connect directly.
- Proxy unavailable — Copy the exported environment variables and set them before starting your services.
For AWS services, the key variable is:
export AWS_ENDPOINT_URL=http://localhost:4566 # route to CloudMockunset AWS_ENDPOINT_URL # route to real AWSPersistence
Section titled “Persistence”Routing preferences are saved to localStorage under neureaux-devtools:routing. Your local/cloud toggles persist across browser sessions.
Admin API endpoints
Section titled “Admin API endpoints”| Method | Path | Description |
|---|---|---|
GET | /api/topology/config | Get topology nodes for building the service list |
GET | /api/services | List active CloudMock services |
GET | /api/proxy/routes | Check proxy availability |
POST | /api/proxy/routes | Sync a route change to the CloudMock proxy |