A modern, responsive chat interface built with React and TypeScript, designed to provide an intuitive and engaging chat experience. This project implements a generative AI chat interface with a clean and professional design.
- Vite
- TypeScript
- React
- shadcn-ui
- Tailwind CSS
Make sure you have Node.js & npm installed on your system.
# Clone the repository
git clone <repository-url>
# Navigate to the project directory
cd generative-chat-ui
# Install dependencies
npm install
# Start the development server
npm run dev
This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.
MIT License
Copyright (c) 2024
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This project includes a 2D simulation built with native Three.js. The simulation features the following elements:
- A box positioned on the floor that bursts open at random intervals, simulating an explosion.
- Upon explosion, the box releases multiple particles that display prime numbers.
- The prime numbers are genuinely computed on the fly using a trial division algorithm. This guarantees that each number is a true prime.
- The computed prime is formatted in scientific notation with 3 decimal places (e.g.,
7.000e0
). - The particles follow basic physics: they are launched in a fan-shaped burst, experience gravity, and have velocity decay.
- Additionally, particles freeze at their peak for 3 seconds before falling back down, adding a dramatic slow-motion effect.
This simulation demonstrates a creative approach to combining computational mathematics with real-time graphics and physics.