Public
Like
Budget
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
index.ts
https://Benmichaelx--0a35c6f23fb711f0af7776b3cceeab13.web.val.run
A comprehensive budget management application that helps users make informed financial decisions based on their income and expenses.
- Income & Expense Tracking: Input and categorize all sources of income and expenses
- Budget Analysis: Real-time analysis of financial health and spending patterns
- Smart Recommendations: AI-powered suggestions for downsizing or upscaling lifestyle
- Savings Goals: Track progress toward financial objectives
- Data Persistence: Secure storage of financial data
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema setup
β β βββ queries.ts # Database operations
β βββ routes/
β β βββ budget.ts # Budget analysis endpoints
β β βββ static.ts # Static file serving
β βββ index.ts # Main Hono server
βββ frontend/
β βββ components/
β β βββ App.tsx # Main application component
β β βββ BudgetForm.tsx # Income/expense input form
β β βββ BudgetAnalysis.tsx # Analysis and recommendations
β β βββ Dashboard.tsx # Overview dashboard
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
β βββ style.css # Custom styles
βββ shared/
βββ types.ts # Shared TypeScript interfaces
βββ utils.ts # Shared utility functions
GET /
- Main application pageGET /api/budget
- Get user's budget dataPOST /api/budget
- Save budget dataPOST /api/analyze
- Get budget analysis and recommendationsDELETE /api/budget/:id
- Delete budget entry
- Backend: Hono (TypeScript API framework)
- Frontend: React with TypeScript
- Database: SQLite for data persistence
- Styling: TailwindCSS
- AI: OpenAI for intelligent recommendations