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

charmaine

simple-form

Public
Like
simple-form
Home
Code
3
README.md
db.ts
H
main.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
Code
/
README.md
Code
/
README.md
Search
8/4/2025
README.md

Simple Form with SQLite

A minimal form that collects user data and stores it in SQLite.

Files

  • main.ts - HTTP val with form and submission handling
  • db.ts - SQLite database operations

Usage

Visit the HTTP endpoint to see the form. Submit name and email to store in database.

Database

Data is stored in form_submissions table with columns:

  • id (auto-increment)
  • name
  • email
  • created_at (timestamp)
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.