Initial build: SaaS Cost Predictor Chrome extension MVP

This commit is contained in:
Bun Bun
2026-06-14 18:26:44 +00:00
commit 9082038e29
21 changed files with 2653 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
export interface Subscription {
id: string;
name: string;
cost: number;
billingCycle: 'monthly' | 'yearly' | 'weekly';
category: string;
url?: string;
createdAt: string;
history: CostHistoryPoint[];
}
export interface CostHistoryPoint {
date: string;
amount: number;
}
export interface Budget {
monthlyLimit: number;
alertThreshold: number;
}
export interface ForecastResult {
nextMonthForecast: number;
trendDirection: 'up' | 'down' | 'stable';
trendPercent: number;
confidence: 'high' | 'medium' | 'low';
breakdown: CategoryBreakdown[];
alertTriggered: boolean;
alertMessage?: string;
}
export interface CategoryBreakdown {
category: string;
currentSpend: number;
forecastSpend: number;
percentOfTotal: number;
}
export interface AppState {
subscriptions: Subscription[];
budget: Budget;
}