Public
Like
jessiesdata
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
index.ts
https://neverstew--1f7ef0781f3d11f0869d569c3dd06744.web.val.run
Downloads ecological data from policysupport.org and saves it to blob storage. The script:
- Fetches CSV data from the specified URL
- Saves the data to blob storage with a timestamped key
- Also saves the data with a consistent key "eco_data_latest" for easy access to the most recent data
To run this script manually, you can call it directly. To schedule it to run automatically, you can set up a cron trigger in the Val Town web UI.
Renders the ecological data from blob storage in a clean, interactive HTML table. Features:
- Displays data in a responsive, well-formatted table
- Allows sorting by clicking on column headers
- Includes search functionality to filter the table
- Provides a download button to export the data as CSV
- Highlights search matches in the table
This val requires that data has been previously downloaded using the downloadEcoData.ts
script.