
Nyarlathoteppppp/pi-heed on GitHub
- Stars
- 7
- Forks
- 1
- Language
- TypeScript
- License
- MIT
- Last push
- 19 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
const OPENROUTER_URL = "https://openrouter.ai/api/alpha/decisions";
const TYPESAFE_URL = "https://api.typesafe.ai/v1/systemone";
/** Reads KEY=value from a dotenv file without exporting anything else. */
function fromEnvFile(path: string | undefined, name: string): string | undefined {
if (!path) return undefined;
try {
const line = readFileSync(path, "utf8")
.split("\n")
.find((l) => l.startsWith(`${name}=`));
return line?.slice(name.length + 1).trim().replace(/^["']|["']$/g, "") || undefined;
} catch {
return undefined;
}
}

