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

shouser

v2-vals-create-a-val-example

Public
Like
v2-vals-create-a-val-example
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
1
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
README.md

v2/vals Example: Creating a val with a script file

This val shows how to create a val and add a script file to it both with the SDK and with the API. You can find both examples in main.tsx.

Getting Started

  1. Remix this project
  2. Create your own API token here with Val: Read and write permissions
  3. Create an environment variable in your remixed project called VAL_RW_TOKEN and paste your new API token into it
  4. Run main.tsx and you'll create 2 new vals in your account: new-val-sdk and new-val-api
Code
README.mdmain.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.