• pomdtr avatar
    hono_island
    @pomdtr
    Hono Island See it in action at @pomdtr/hono_island_demo
    Script
  • pomdtr avatar
    extractValInfo
    @pomdtr
    Extract vals infos (author, name, version) from a val url (either from esm.town or val.town ). Example usage: const {owner, name} = extractValInfo(import.meta.url) Also returns a unique slug for the val: <author>/<name>
    Script
  • pomdtr avatar
    test_explorer_history
    @pomdtr
    An interactive, runnable TypeScript val by pomdtr
    Script
  • pomdtr avatar
    test_explorer_ui
    @pomdtr
    @jsxImportSource https://esm.sh/hono/jsx
    Script
  • std avatar
    API_URL
    @std
    Val Town API URL When Val Town code is run on Val Town servers we use a local URL so we can save time by skipping a roundtrip to the public internet. However, if you want to run your vals that use our API, ie std library vals, locally, you'll want to use our public API's URL, https://api.val.town . We recommend importing and using std/API_URL whenever you use our API so that you are always using the most efficient route. Example Usage import { API_URL } from "https://esm.town/v/std/API_URL"; const response = await fetch(`${API_URL}/v1/me`, { headers: { Authorization: `Bearer ${Deno.env.get("valtown")}`, Accept: "application/json", }, }); const data = await response.json(); console.log(data)
    Script
  • pomdtr avatar
    test
    @pomdtr
    An interactive, runnable TypeScript val by pomdtr
    Script
  • pomdtr avatar
    api
    @pomdtr
    An interactive, runnable TypeScript val by pomdtr
    Script
1
Next
v7
June 26, 2024