pomdtr avatar
extractImports
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
nbbaier avatar
ideaList
@nbbaier
Script
An interactive, runnable TypeScript val by nbbaier
pomdtr avatar
edit_blob
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
pomdtr avatar
devtools
@pomdtr
Script
Devtools shortcuts Add useful shortcuts to a val website. Usage /_edit -> go to the val editor /_raw -> view val source /_logs -> view val logs Example import { devtools } from "https://esm.town/v/pomdtr/devtools"; export default devtools((_req: Request) => { return new Response("hello world"); });
nbbaier avatar
vtWishList
@nbbaier
HTTP
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) [x] Editing a val's readme through the API [x] 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
pomdtr avatar
mdx
@pomdtr
HTTP
export const title = "mdx" {title} Usage import { extractValInfo } from "https://esm.town/v/pomdtr/extractValInfo"; import { mdx } from "https://esm.town/v/pomdtr/mdx"; const { author, name } = extractValInfo(import.meta.url); export default mdx(author, name);
pomdtr avatar
cmdk_command
@pomdtr
HTTP
An interactive, runnable TypeScript val by pomdtr
postpostscript avatar
readmeManager
@postpostscript
HTTP
@postpostscript/readmeManager: Edit Val Readmes With Persistent Drafts edit this readme Todo: [ ] Upload images [ ] Autosave/save without reloading page [ ] Ctrl+S [ ] Multiple draft versions [ ] Switch to dark codemirror theme which has markdown styling [ ] Allow for checking checkboxes in preview [ ] View with just the preview [ ] Ability to favorite vals on the Home page
pomdtr avatar
test_explorer
@pomdtr
HTTP
Test Explorer Click on the play button next to list items to run them. Usage Fork this val Create new tests in any of vals (and export them) (see @pomdtr/example_test) import { assertEquals } from "https://deno.land/std@0.216.0/assert/mod.ts"; import { Test } from "https://esm.town/v/<account>/test_explorer"; export const exampleTestSuccess = new Test(() => { assertEquals(1 + 1, 2); }); export const exampleTestFailure = new Test(() => { assertEquals(1 + 1, 3); }); Go to https://<account>-test_explorer.web.val.run to run your test click on the val name to go to the val the tests are originating from click on the test name to run it ℹī¸ You probably want to protect your test explorer behind an authentication middleware like @pomdtr/basicAuth Discovery mechanism In order to define a test, the user need to import the Test class from https://val.town/v/<account>/Test . So we can use the api to search for vals containing the https://val.town/v/<account>/Test string to locate the vals containing tests. Next, we need to extract the tests from the val exports. We use exported instanceof Test to filter them (at some point we will probably use static analysis for this). TODO [x] persist test results in sqlite [x] Improve styling (help welcome ❤ī¸) [ ] View logs in a modal [ ] Batch http requests
pomdtr avatar
article
@pomdtr
HTTP
Use readme as website Usage import {article} from "https://esm.town/v/pomdtr/article" export default article() See this val http endpoint as an example: https://pomdtr-article.web.val.run
pomdtr avatar
val_town_by_example_parse
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
postpostscript avatar
apiProxy
@postpostscript
HTTP
An interactive, runnable TypeScript val by postpostscript
pomdtr avatar
readme
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
pomdtr avatar
frontmatter
@pomdtr
Script
pomdtr avatar
valTownToSQLite
@pomdtr
Script
Val Town To SQLite Dump all public vals to an sqlite table TODO [x] Upsert instead of insert
nbbaier avatar
findIdeaLists
@nbbaier
Script
An interactive, runnable TypeScript val by nbbaier
v17
April 10, 2024