
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
@runnable/hostname
Advanced tools
util for generating an instance's elastic or direct hostname
var hostname = require('runnable-hostname');
// Non-master Pod Instance
hostname.direct({
shortHash: 'abcdef',
// non-masterPod instance has branch in name, so branch is required
instanceName: 'branch-instanceName',
branch: 'branch',
ownerUsername: 'ownerUsername',
masterPod: false,
userContentDomain: 'runnableapp.com'
});
// abcdef-instanceName-staging-ownerUsername.runnableapp.com
hostname.elastic({
shortHash: 'abcdef',
instanceName: 'branch-instanceName',
branch: 'branch',
ownerUsername: 'ownerUsername',
masterPod: false,
userContentDomain: 'runnableapp.com'
});
// instanceName-staging-ownerUsername.runnableapp.com
// Master Pod Instance
hostname.direct({
shortHash: 'abcdef',
// masterPod instance has does NOT have branch in name, so branch is not required
instanceName: 'instanceName',
ownerUsername: 'ownerUsername',
masterPod: true,
userContentDomain: 'runnableapp.com'
});
// abcdef-instanceName-staging-ownerUsername.runnableapp.com
hostname.elastic({
shortHash: 'abcdef',
instanceName: 'instanceName',
ownerUsername: 'ownerUsername',
masterPod: true,
userContentDomain: 'runnableapp.com'
});
// instanceName-staging-ownerUsername.runnableapp.com
// Isolated Master Instance
hostname.direct({
shortHash: 'abcdef',
branch: 'branch',
instanceName: 'branch-instanceName',
ownerUsername: 'ownerUsername',
masterPod: false,
isolated: 'asd76sdasg2341324',
isIsolationGroupMaster: true,
userContentDomain: 'runnableapp.com'
});
// abcdef-instanceName-staging-ownerUsername.runnableapp.com
hostname.elastic({
shortHash: 'abcdef',
branch: 'branch',
instanceName: 'branch-instanceName',
ownerUsername: 'ownerUsername',
masterPod: false,
isolated: 'asd76sdasg2341324',
isIsolationGroupMaster: true,
userContentDomain: 'runnableapp.com'
});
// instanceName-staging-ownerUsername.runnableapp.com
// Isolated Container (not master) Instance
Master instance shortHash = '343gh1'
hostname.direct({
shortHash: 'abcdef',
branch: 'branch',
instanceName: 'branch-instanceName',
ownerUsername: 'ownerUsername',
masterPod: false,
isolated: 'asd76sdasg2341324',
isIsolationGroupMaster: true,
userContentDomain: 'runnableapp.com'
});
// 343gh1--instanceName-staging-ownerUsername.runnableapp.com
hostname.elastic({
shortHash: 'abcdef',
branch: 'branch',
instanceName: 'branch-instanceName',
ownerUsername: 'ownerUsername',
masterPod: false,
isolated: 'asd76sdasg2341324',
isIsolationGroupMaster: true,
userContentDomain: 'runnableapp.com'
});
// instanceName-staging-ownerUsername.runnableapp.com
// Non-repo
hostname.direct({
shortHash: 'abcdef',
instanceName: 'instanceName',
ownerUsername: 'ownerUsername',
masterPod: false,
isolated: 'asd76sdasg2341324',
isIsolationGroupMaster: true,
userContentDomain: 'runnableapp.com'
});
// 343gh1--instanceName-staging-ownerUsername.runnableapp.com
hostname.elastic({
shortHash: 'abcdef',
instanceName: 'instanceName',
ownerUsername: 'ownerUsername',
masterPod: false,
isolated: 'asd76sdasg2341324',
isIsolationGroupMaster: true,
userContentDomain: 'runnableapp.com'
});
// instanceName-staging-ownerUsername.runnableapp.com
FAQs
generate a runnable elastic or direct hostname from parts
The npm package @runnable/hostname receives a total of 17 weekly downloads. As such, @runnable/hostname popularity was classified as not popular.
We found that @runnable/hostname demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.