• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
alexwein

alexwein

utils

Remix of std/utils
Public
Like
utils
Home
Code
6
file
1
parseImportMeta
3
serve-file
1
test
2
README.md
index.ts
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
https://alexwein--27a109b5c0a1408083d362b4ac38456d.web.val.run
README.md

Val Town Project Utilities

These utils are very rapidly developing, so expect breaking changes.

  • file - reading files and directories in Projects
  • parseImportMeta - parse project info out of its importa.meta.url
  • serve-file - return Project files as HTTP Responses with proper content-types
  • test - a little framework for running tests and displaying the results as HTML and a badge

Usage

Import them with version pins to be safe:

Create val
import { parseProject, serveFile } from "https://esm.town/v/std/utils@79-main/index.ts";

Example usage: https://www.val.town/x/std/reactHonoStarter/code/backend/index.ts

HTTP
  • project.test.ts
    alexwein--27…6d.web.val.run
  • example.test.ts
    alexwein--e0…7a.web.val.run
Code
fileparseImportMetaserve-filetestREADME.mdindex.ts
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.