This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a Deno project configured for Val Town development. The project uses TypeScript with Val Town-specific types and has experimental features enabled for Node.js compatibility.
deno lint
deno check [file.ts]
deno run [file.ts]
"lock": false
)noImplicitAny: false
, strict: false
)https://www.val.town/types/valtown.d.ts
Always check the the Documentation if you are unsure how to do a thing which is available under https://docs.val.town/ or as repo at https://github.com/val-town/val-town-docs.
File Naming Conventions:
*.http.tsx
*.cron.tsx
*.email.tsx
Standard Val Town Imports:
import { blob } from "https://esm.town/v/std/blob";
import { sqlite } from "https://esm.town/v/std/sqlite";
import { OpenAI } from "https://esm.town/v/std/openai";
import { email } from "https://esm.town/v/std/email";
Key Development Rules:
Deno.env.get()
https://esm.sh
for npm dependenciesnew Response(null, { status: 302, headers: { Location: "/path" }})
for redirects