FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
pomdtr
pomdtrnotebook
Public
Like
2
notebook
Home
Code
2
README.md
H
main.tsx
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 miliseconds.
Sign up now
Code
/
Code
/
Search
Open in new tab
README.md

Notebook Val

This val automatically serves the codeblock it contains.

Each codeblock is augmented with a set of properties

```html { name: "index.html" } <h1>Hello world</h1> ```

Properties follow JSON5 syntax.

Currently only a name property is supported.

Files

Entrypoint

<html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>Page Title</title> <meta name='viewport' content='width=device-width, initial-scale=1'> <link rel='stylesheet' type='text/css' media='screen' href='main.css'> <link rel="icon" href="https://fav.farm/📔" /> <script src='main.js'></script> </head> <body> <h1>This whole val code is extracted from a README!</h1> <a href="https://www.val.town/v/pomdtr/notebook">View Val</a> </body> </html>

Styling

body { background-color: white; } h1 { color: red; }

Script

console.log("Hi from the readme")
Code
README.md
H
main.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.