Back to list
yanivprusman

daemon-port-management

by yanivprusman

0🍴 0📅 Jan 25, 2026

SKILL.md


name: daemon-port-management description: Instructions for managing application ports with the AutomateLinux daemon.

Port Management

The AutomateLinux daemon acts as a central registry for application ports, allowing cross-component service discovery.

CLI Usage

Use the high-level d command (which aliases daemon send) to manage ports.

Setting a Port

Registers a port for a specific key (e.g., pt for Public Transportation).

d setPort --key pt --value 3001

Getting a Port

Retrieves the currently registered port for a specific key.

d getPort --key pt

Listing All Ports

Displays a list of all registered applications and their assigned ports.

d listPorts

Deleting a Port

Removes the port mapping for a specific key.

d deletePort --key pt

How it Works

Persistence

The daemon stores these ports in the settings table of its MySQL database. The keys are automatically prefixed with port_ (e.g., port_pt).

Integration

Component logic (like in mainCommand.cpp or InputMapper.cpp) can retrieve these values using the SettingsTable manager:

string port = SettingsTable::getSetting("port_pt");
if (!port.empty()) {
    string url = "http://localhost:" + port;
}

Port Allocation Scheme

  • 3000-3499: App prod/dev ports (2 per app, sequential)
  • 3500+: Special operational ports (WebSocket servers, bridges, etc.)

Current Port Registry

KeyPortDescription
cad-prod3000CAD app production
cad-dev3001CAD app development
pt-prod3002Public Transportation production
pt-dev3003Public Transportation development
loom-prod3004Loom client production
loom-dev3005Loom client development
dashboard-prod3006Dashboard frontend production
dashboard-dev3007Dashboard frontend development
loom-server3500Loom WebSocket stream server
dashboard-bridge3501Dashboard daemon bridge

[!NOTE] Port management is useful for macros that need to launch browsers or proxy services to specific local addresses without hardcoding them in the binary.

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon