• Townie
    AI
  • Blog
  • Docs
  • Pricing
Log inSign up
yumyab

yumyab

stevensDemo

Remix of geoffreylitt/stevensDemo
Public
Like
stevensDemo
Home
Code
15
dailyBriefing
3
dashboard
4
dbUtils
6
importers
4
shared
1
.cursorrules
.vtignore
README.md
SETUP.md
backstory.ts
deno.json
initializeApp.ts
memoryUtils.ts
populateDemo.ts
resetTelegramChat.ts
Branches
1
Pull requests
Remixes
History
Environment variables
9
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
/
SETUP.md
Code
/
SETUP.md
Search
4/18/2025
Viewing readonly version of main branch: v49
View latest version
SETUP.md

Getting Started with Stevens

This guide will help you set up and personalize your Stevens butler app.

Initial Setup

1. Initialize the App

To set up the app with a fresh database, run:

deno run -A initializeApp.ts --clean

This will:

  • Create a fresh, empty database
  • Set up all necessary database tables and indexes
  • Import calendar events (if Google Calendar API credentials are set)

2. Environment Variables

To use all features, you'll need to set these environment variables:

For LLM functionality:

  • ANTHROPIC_API_KEY - For AI responses and daily briefings

For Telegram integration:

  • TELEGRAM_TOKEN - Your Telegram bot token
  • TELEGRAM_CHAT_ID - Your Telegram chat ID
  • TELEGRAM_SECONDARY_CHAT_ID - (Optional) Secondary Telegram chat ID for sending briefings to multiple recipients

For Google Calendar integration:

  • GOOGLE_CLIENT_ID - Google API client ID
  • GOOGLE_CLIENT_SECRET - Google API client secret
  • GOOGLE_REFRESH_TOKEN - Google OAuth refresh token
  • GOOGLE_CALENDAR_ID - Your Google Calendar ID (or "primary")

3. Running Imports

After setup, you can run individual importers to populate your database:

# Import calendar events deno run -A importers/getCalendarEvents.ts # Import weather data (for Perth, Australia in Celsius) deno run -A importers/getWeather.ts # Generate fun facts deno run -A importers/generateFunFacts.ts

4. Database Management

You can manage your database with these utilities:

# Clean the database (remove all data) deno run -A dbUtils/cleanDatabase.ts # Set up the database structure deno run -A dbUtils/setupDatabase.ts

Personalizing Your App

You can personalize Stevens by:

  1. Adding your own importers for data sources you care about
  2. Modifying the daily briefing format in the dailyBriefing directory
  3. Adjusting location settings (currently set to Perth, Australia)
  4. Changing temperature units (currently set to Celsius)

Regional Settings

The app is currently configured for:

  • Location: Perth, Australia
  • Timezone: Australia/Perth (UTC+8)
  • Temperature: Celsius (°C)
  • Time Format: 12-hour (AM/PM)

Dashboard

Access the admin dashboard through Val Town to view your memories and manage your data.

Security Note

Important: The admin dashboard doesn't have authentication. It relies on security by obscurity. Consider implementing proper authentication if storing sensitive data.

Troubleshooting

If you encounter issues:

  • Check your environment variables are correctly set
  • Ensure you have the necessary permissions for API calls
  • Look at the console logs for detailed error messages
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.