Avatar

pomdtr

I mainly enjoy tinkering with the val.town api: - VS Code integration: https://github.com/pomdtr/valtown-vscode - CLI: https://github.com/pomdtr/vt
Joined June 14, 2023
Public vals
347
pomdtr avatar
codejar
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
pomdtr avatar
dotShortcut
@pomdtr
Script
Dot Shortcut This val adds a github-like dot shortcut to your website, redirecting to the val.town edit. Usage Add the following script tag to your website head. <script type="module" src="https://esm.town/v/pomdtr/dotShortcut"></script>
pomdtr avatar
cliServer
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
pomdtr avatar
webdav
@pomdtr
HTTP (deprecated)
An interactive, runnable TypeScript val by pomdtr
pomdtr avatar
webdavServer
@pomdtr
Script
Webdav Manage your vals from a webdav client (ex: https://cyberduck.io/) ⚠️ some webdav operations are not supported, so support can vary between clients. Installation Click "Create Val" on the code block, and change it's type to http. import { basicAuth } from "https://esm.town/v/pomdtr/basicAuth"; import { verifyToken } from "https://esm.town/v/pomdtr/verifyToken"; import { serveVals } from "https://esm.town/v/pomdtr/webdavServer"; export default basicAuth(serveVals, { verifyUser: (user) => { return verifyToken(user); }, }); Use a val town token as the username, and keep the password blank to authenticate.
pomdtr avatar
esm
@pomdtr
HTTP
Esm.town proxy (to get proper highlighting in VS Code) Usage https://pomdtr-esm.web.val.run/<author>/<val>@<version>/<filename> Supported filenames: mod.js mod.ts mod.jsx mod.tsx README.md Example: @pomdtr/serveGithubRepo -> https://pomdtr-esm.web.val.run/pomdtr/serveGithubRepo@34/mod.ts
pomdtr avatar
publicBlushSnipe
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
pomdtr avatar
neverthrow
@pomdtr
Script
Usage import { Failure, Success } from "https://esm.town/v/pomdtr/neverthrow?v=5"; const demoFunction = () => { const result = Math.random(); if (result > 0.5) { return Failure( "Math. random produced too high a number", ); } return Success(result); }; const res = demoFunction(); if (res.ok) { console.log(res.value); } else { console.error(res.error); }
pomdtr avatar
illIndigoVicuna
@pomdtr
HTTP (deprecated)
An interactive, runnable TypeScript val by pomdtr
pomdtr avatar
publicRouteTest
@pomdtr
HTTP (deprecated)
An interactive, runnable TypeScript val by pomdtr
pomdtr avatar
blob
@pomdtr
Script
Forked from janpaul123/blob
pomdtr avatar
exampleAuth
@pomdtr
HTTP (deprecated)
An interactive, runnable TypeScript val by pomdtr
pomdtr avatar
auth
@pomdtr
Script
Minimal Auth Middleware Usage import { auth } from "https://esm.town/v/pomdtr/auth"; export default auth(req => Response.json({message: "You are logged in!"}));
pomdtr avatar
verifyUserEmail
@pomdtr
Script
Check that a string match your profile email
pomdtr avatar
VALLE
@pomdtr
HTTP (deprecated)
Forked from janpaul123/VALLE
pomdtr avatar
status
@pomdtr
HTTP (deprecated)
Forked from stevekrouse/status