FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
ericc
ericcgithub-place
Pixel art on GitHub profile
Public
Like
3
github-place
Home
Code
2
AGENTS.md
H
main.tsx
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
/
AGENTS.md
Code
/
AGENTS.md
Search
8/2/2025
Viewing readonly version of main branch: v58
View latest version
AGENTS.md

AGENTS.md

Build, Lint, and Test

  • Format: deno fmt
  • Lint: deno lint
  • Test all: deno test
  • Test single file: deno test path/to/file.ts
  • Test with filter: deno test --filter "name"
  • Test with permissions: deno test --allow-read

Code Style & Guidelines

  • Use TypeScript/TSX for all code; add types/interfaces for all data structures.
  • Imports: Use https://esm.sh/ or Val Town URLs, always pin versions (e.g., @4.6.12).
  • Never hardcode secrets; use environment variables.
  • Prefer official SDKs/libraries over raw API calls.
  • Use ES6+ and functional programming where possible.
  • Naming: PascalCase for types/interfaces, camelCase for variables/functions, UPPER_SNAKE_CASE for constants.
  • Add comments for complex logic; avoid obvious comments.
  • Let errors bubble unless you can resolve locally; avoid catch blocks that just log or return 500s.
  • For React: Pin all dependencies to 18.2.0 and use /** @jsxImportSource https://esm.sh/react@18.2.0 */.
  • Use TailwindCSS via CDN for styling unless otherwise specified.

Cursor Rules (from .cursorrules)

  • Ask clarifying questions if requirements are ambiguous.
  • Provide complete, functional solutions and test edge cases.
  • Refactor complex code into subcomponents.
  • Follow Val Town platform requirements and utility usage.

For more, see .cursorrules and deno.json in the repo root.

Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.