SvelteKit / Svelte 5 port of the original React prediction-tool repo. This variant keeps feature parity with the upgraded source app while using Svelte-native UI components, an SVG trend chart, and local persistence for form values, theme, and language.
The app lets a user enter a flat profile and get:
en / zh)prediction-tool is the original repository and the React / Next.js implementation of the project. This repository is the SvelteKit / Svelte 5 port.
The original project was built for an EE4802 minor project and uses regression models only. There is no Python model-serving backend in this repo. The frontend submits form data to the existing prediction API endpoint and renders the returned trend data.
Because of the way the original project data/model pipeline works, the tool does not forecast arbitrary future dates. It works against the fixed prediction window exposed by the upstream API.
Install dependencies with Bun:
bun install
Start the development server:
bun run dev
The default local URL is usually:
http://localhost:5173
bun run dev
bun run build
bun run preview
bun run check
bun run lint
bun run format
bun run test:unit
bun run test:e2e
https://ee4802-g20-tool.shenghaoc.workers.dev/api/prices (see src/lib/stores/prediction.ts).This repo intentionally keeps @sveltejs/adapter-auto because it’s deployed across multiple targets (Vercel, Cloudflare, Netlify).
If one deployment target becomes the permanent home for this repo later, switching to the platform-specific adapter is still worthwhile for target-specific options and slightly leaner CI installs.
This is no longer the default SvelteKit starter. The repository has been converted into a project-specific SvelteKit / Svelte implementation of the original prediction-tool app.