Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
// Own vocabulary, not telemetry's SURFACES: the two disagree on the Analyze
// button (Automations here, job.match there) and SURFACES must not grow.
export const AI_USAGE_FEATURES = {
agent_chat: "Agent chat",
job_match: "Job match",
automations: "Automations",
resume_review: "Resume review",
cover_letter: "Cover letter",
resume_import: "Resume import",
} as const;
export type AiUsageFeature = keyof typeof AI_USAGE_FEATURES;
export const FEATURE_BY_NESTED_LABEL: Record<string, AiUsageFeature> = {
review_resume: "resume_review",
match_job: "job_match",
generate_cover_letter: "cover_letter",
};
export const AI_CALL_STATUSES = [
"ok",
"error",
"truncated",
"interrupted",
"timed_out",
"stopped",
] as const;
export type AiCallStatus = (typeof AI_CALL_STATUSES)[number];
// Stopped is a call but never a failure — the user chose it.
export const AI_FAILURE_STATUSES = [
"error",
"truncated",
"interrupted",
"timed_out",
] as const;
export type AiFailureStatus = (typeof AI_FAILURE_STATUSES)[number];
export const AI_PROVIDER_LABELS: Record<string, string> = {
ollama: "Ollama",
openai: "OpenAI",
deepseek: "DeepSeek",
gemini: "Gemini",
openrouter: "OpenRouter",
};
export type AiUsageRange = 7 | 30;
export type AiCallRow = {
id: string;
startedAt: Date;
feature: AiUsageFeature;
provider: string;
model: string;
status: AiCallStatus;
inputTokens: number | null;
outputTokens: number | null;
durationMs: number;
firstTokenMs: number | null;
};
export type AiModelUsage = {
model: string;
tokens: number;
calls: number;
medianMs: number | null;
p95Ms: number | null;
medianFirstTokenMs: number | null;
nearContextLimit: number;
};
export type AiUsageSummary = {
rangeDays: AiUsageRange;
totals: {
inputTokens: number;
outputTokens: number;
calls: number;
previousCalls: number;
failures: number;
stopped: number;
medianMs: number | null;
p95Ms: number | null;
medianFirstTokenMs: number | null;
};
failuresByStatus: Record<AiFailureStatus, number>;
// Oldest first; one entry per calendar day in the viewer's timezone.
days: { date: string; tokensByProvider: Record<string, number> }[];
providers: {
provider: string;
tokens: number;
calls: number;
models: AiModelUsage[];
}[];
features: {
feature: AiUsageFeature;
tokens: number;
calls: number;
medianMs: number | null;
}[];
recent: AiCallRow[];
};