Public vals
118
maxm
apiProxy
Fork this and set the endpoint as your VAL_TOWN_BASE_URL to intercept and inspect your api requests.
HTTP
maxm
extractProjectValInfo
Like https://www.val.town/v/pomdtr/extractValInfo, but for projects. (Should probably be contributed back to pomdtr's)
Script
maxm
importProjectFile
Simple wrapper to download project static files. import { importProjectFile } from "https://esm.town/v/maxm/importProjectFile";
const styleCss = await importProjectFile(import.meta.url, "../public/style.css")
Script
maxm
lockfileImportMap
Lockfile Import Map Use an import map to make sure your Val frontend and backend are always using the exact same versions. We already track the versions of your https imports in the Deno lockfile. Now you can expose those on the frontend as well using an import map. Use it like so: import { lockfileImportMap } from "https://esm.town/v/maxm/lockfileImportMap"
return new Response(`
<script type="importmap">${lockfileImportMap()}</script>
<script type="module" src="${import.meta.url}"></script>
`, { headers: {"content-type": "text/html"}}); Here's an example app I made with townie: https://www.val.town/v/maxm/emojiTodoListApp You can see that the "https://esm.sh/react" import imports the version directly without any redirects. Saving on network hops and also ensuring version stability!
Script
maxm
hnhiringStats
Scrapes hnhiring.com for the total count of job postings in every Who's Hiring post on Hacker News: 194 jobs, january 2025
337 jobs, december 2024
325 jobs, november 2024
342 jobs, october 2024
311 jobs, september 2024
328 jobs, august 2024
384 jobs, july 2024
351 jobs, june 2024
418 jobs, may 2024
306 jobs, april 2024
313 jobs, march 2024
356 jobs, february 2024
294 jobs, january 2024
337 jobs, december 2023
388 jobs, november 2023
353 jobs, october 2023
318 jobs, september 2023
367 jobs, august 2023
342 jobs, july 2023
358 jobs, june 2023
423 jobs, may 2023
380 jobs, april 2023
434 jobs, march 2023
465 jobs, february 2023
386 jobs, january 2023
505 jobs, december 2022
544 jobs, november 2022
481 jobs, october 2022
529 jobs, september 2022
664 jobs, august 2022
556 jobs, july 2022
753 jobs, june 2022
792 jobs, may 2022
771 jobs, april 2022
829 jobs, march 2022
841 jobs, february 2022
686 jobs, january 2022
788 jobs, december 2021
993 jobs, november 2021
816 jobs, october 2021
958 jobs, september 2021
882 jobs, august 2021
921 jobs, july 2021
1022 jobs, june 2021
888 jobs, may 2021
918 jobs, april 2021
945 jobs, march 2021
979 jobs, february 2021
Script