Architecture overview
The foundation is a statically-rendered Next.js application (App Router, React Server Components, Tailwind CSS). Almost everything is plain HTML and CSS generated at build time; JavaScript is limited to a few progressive enhancements — the scroll reveal, the homepage opening, the reading wheel on /reading, and the conversation shell on /ask. The AI layer, when it arrives, will be a single server-side API route in the same application. No database, no CMS, no analytics.
Visitor’s browserImplemented
Static pages, small amount of client JavaScript.
Next.js applicationImplemented
App Router, server components, static-first rendering.
POST /api/askPlanned
Server route: validation, rate limiting, budget checks.
Grounding layerPlanned
Curated content files assembled into the prompt context.
LLM providerPlanned
One outbound call per message, capped output length.
Scroll-driven openingImplemented
The homepage opens on a painted loom and travels through a doorway to a desk as you scroll. The server sends a complete static hero: the loom picture with the name, role, and links. Where scripting and motion are allowed, CSS pins that stage for a little over two screens of scrolling, and a small controller maps the scroll position to one progress value that selects the scene.
- Three still images and one four-second clip. The clip never plays; it stays paused and is moved to the frame that matches the scroll position, so scrolling back runs the scene in reverse.
- The clip is fetched once, after the first picture, and held in memory so any frame can be reached. If it is slow or missing, a still stands in for it.
- Scrolling stays native. The picture follows the scrollbar with a short, bounded ease, and links that jump past the stage skip the sequence.
- With reduced motion or without JavaScript, the page keeps the static hero. There is no scroll library and no WebGL.
Request flowPlanned
- A visitor sends a question from the /ask interface.
- The server validates the message: length limits, conversation-length limits, basic abuse filtering.
- Rate limits and the monthly budget are checked before any model is called.
- Relevant sections of the curated portfolio content are selected and assembled into the prompt.
- The model responds under strict instructions to stay inside that material.
- The answer is streamed back. Nothing about the visitor is persisted beyond short-lived operational logs.
Curated knowledge sourceImplemented
All portfolio content — profile, projects, engineering principles, suggested questions — lives in structured, version-controlled files under src/content/. The pages you are reading render from those files, and the assistant will draw from the same source. One body of content, reviewed by a human, used everywhere. There is no vector store; the corpus is small enough to curate by hand.
AI groundingPlanned
The assistant will not answer from the model’s general knowledge of the world. Its prompt will contain the curated content plus explicit instructions: represent Oğuzhan accurately, cite only what the material supports, and say “I don’t know” rather than improvise.
Hallucination boundariesPlanned
- No invented employers, dates, metrics, or credentials — if it is not in the curated content, it is not in the answer.
- No speculation about salary, availability, or private matters; those are redirected to email.
- Off-topic requests (general coding help, opinions on other people) are declined politely.
- The assistant always identifies itself as an AI assistant, never as Oğuzhan.
Rate limiting & abuse protectionPlanned
Per-visitor and global rate limits, message-length caps, and a bounded conversation length. Suspicious traffic degrades gracefully to a static “please email instead” response rather than an error wall.
Token & cost controlsPlanned
A personal site should have a boring bill. The design caps output tokens per reply, truncates conversation history sent to the model, and enforces a hard monthly budget — when it is reached, the assistant pauses for the month and says so honestly.
Privacy & data retentionPlanned
No accounts, no tracking pixels, no analytics. The one third-party request is on /reading, where book covers are loaded from Open Library. Today the /ask page has no backend at all — messages never leave the browser. Once live, conversations will be processed to generate the reply and retained at most briefly for operational debugging, with the exact retention window documented here before launch.
Human handoffFuture consideration
Some conversations should end with a person. A future iteration will let a visitor leave a message the assistant forwards to Oğuzhan by email — an explicit, consent-based handoff, not silent monitoring of the conversation.
DeploymentImplemented
A standard Next.js build with no special infrastructure: static output where possible, server rendering only where needed. The repository is deployable to any Node.js-capable host. Document the actual hosting provider and CI/CD setup.
Future improvements
- Connect the assistant to a language model behind the guardrails above. Planned
- Full case-study pages for each project. Planned
- Streaming responses with visible grounding references. Future consideration
- Human handoff to email. Future consideration
- Typography upgrade to the selected Adobe Fonts pairing. Planned