• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
drewmcdonald

drewmcdonald

inbox

Public
Like
inbox
Home
Code
13
mcp
2
server
5
.vtignore
CLAUDE.md
PROJECT.md
TODO.md
apiClient.ts
cleanupCron.ts
deno.json
E
emailHandler.ts
H
httpHandler.ts
localMcpServer.ts
mcp-config.example.json
Branches
1
Pull requests
Remixes
History
Environment variables
2
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.
Sign up now
Code
/
TODO.md
Code
/
TODO.md
Search
10/21/2025
Viewing readonly version of main branch: v289
View latest version
TODO.md

TODO

High Priority

Error Handling & Retry

Implement consistent error handling strategy across the codebase:

  • Issue: Email handler catches and sends error emails (inconsistent with "fail fast" philosophy)
  • Decision needed: Should we retry on transient failures (SQLite lock, network issues)?
  • Consider: Dead-letter queue for failed email processing
  • File: emailHandler.ts:29-39

Cleanup Cron Job

The hardDeleteProcessedRecords() function is implemented but never invoked.

  • Action: Create Val.town cron trigger to run cleanup periodically (daily or weekly)
  • Function: InboxService.hardDeleteProcessedRecords() (InboxService.ts:88)

Medium Priority

Attachment Download Endpoint

Current implementation returns attachment metadata. Consider adding direct download capability:

  • Current: GET /:recordId/attachments → returns JSON list of attachments
  • Add option 1: GET /:recordId/attachments/:blobId → download specific attachment
  • Add option 2: GET /attachments/:blobId → direct blob download (simpler)
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.