StartWithYourContext Application

A working AI search app built to learn from. Set your context once, get answers shaped by your situation. Built end-to-end on Cloudflare as a real, open example you can use and adapt.

What is StartWithYourContext

StartWithYourContext is a personal AI search tool that combines Cloudflare AI Search with your saved context to shape every answer. You log in, describe your role and what you are working on and every query gets filtered through that lens. When you ask a question, StartWithYourContext uses Cloudflare AI Search to find relevant, up-to-date information from the web, then filters and frames the results based on who you are.

A product lead asking “how should I validate this?” gets a different answer than a developer asking the same question, because StartWithYourContext knows the difference and searches accordingly.

Why this exists

StartWithYourContext is a learning project and a working application. It exists to show what a real product looks like when built end-to-end on Cloudflare with AI, authenticationd a database. Every part of the stack is here for a reason. The code is written to be read, followed and adapted.

It is also something you can actually use. The search works, the context shapes real results and your preferences persist between sessions. This is not a demo that stops at the happy path. It is a small, complete product that does one thing well.

Generic search gives generic results. AI chat without search gives stale answers. StartWithYourContext combines both: real-time web search through Cloudflare AI Search, shaped by your saved context. You set your role and priorities once, refine them over time and every query benefits from both live search results and your personal lens.

This is also a working example of what a real application looks like when built on a modern Cloudflare stack with authentication, a database, AI search, and edge compute, deployed as a single project.

How it works

  • Sign in using Clerk. Your account is yours, your preferences stay private.
  • Set your context by describing your role, what you are building and what kind of answers are most useful to you.
  • Ask a question. The Worker sends your query to Cloudflare AI Search, which searches the web and returns relevant results. Your saved context is then used to filter, rank and summarise those results into an answer that fits your situation.
  • Review your history. Past queries, search results and answers are stored so you can revisit what worked and refine your context over time.

The stack

StartWithYourContext is built entirely on Cloudflare, with Clerk handling authentication.

  • Cloudflare Pages serves the frontend as a static single-page application.
  • Cloudflare Workers handle the API layer, orchestrating authentication checks, database reads, AI Search calls and response formatting.
  • Cloudflare AI Search powers the search. Each query hits AI Search to retrieve relevant, real-time results from the web. The Worker then combines these results with the user’s saved context to produce a tailored answer.
  • Clerk manages sign-up, login and session tokens. The Worker verifies every request.
  • D1 stores user preferences and query history in a lightweight SQLite database at the edge.

What a query looks like

You type a question. The Worker takes your query and calls Cloudflare AI Search, which returns relevant web results. The Worker then builds a prompt that combines the search results with your saved context and sends it to Cloudflare AI for summarisation. The response comes back grounded in real search results and tailored to your role.

For example, a content creator sets their context to describe their role, the topics they cover and the audience they write for. When they ask "what should I write about next?", AI Search pulls in what already exists on the site and surfaces gaps, patterns and angles that have not been covered yet. The answer is shaped by what they actually publish, not generic content advice.

What gets stored

StartWithYourContext stores the minimum needed to be useful.

  • Preferences: your role, a short description of what you are working on and how you prefer answers to be framed.
  • Query history: your past questions, the search results returned and the AI-generated answers.

No data is shared between users. No data is used to train models. Your context is yours.

Try it

StartWithYourContext is in development as part of the vibe2value project. The source code will be open and documented so you can follow the build, learn from the decisions and adapt it for your own work. If you want early access or want to follow along, join vibe2value.


StartWithYourContext is nuilt to learn from and also built to use.

Share a comment if you found this application useful.