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 miliseconds.
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