Public
Like
1
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.
Sends a daily Discord digest of new public vals. It grabs previews of READMEs when it exists. When there's no README, it sends the code to GPT-4o for a summary.
- main.tsx- Main cron function and Discord webhook
- fetch-vals.ts- Fetches and filters new vals using Val Town SDK
- ai-summarizer.ts- Generates OpenAI summaries for vals without READMEs
- Filter out vals that start with untitled-(auto-generated names), blank vals with no files, or vals with an emptymain.tsx
- Skip READMEs that only contains a single header (e.g., "# My Val" with nothing else)
- Filter out commonly remixed utility vals like Blob Admin, SQLiteExplorer
- Skip shallow remixes (forks with ≤3 versions)
- Prioritize main.tsxfiles for AI summaries and limit code sent to OpenAI to 5KB to avoid token limits
- Set DISCORD_WEBHOOKenvironment variable
- Set OPENAI_API_KEYenvironment variable
- Set testMode = falsein main.tsx for production