A lighthouse score tracking tool in Go, SQLite and React/Svelte.
- Go REST API and cron for fetching website performance scores with the Google Lighthouse CLI tool . Data saved locally in the app with SQLite.
- React & Svelte widgets for displaying the results.
Very much in progress..
- Test suite (Go testing package)
- Add basic templates for viewing response directly
- Fix bug where date_fetched and date_edited in DB are in different timezones (GMT / BST)
- Fix bug where temporary CLI results file is not always removed.
- Decide how to handle description field in the site table.
- Code needs a bit of a tidy in terms of structure and organised comments
Check if the API is up
Fetch the latest report saved in the DB for a specific website
Params:
url String (required) (url param)
Fetch the latest report saved in the DB for all registered websites
Params:
url String (required) (url param)
Trigger a refetch of the report for a specific website
Params:
url String (required) (url param)
Trigger a refetch of the report for all registered websites
Params:
n / a
View the latest report for a specific website
Params:
url String (required) (url param)
View the latest reports for all registered websites
Params:
TBC