Everything you need to build a Svelte project, powered by sv.
If you're seeing this, you've probably already done this step. Congrats!
# create a new project in the current directory
npx sv create
# create a new project in my-app
npx sv create my-app
Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview.
To deploy your app, you may need to install an adapter for your target environment.
This repo also includes an automated website uptime checker and report generator.
For details on the reports branch structure, CI workflows, and how to run the uptime scripts locally, see CONTRIBUTING.md.
This repo also contains an automated website uptime checker and report generator. Key details:
reports branch, not main.reports/<site>/ with three stable files:latest.json – last check result for that websiteweekly.json – rolling ISO-week aggregate with fields: totalChecks, upCount, downCount, uptimePct, periodStart, periodEndmonthly.json – rolling calendar-month aggregate with the same fieldsreports/weekly.mdreports/monthly.mdThe web app reads from the reports branch via GitHub Raw and expects:
data/sites.yaml – list of sites to monitorreports/latest.json – a convenience file containing the most recent check results across all sites.github/workflows/check-uptime.yaml). Each run updates the per-site latest.json, weekly.json, and monthly.json files in the reports branch. No timestamped files are created.weekly-report.yaml and monthly-report.yaml workflows) generate/update single, stable markdown files in reports/ and also create a GitHub Issue with the summary.Prereqs: Node 20+, npm i.
Run a one-off uptime check (updates ./reports in your working tree):
node --loader ts-node/esm scripts/check-uptime.ts
Generate summaries (writes/updates ./reports/weekly.md or ./reports/monthly.md):
node --loader ts-node/esm scripts/generate-report.ts weekly
node --loader ts-node/esm scripts/generate-report.ts monthly
To publish to the reports branch manually, commit the reports/ and data/sites.yaml changes on that branch and push.