Age Estimator is a modern web application that estimates the average age of a person based on their name. The app features a clean, responsive UI, dark mode toggle, and real-time feedback as you type. It is built with SvelteKit and TypeScript, and is designed for fast, interactive user experience.
age-estimator/
├── src/
│   ├── app.d.ts
│   ├── app.html
│   ├── lib/
│   │   ├── assets/         # SVG and icon components
│   │   └── utils/          # Utility functions (e.g., debounce)
│   ├── routes/             # SvelteKit routes
│   │   ├── +layout.svelte  # Main layout with dark mode
│   │   ├── +page.svelte    # Main page UI
│   │   └── +page.ts        # Data loading logic
├── static/                 # Static assets (e.g., favicon)
├── package.json
├── pnpm-lock.yaml
├── svelte.config.js
├── tsconfig.json
├── vite.config.ts
└── README.md
pnpm install
pnpm dev
The app will be available at http://localhost:5173 (or the port shown in your terminal).
To build the project for production:
pnpm build
The output will be in the .svelte-kit and build directories, ready for deployment.
To check code quality and formatting:
pnpm lint
This will run all configured linters (ESLint, etc.) on the project.
This project is deployed on Vercel:
Live URL: https://age-estimator.vercel.app/
For any questions or contributions, please open an issue or pull request.