Hafiz Khalid · hmsk.life

FAQ Chatbot

An FAQ chatbot for your website that answers from your own documents

For small businesses, shops and clubs that answer the same questions every day. Your documents are searched in your browser, answers cite the exact passage, and the AI key is yours. When it works, download it as a widget for your own website.

Runs
In your browser
Signup
Not needed
Licence
MIT, open source
Topic
Apps to run yourself
  1. 1.

    Use it free

    Open it in your browser. The first result needs no signup.

  2. 2.

    Run it yourself

    Open source under MIT. Take the code to your own server.

  3. 3.

    Stay in touch

    One email when it gets a new feature. Nothing else.

Screenshot of FAQ Chatbot in the browser, with example data: Drop in your FAQ or PDFs, ask questions, get answers with sources. Then put it on your site. (open the full-size image)
Fig. 1: FAQ Chatbot with example data.

What it does

  1. Reads PDF, TXT, Markdown and HTML files or pasted text, splits them into passages (questions stay with their answers) and keeps them in your browser (IndexedDB).
  2. Hybrid search: keywords plus an optional small embedding model that runs in your browser, so a question worded differently from your FAQ still finds the answer.
  3. Answers with numbered citations; click one to see the exact passage, file and page it came from.
  4. Your own key for Anthropic Claude (Haiku 5.5 or Sonnet 5.5) or any OpenAI-compatible API, or a local model in LM Studio or Ollama. Requests go straight from your browser to that provider.
  5. No key yet? It still shows the matching passages, without an AI answer.
  6. Export a widget bundle for your site: one script tag, your index as JSON, a search-only mode that needs no server, and a small PHP or Cloudflare Worker proxy so your key never reaches visitors.

Why I built it

I built the retrieval chatbot for Einfach Fahrschule, a SaaS for driving schools, where it answers students from each school's own documents. Most small businesses need the same thing for their FAQ, without a monthly subscription or uploading their documents to yet another service. This is a fresh, small version of that idea that runs in the browser: your documents stay with you, every answer shows its source, and the widget you export is yours to host.

Hafiz

Limits. Your documents stay in this browser. Questions and the matching passages go directly to the AI provider you pick, never to hmsk.life. Check AI answers, and only put public information into a widget.

Run it on your own server

Static files, no build step: any web server works (ES modules, so not from file://). The exported widget needs only two static files; AI answers need PHP 7.4+ or a Cloudflare Worker for the proxy.

Stack
HTML, JavaScript, transformers.js (in-browser embeddings); optional PHP or Cloudflare Worker proxy
Licence
MIT
git clone https://github.com/Shazi1212/hmsk-faq-chatbot.git

Also to run yourself

Newsletter

Hear when FAQ Chatbot gets better.

One email when FAQ Chatbot or another tool gets a real update. A few times a year, no tracking.