• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
nicoyoung

nicoyoung

untitled-9102

Public
Like
untitled-9102
Home
Code
5
backend
1
frontend
3
shared
2
README.md
H
main.ts
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
/
README.md
Code
/
README.md
Search
…
Viewing readonly version of main branch: v17
View latest version
README.md

Real Estate Search Bar

A magical real estate search interface that parses natural language queries in real-time as you type.

Features

  • Live Parsing: Filters update instantly as you type, character by character
  • Natural Language: Type "2 bed 3 bath under 500k in Brooklyn with yard" and watch the magic happen
  • Visual Feedback: Colored underlines show what's been parsed
  • Bidirectional: Manual filter changes don't get overwritten
  • Smart Parsing: Handles various formats like "2br", "1.5ba", "500k", "$1M"
  • Real Results: Displays actual property listings based on your search criteria
  • Responsive Design: Works beautifully on desktop and mobile

Structure

  • frontend/ - React-based search interface with property listings
  • backend/ - Hono API server with search endpoints
  • shared/ - Shared types and parsing utilities

API Endpoints

  • GET / - Main application interface
  • GET /api/search - Property search with filter parameters
  • GET /api/health - Health check endpoint

Usage

Type naturally in the search bar and watch filters populate automatically:

  • Beds: "2 bed", "3br", "2 bedroom"
  • Baths: "2 bath", "1.5ba", "2 bathrooms"
  • Price: "under 500k", "below $1M", "above 300k"
  • Neighborhoods: Brooklyn areas (Bed Stuy, Williamsburg, etc.)
  • Features: yard, parking, garage, doorman, etc.

Demo Examples

Try these search queries to see the magic:

  • "2 bed 2 bath under 800k in Williamsburg"
  • "3 bedroom townhouse with yard in Park Slope"
  • "condo with doorman and gym under 1M"
  • "apartment in Bed Stuy with parking above 400k"

Technical Implementation

  • Frontend: React 18 with TypeScript, TailwindCSS for styling
  • Backend: Hono framework with mock property data
  • Parsing: Custom natural language parser with regex patterns
  • Real-time: Debounced search with loading states
  • Responsive: Mobile-first design with grid layouts
FeaturesVersion controlCode intelligenceCLIMCP
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
© 2026 Val Town, Inc.