Back to Projects

Static Profiling Website with AI Chatbot

A static profiling website hosted on Netlify with an AI chatbot feature powered by Gemini API via Cloudflare Worker.

Technologies Used

HTML CSS JavaScript Cloudflare Workers Gemini API Netlify

Project Overview

This project was a personal initiative to create a modern, static profiling website that not only showcases my skills but also integrates cutting-edge AI capabilities. The core feature is an interactive chatbot, allowing visitors to ask questions about my profile, which are answered by the Google Gemini API.## My Role & Key ContributionsAs the sole developer, I was responsible for the entire stack:

  • Frontend Development: Designed and built a clean, responsive user interface using HTML, CSS (Tailwind CSS for utility-first styling), and vanilla JavaScript for interactive elements.
  • Backend Integration (Cloudflare Worker): Implemented a Cloudflare Worker as a secure and efficient intermediary between the static website and the Gemini API. This worker handled API key management and request routing, ensuring no sensitive information was exposed on the client-side.
  • AI Chatbot Logic: Developed the JavaScript logic for the chatbot, managing user input, API requests to the Cloudflare Worker, and displaying AI-generated responses in a conversational interface.
  • Deployment & Optimization: Successfully deployed the static site on Netlify and the Cloudflare Worker on Cloudflare’s edge network, ensuring fast global access and low latency for the chatbot.

Technical Challenges & Solutions

One of the main challenges was securely integrating the Gemini API without exposing the API key client-side. This was elegantly solved by using a Cloudflare Worker as a proxy. The worker received the user’s query from the frontend, made a secure server-side request to the Gemini API, and returned the AI’s response to the client. This approach also allowed for potential rate limiting and additional security measures at the edge.Another area was optimizing the static site for performance, which was achieved through efficient asset loading and Netlify’s CDN. I also focused on creating a smooth, responsive design that adapted well to various screen sizes.

Impact & Learnings

This project significantly enhanced my understanding of:

  • Serverless Functions: Practical application of Cloudflare Workers for backend logic at the edge.
  • API Integration: Secure and efficient consumption of external APIs (Google Gemini API).
  • Static Site Generation: Best practices for building and deploying high-performance static websites.
  • Rapid Prototyping: The ability to quickly integrate new technologies and deliver a functional, impressive feature ahead of schedule.

Visual Showcase

Mekarsari Website Preview A preview of the chatbot interface on the profiling website.

Live Demo