@clipwhisperer/common
Version:
ClipWhisperer Common - Shared library providing core utilities, database schemas, authentication, bucket management, and common functionality across all ClipWhisperer microservices
40 lines (37 loc) • 1.15 kB
text/typescript
/**
* Service Configuration Constants
* Centralized service URLs and port configurations
*/
export const SERVICE_PORTS = {
NARRATOR: 9002,
HUB: 9003,
RENDERER: 9004,
SCRAPER: 9001,
} as const;
export const SERVICE_URLS = {
NARRATOR: process.env.NARRATOR_SERVICE_URL || `http://localhost:${SERVICE_PORTS.NARRATOR}`,
HUB: process.env.HUB_SERVICE_URL || `http://localhost:${SERVICE_PORTS.HUB}`,
RENDERER: process.env.RENDERER_SERVICE_URL || `http://localhost:${SERVICE_PORTS.RENDERER}`,
SCRAPER: process.env.SCRAPER_SERVICE_URL || `http://localhost:${SERVICE_PORTS.SCRAPER}`,
} as const;
export const API_ENDPOINTS = {
NARRATOR: {
SYNTHESIZE: "/v1/synthesize",
HEALTH: "/health",
},
RENDERER: {
RENDER_SINGLE: "/v1/renderSingle",
RENDER_WITH_SPEECH_MARKS: "/v1/renderWithSpeechMarks",
TEST_FFMPEG: "/v1/testFFmpeg",
HEALTH: "/health",
},
HUB: {
CREATE_VIDEO_WITH_SPEECH_MARKS: "/v1/video/createWithSpeechMarks",
METADATA: "/v1/metadata",
HEALTH: "/health",
},
SCRAPER: {
SCRAPE: "/v1/scrape",
HEALTH: "/health",
},
} as const;