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

Abdullah7826

ASKNOVA

Public
Like
ASKNOVA
Home
Code
5
backend
1
frontend
4
shared
1
README.md
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 milliseconds.
Sign up now
Code
/
Code
/
Search
index.ts
https://Abdullah7826--64bbba383b9711f0b1b69e149126039e.web.val.run
README.md

AskNova - Modern ChatGPT Clone

A beautiful, responsive ChatGPT-style web application with enhanced visual aesthetics and smooth user experience.

Features

  • 🎨 Modern Neumorphism/Dark Mode design with theme toggle
  • πŸ’¬ Real-time chat interface with typing indicators
  • πŸ€– OpenAI GPT integration with fallback mock responses
  • πŸ“± Fully responsive design (mobile/tablet/desktop)
  • ✨ Smooth animations and micro-interactions
  • πŸŒ™ Dark/Light mode toggle
  • πŸ“œ Scrollable conversation history with auto-scroll

Project Structure

β”œβ”€β”€ backend/
β”‚   └── index.ts           # Hono API server
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ index.html         # Main HTML template
β”‚   β”œβ”€β”€ index.tsx          # React app entry point
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ App.tsx        # Main app component
β”‚   β”‚   β”œβ”€β”€ ChatBubble.tsx # Individual message component
β”‚   β”‚   β”œβ”€β”€ ChatInput.tsx  # Message input component
β”‚   β”‚   └── ThemeToggle.tsx # Dark/light mode toggle
β”‚   └── style.css          # Global styles
β”œβ”€β”€ shared/
β”‚   └── types.ts           # Shared TypeScript types
└── README.md

API Endpoints

  • GET / - Serves the main application
  • POST /api/chat - Handles chat messages and AI responses
  • GET /frontend/* - Serves frontend assets
  • GET /shared/* - Serves shared utilities

Environment Variables

  • OPENAI_API_KEY - OpenAI API key (optional, falls back to mock responses)

Usage

The application automatically serves on the root path. Simply visit the URL to start chatting with AskNova!

Features Implemented

βœ… Modern UI/UX Design

  • Neumorphism design with dark/light mode toggle
  • Glassmorphism effects on chat bubbles and navigation
  • Animated gradient background with floating shapes
  • Smooth transitions and micro-interactions

βœ… Chat Interface

  • Real-time message exchange with typing indicators
  • Typewriter effect for AI responses
  • Auto-scroll to latest messages
  • Message timestamps
  • Responsive chat bubbles (user right-aligned, AI left-aligned)

βœ… AI Integration

  • OpenAI GPT-4o-mini integration with fallback mock responses
  • Context-aware conversations (sends last 10 messages)
  • Intelligent mock responses for demo purposes
  • Error handling with graceful fallbacks

βœ… Responsive Design

  • Mobile-first approach with breakpoints for tablet/desktop
  • Touch-friendly interface on mobile devices
  • Adaptive layout and typography scaling

βœ… Accessibility & UX

  • Keyboard navigation support (Enter to send, Shift+Enter for new line)
  • Auto-resizing input field
  • Loading states and disabled states
  • Theme persistence in localStorage
  • Semantic HTML and ARIA labels

βœ… Performance & Polish

  • Smooth animations and transitions
  • Optimized bundle with pinned React dependencies
  • Error boundary for client-side error catching
  • Clean, maintainable code structure
HTTP
  • index.ts
    Abdullah7826--64…9e.web.val.run
Code
backendfrontendsharedREADME.mdmain.tsx
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
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.