
webdevcody/jevs-fly on GitHub
- Stars
- 14
- Forks
- 4
- Language
- JavaScript
- Last push
- 19 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
const PORT = Number(process.env.PORT || 5173);
const API_KEY = process.env.TYPESAFE_API_KEY;
const API_URL = process.env.TYPESAFE_API_URL || "https://api.typesafe.ai/v1/systemone";
const MODEL = process.env.TYPESAFE_MODEL || "jev-latest";
// Per-million-token prices used for the proof-of-use line below. Output is billed separately
// from input and dominates the bill at the rate the fly calls, so both are counted.
const INPUT_USD_PER_MTOK = Number(process.env.TYPESAFE_INPUT_USD_PER_MTOK || 0.042);
const OUTPUT_USD_PER_MTOK = Number(process.env.TYPESAFE_OUTPUT_USD_PER_MTOK || 0.21);
// TYPESAFE_TRACE=N saves the first N request/response pairs to .audit/trace/ (API key never written).
const TRACE_MAX = Number(process.env.TYPESAFE_TRACE || 0);
const TRACE_DIR = path.join(ROOT, ".audit/trace");
let traced = 0;
// Each finished flight (path, Jev's decisions, how it ended) is appended to
// .audit/flights/flights-YYYY-MM-DD.jsonl. FLIGHT_LOG=0 turns it off.
const FLIGHT_LOG = process.env.FLIGHT_LOG !== "0";


