Pomdtr's Ideas
Vals
Vt Cli
VS Code Extension
- Replace pinned section by a folder defined as a val
import { api } from "https://esm.town/v/pomdtr/api";
export const dynamicFolder = async () => {
const { data: posts } = await api(`/v1/search/vals?q=${encodeURIComponent("@post")}`);
return {
folder: "Blog",
items: [
{
folder: "Posts",
items: posts.sort((a, b) => a.createdAt > b.createAt).map(post => `${post.author.username}.${post.name}`),
},
"@pomdtr/blog",
],
};
};
- Preview and edit blobs from VS Code (ex: excalidraw schema)
- Save and run sql queries ?
- Language Server
- go to definition to switch between vals
Sunbeam
- Leverage the dynamic folder val of the vscode extension
Notification Service
- Create a PWA hosted on val.town to send notifications on the user device
Sqlite Admin UI
Form Builder for vals
Create a val that:
- statically analyze val code to find single/default import
- extract param types
- use it to generate a form, availaible on the val http endpoint
- dynamically import the val
- return val output as JSON, or html if a string is returned