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

willemhelmet

dad-joke-generator

Remix of jxnblk/react-router-hono-starter
Public
Like
dad-joke-generator
Home
Code
9
backend
1
frontend
2
.vtignore
AGENTS.md
README.md
client.tsx
deno.json
routes.tsx
H
server.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 milliseconds.
Sign up now
Code
/
Code
/
Search
server.tsx
https://willemhelmet--0199baef30cb751cae2f86f51420c2fc.web.val.run
README.md

Dad Joke Generator

A simple, cheerful web app that generates cheesy dad jokes using OpenAI's API.

Features

  • 🤖 AI-powered dad joke generation via OpenAI
  • 🎨 Clean, responsive design with TailwindCSS
  • ⚡ Fast and lightweight with Hono backend
  • 🔄 One-click joke generation

How it works

The app consists of:

Backend (backend/index.ts):

  • Hono server handling HTTP requests
  • /api/joke endpoint that calls OpenAI to generate dad jokes
  • Static file serving for frontend assets

Frontend (frontend/):

  • Simple HTML interface with a joke display and generate button
  • TypeScript client-side logic for fetching jokes
  • Responsive styling with TailwindCSS

Deployment

Deploy backend/index.ts as an HTTP val on Val Town. The OpenAI integration is automatically configured using Val Town's standard library.

Usage

  1. Click the "Generate Dad Joke" button
  2. Wait for the AI to generate a fresh dad joke
  3. Laugh (or groan) at the cheesy humor
  4. Repeat as needed!
HTTP
  • server.tsx
    willemhelmet--01…fc.web.val.run
Code
backendfrontend.vtignoreAGENTS.mdREADME.mdclient.tsxdeno.jsonroutes.tsx
H
server.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.