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

sultanoloyede

stock_forecast

Public
Like
stock_forecast
Home
Code
4
backend
1
frontend
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://sultanoloyede--6c601c2a39bc11f09efc9e149126039e.web.val.run
README.md

Probability Display Website

A beautiful, responsive website that fetches probability data from an external API and displays it in an aesthetic manner.

Features

  • 🎯 Fetches data from https://2275-65-95-228-32.ngrok-free.app/predict
  • πŸ“Š Extracts probability value and converts to percentage (multiplies by 100)
  • 🎨 Beautiful gradient design with animated elements
  • πŸ“± Fully responsive for mobile and desktop
  • πŸ”„ Auto-refresh every 30 seconds
  • ⚑ Real-time loading and error states
  • 🎭 Smooth animations and transitions

Project Structure

β”œβ”€β”€ backend/
β”‚   └── index.ts          # Hono API server with probability endpoint
β”œβ”€β”€ frontend/
β”‚   └── index.html        # Main website with aesthetic display
└── README.md

API Endpoints

  • GET / - Main website
  • GET /api/probability - Fetches and processes probability data

Design Features

  • Animated Circle: Pulsing gradient circle displaying the percentage
  • Loading States: Elegant spinner while fetching data
  • Error Handling: User-friendly error messages with retry functionality
  • Auto-refresh: Updates data every 30 seconds automatically
  • Responsive: Works perfectly on all device sizes

Technical Stack

  • Backend: Hono framework for API handling
  • Frontend: Vanilla HTML/CSS/JS with TailwindCSS
  • Styling: Custom CSS animations + Tailwind utilities
  • Fonts: Google Fonts (Inter)
HTTP
  • index.ts
    sultanoloyede--6c…9e.web.val.run
Code
backendfrontendREADME.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.