Skip to Content

paths

Module: vibex/paths

Centralized VibeX path resolution utility

Handles the difference between local development and Railway deployment:

  • Local: ~/.vibex (os.homedir() + ‘.vibex’)
  • Railway: /vibex (VIBEX_STORAGE_PATH environment variable)

Functions

getVibexRoot

View source

Get the root VibeX directory path Respects VIBEX_STORAGE_PATH environment variable for Railway deployment

function getVibexRoot(): string

getVibexPath

View source

Get a path within the VibeX directory structure

function getVibexPath(subPaths: string[]): string

Parameters:

NameTypeDescription
subPathsstring[]

Constants

VibexPaths

View source

Get common VibeX directory paths

const VibexPaths: { readonly root: () => string; readonly config: () => string; readonly spaces: () => string; readonly defaults: () => string; readonly mcpServers: () => string; readonly mcpServerShared: () => string; ... 8 more ...; readonly spaceArtifacts: (spaceId: string) => string; }