Avatar

pomdtr

I mainly enjoy building dev tools: - VS Code integration: https://github.com/pomdtr/valtown-vscode - CLI: https://github.com/pomdtr/vt
Joined June 14, 2023
Public vals
318
codejar
pomdtr
codejar
An interactive, runnable TypeScript val by pomdtr
Script
dotShortcut
pomdtr
dotShortcut
Dot Shortcut This val adds a github-like dot shortcut to your website, redirecting to the val.town editor. Usage Add the following script tag to your website head. <script type="module" src="https://esm.town/v/pomdtr/dotShortcut"></script>
Script
cliServer
pomdtr
cliServer
An interactive, runnable TypeScript val by pomdtr
Script
webdav
pomdtr
webdav
An interactive, runnable TypeScript val by pomdtr
HTTP
webdavServer
pomdtr
webdavServer
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.
Script
esm
pomdtr
esm
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
HTTP
publicBlushSnipe
pomdtr
publicBlushSnipe
An interactive, runnable TypeScript val by pomdtr
Script
neverthrow
pomdtr
neverthrow
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); }
Script
illIndigoVicuna
pomdtr
illIndigoVicuna
An interactive, runnable TypeScript val by pomdtr
HTTP
publicRouteTest
pomdtr
publicRouteTest
An interactive, runnable TypeScript val by pomdtr
HTTP
exampleAuth
pomdtr
exampleAuth
An interactive, runnable TypeScript val by pomdtr
HTTP
auth
pomdtr
auth
Minimal Auth Middleware Usage import { auth } from "https://esm.town/v/pomdtr/auth"; export default auth(req => Response.json({message: "You are logged in!"}));
Script
verifyUserEmail
pomdtr
verifyUserEmail
Check that a string match your profile email
Script
coffeeFowl
pomdtr
coffeeFowl
An interactive, runnable TypeScript val by pomdtr
Script
smallwebDashboard
pomdtr
smallwebDashboard
smallweb.json { "permissions": { "env": true, "read": true, "run": [ "smallweb" ] } } .env EMAIL=<your-email>
Script
excalidraw
pomdtr
excalidraw
Excalidraw, embedded inside Val Town ! The drawing will be persisted in your blobs as json / png / svg. You can access the drawing source directly using the /json , /png and /svg subpaths. For example, to embed the image in a markdown document, you can use: ![pomdtr-excalidraw.web.val.run](https://pomdtr-excalidraw.web.val.run/png)
HTTP