Public
Like
2
new-val-notifications
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.
Viewing readonly version of main branch: v76View latest version
Sends a daily Discord digest of new public vals from Val Town. It grabs previews of READMEs when it exists. When there's no README, it will send the code to GPT-4o for a summary.
main.tsx- Main cron function and Discord webhookfetch-vals.ts- Fetches and filters new vals using Val Town SDKai-summarizer.ts- Generates OpenAI summaries for vals without READMEs- [test]
scratch.ts- Just for clearing SQLite DB during testing
- We filter out blank vals, or vals with an empty
main.tsx - We filter out commonly remixed val names like Blob Admin, SQLiteExplorer (since we don't have a public API to check remixes)
- Because of missing remixes from the API, we also store hashes of READMEs in a SQLite DB to avoid getting notified about remixes without edits.
- Set
DISCORD_WEBHOOKenvironment variable - Set
OPENAI_API_KEYenvironment variable - Set
testMode = falsein main.tsx for production