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

yawnxyz

mockingbird

Public
Like
mockingbird
Home
Code
3
backend
core
2
frontend
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
/
core
/
README.md
Code
/
core
/
README.md
Search
10/25/2025
Viewing readonly version of main branch: v5
View latest version
README.md

Core Modules

This directory contains the core functionality for the Mockingbird app.

Files

utils.js

Core utility functions:

  • readFileContent(filePath) - Environment-aware file reading (Val Town vs local Deno)
  • generateId() - Generate unique IDs
  • nowTs() - Get current timestamp

routes.js

Route setup for the Hono app:

  • Defines all HTTP endpoints
  • Handles error unwrapping
  • Serves static files and API endpoints

Usage

Import utilities and routes in your main.js:

import { setupRoutes } from './core/routes.js'; import { readFileContent, generateId } from './core/utils.js';

Adding New Core Modules

Create new modules in this directory for shared functionality:

// core/auth.js export function checkAuth(token) { // authentication logic }

Then import where needed:

import { checkAuth } from './core/auth.js';
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.