Created: 2025-12-05T14:31:03.316Z
Modified: 2025-12-06T16:22:04.810Z
Configuration
/**
* Sidecar Config for middleware/domain-to-id.ts
*/
module.exports = {
title: "domain-to-id.ts",
description: "Auto-generated draft",
created: "2025-12-05T14:31:03.316Z",
modified: "2025-12-06T16:22:04.810Z",
};
---
title: "Route Flow: ssutil /src/middleware/domain-to-id.ts "
---
flowchart TD
subgraph GET ["GET"]
hono_get_userKey["GET userKey"]
style hono_get_userKey fill:#5E377B,color:#fff,stroke:#B4976A
end
normalizeDomain{{"normalizeDomain"}}
style normalizeDomain fill:#161b22,color:#fff,stroke:#c2a35d
domainToBaseId{{"domainToBaseId"}}
style domainToBaseId fill:#161b22,color:#fff,stroke:#c2a35d
checkIdExists{{"checkIdExists"}}
style checkIdExists fill:#161b22,color:#fff,stroke:#c2a35d
generateUniqueDomainId{{"generateUniqueDomainId"}}
style generateUniqueDomainId fill:#161b22,color:#fff,stroke:#c2a35d
domainToBaseId --> normalizeDomain
generateUniqueDomainId --> domainToBaseId
generateUniqueDomainId --> checkIdExists
linkStyle default stroke:#c2a35d,stroke-width:2px,color:#fff
classDef default color:#fff
---
title: "AST Structure: ssutil /src/middleware/domain-to-id.ts "
---
%%{init: { 'flowchart': { 'nodeSpacing': 20, 'rankSpacing': 30 }, 'themeVariables': { 'fontSize': '11px' } } }%%
graph LR
n0["SF"]
n2["./auth"]
style n2 fill:#ffffff10,stroke:#ffffff33,color:#a1a1a1
style n2 cursor:pointer,stroke-width:2px,stroke:#B4976A
n3["ID: UserIDToAPIKey"]
n0 --> n3
n3 --> n2
style n3 stroke-dasharray:5,stroke:#B4976A
n4["ID: domaintopassword"]
n0 --> n4
n4 --> n2
style n4 stroke-dasharray:5,stroke:#B4976A
n5["ID: saltpassword"]
n0 --> n5
n5 --> n2
style n5 stroke-dasharray:5,stroke:#B4976A
n6["FD: normalizeDomain"]
n0 --> n6
n22["FD: domainToBaseId"]
n0 --> n22
n62["FD: checkIdExists"]
n0 --> n62
subgraph sub77 ["Safe Boundary"]
end
n99["FD: generateUniqueDomainId"]
n0 --> n99
style n0 fill:#5E377B,color:#fff,stroke:#B4976A
linkStyle default stroke:#c2a35d,stroke-width:1px,opacity:0.6
click n2 "../middleware/auth.html" "View Documentation"
CE CallExpressionFD FunctionDeclarationID ImportDeclarationSF SourceFileTS TryStatement