lynkr
Version:
Self-hosted LLM gateway and tier-routing proxy for Claude Code, Cursor, and Codex. Routes across Ollama, AWS Bedrock, OpenRouter, Databricks, Azure OpenAI, llama.cpp, and LM Studio with prompt caching, MCP tools, and 60-80% cost savings.
41 lines (35 loc) • 682 B
JavaScript
/**
* Worker Thread Pool Module
*
* Exports all worker pool functionality for easy importing.
*
* @module workers
*/
const { WorkerPool, getWorkerPool, isWorkerPoolReady } = require('./pool');
const {
asyncClone,
asyncParse,
asyncStringify,
asyncTransform,
syncClone,
syncTransform,
getPoolStats,
OFFLOAD_THRESHOLD,
} = require('./helpers');
module.exports = {
// Pool management
WorkerPool,
getWorkerPool,
isWorkerPoolReady,
// Async helpers (use worker pool when available)
asyncClone,
asyncParse,
asyncStringify,
asyncTransform,
// Sync fallbacks
syncClone,
syncTransform,
// Utilities
getPoolStats,
OFFLOAD_THRESHOLD,
};