protectiveCrimsonGalliform
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Helper function for a val to get its own ID.
import { getMyValId } from "https://esm.town/v/stevekrouse/getMyValId"
await getMyValId(import.meta.url)
Works even if the val is private if you provide a Val Town API token for the account that owns the private val in question.
Below the Val Town SDK is implicitly authenticated,
because it pulls user's Val Town API token from their
default 'valtown'
environment variable.