Public
HTTP (deprecated)
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Readme

My Val Town Wish List

Some things I'd love to see come to val town (some of these are already on the way according to the team)

  • Editing a val's readme through the API
  • A command bar (something like paco's cmdk would be dope)
  • The ability or programmatically respond to events (like a val being run) right within Val Town
  • User defined templates usable right in the val creation flow
  • Public folders / ability to add readmes to folders
  • Dynamic folders (ala Tana's search nodes)
  • Custom val metadata (such as tags)
  • A more fully featured markdown editor for readmes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// @title My Val Town Wish List
import { api } from "https://esm.town/v/pomdtr/api";
import { extractMetadata } from "https://esm.town/v/pomdtr/extractMetadata";
import { extractValInfo } from "https://esm.town/v/pomdtr/extractValInfo";
import { gfm } from "https://esm.town/v/pomdtr/gfm";
import { html } from "https://esm.town/v/stevekrouse/html?v=5";
export async function examplePost(req: Request) {
const { author, name } = extractValInfo(import.meta.url);
const { code, readme } = await api(`/v1/alias/${author}/${name}`);
const title = extractMetadata("title", code);
return html(await gfm(readme, { title, favicon: "๐ŸŽ" }));
}
nbbaier-vtwishlist.web.val.run
December 9, 2023