markusHome (utils/config-paths.ts)

markus · packages/shared/src/utils/config-paths.ts · typescript · Apache-2.0
database, Database / ORM

Defines canonical filesystem locations for Markus config and state, ensuring consistent paths across CLI, desktop app, and backend.

// Source: https://github.com/markus-global/markus | License: Apache-2.0 | Copyright 2026 Markus Contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Canonical filesystem locations for Markus configuration & state.
 *
 * SINGLE SOURCE OF TRUTH for every configuration path the platform reads or
 * writes. The CLI, the packaged desktop app and the backend all resolve
 * configuration through this module, so they can never drift apart.
 *
 * Layout — identical for every client (dev, CLI-installed, packaged desktop):
 *
 *   ~/.markus/                     ← MARKUS_HOME (override via env `MARKUS_HOME`)
 *     ├─ markus.json               ← bootstrap + static ops config (config.ts)
 *     ├─ .env                      ← secrets & machine/CI overrides (loadEnvFile)


... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key