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
  • Config as code, both on a per account and per val basis (see my comments on Steve's Twitter thread)
  • 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
Readme
Fork
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: "🎁" }));
}
πŸ‘† This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data β€” all from the browser.