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

yawnxyz

testproj

Public
Like
testproj
Home
Code
3
frontend
6
README.md
H
index.ts
Branches
1
Pull requests
Remixes
1
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

Fix "npm:" being imported on the client

Merged
stevekrousewants to merge intoyawnxyz/mainfromstevekrouse/main
Opened by stevekrouse
4/14/2025

The core of the issue was that I needed to include the following in Townie's system prompt: https://www.val.town/x/stevekrouse/OpenTownie/branch/main/history/prompts/system_prompt.txt?v=1003

I just tested it and it seems like it gets the idea now: https://www.val.town/x/stevekrouse/asdf/branch/main/code/index.tsx

I solved the issue in your app simply by removing the "view source" url, but now that Townie has the right prompt, you can ask it to add it back in.

I also simplified your HTTP handler by using the serveFile function, which already adds the right MIME type.

3 files changed
+25
-83

yawnxyz/main
stevekrouse/main

Pull request merged
Merged into stevekrouse/main from yawnxyz/main
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.