• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
malcolmocean

malcolmocean

weekly-intentions

Public
Like
weekly-intentions
Home
Code
4
backend
1
README.md
schedule-old.yaml
schedule.yaml
Branches
1
Pull requests
Remixes
History
Environment variables
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
/
Code
/
Search
index.ts
https://malcolmocean--a31b560a37fd11f08b979e149126039e.web.val.run
README.md

Schedule API

A simple API that returns daily schedule items based on the current day of the week.

Files

  • schedule.yaml - Contains the weekly schedule data
  • backend/index.ts - HTTP endpoint that serves the schedule

How it works

  1. The API reads the schedule from schedule.yaml
  2. Determines the current day based on Pacific time
  3. If it's after 8pm Pacific, it uses tomorrow's schedule instead
  4. Returns the schedule items for that day as a multiline string (joined with \n)

Usage

Make a GET request to the endpoint to receive the current day's schedule.

Example response for Tuesday:

6) Gwen aft
MJ) call w Ivan

If there are no items for a day (like Sunday), it returns an empty string.

HTTP
  • index.ts
    malcolmocean--a3…9e.web.val.run
Code
backendREADME.mdschedule-old.yamlschedule.yaml
FeaturesVersion controlCode intelligenceCLI
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
© 2025 Val Town, Inc.