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

cricks_unmixed4u

client-generator

Remix of cricks_unmixed4u/ai-prompted
Public
Like
client-generator
Home
Code
9
.cursor
1
backend
3
frontend
3
.cursorrules
.vtignore
README.md
deno.json
knowledge.md
H
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
https://cricks_unmixed4u--416d21806c9d4951b87f00a5b42cb8a5.web.val.run
README.md

GPT Wrapper Interface

A Val Town project that provides a web interface for interacting with the GreenPT API through a statically imported GPT wrapper.

Project Structure

├── backend/
│   ├── routes/
│   │   └── serveGptWrapper.tsx  # HTTP trigger for serving the imported GPT wrapper
│   └── index.ts                 # Main entry point for backend services
├── frontend/
│   ├── index.html              # Main HTML template
│   └── index.tsx               # Frontend JS entry point
└── README.md

Features

  • Web interface for sending messages to GPT models
  • Static import of Val Town GPT wrapper module
  • Clean, responsive UI with TailwindCSS
  • Error handling and loading states
  • Support for different GPT models

Usage

  1. Open the web interface
  2. Select a model (currently supports green-l)
  3. Enter your message
  4. Click "Send Message" or use Ctrl+Enter
  5. View the AI response

API Endpoints

  • GET / - Main web interface
  • GET /gpt - API information
  • POST /gpt - Send messages to GPT model

POST /gpt Request Format

{ "model": "green-l", "messages": [ { "role": "user", "content": "Your message here" } ] }

Implementation Notes

This project demonstrates:

  • Static importing of external Val Town modules
  • Hono framework for API routing
  • Val Town utility functions for file serving
  • Clean separation of frontend and backend code
HTTP
  • serveGptWrapper.tsx
    cricks_unmixed4u--51…d9.web.val.run
  • main.tsx
    cricks_unmixed4u--41…a5.web.val.run
Code
.cursorbackendfrontend.cursorrules.vtignoreREADME.mddeno.jsonknowledge.md
H
main.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.