A simple chatbot web application built with Preact and TypeScript. Users can chat with an AI-powered bot, with all messages displayed in a modern, responsive UI.
Clone the repository and install dependencies:
git clone <repository-url>
cd chat-ui
npm install
Start the development server:
npm run dev
Open http://localhost:8080 in your browser.
Build the optimized static site:
npm run build
The output will be in the docs/ directory, ready for static hosting (e.g., GitHub Pages).
The chatbot API endpoint is set in src/page.tsx:
const response = await fetch(
`https://ai.liukonen.dev?text=${encodeURIComponent(inputValue)}`
);
To use a different API, change the URL above.
src/ — Main source code (Preact + TypeScript + SASS)docs/ — Production build output (static site)static/ — Static assets (favicon, HTML template, etc.)MIT License © 2023 Luke Liukonen