# askdare: An AI chat for any site, in one line

Address: https://sebastianmusial.pl/en/work/askdare/ · Client’s website: https://askdare.vercel.app/

askdare is my library: I came up with it, designed it and wrote it from the first line. With it, a business adds an AI chat to its website with one line of code, and the chat answers from the business’s own documents.

- Type: Open source library · MIT
- Role: Creator and maintainer · Boldare
- Technology: Next.js, TypeScript, OpenAI API
- Code: <a class="link" href="https://github.com/boldare/askdare" target="_blank" rel="noopener">GitHub</a> · <a class="link" href="https://www.npmjs.com/package/@boldare/askdare" target="_blank" rel="noopener">npm</a>

## The challenge: The API ended, and so did the chats.

My earlier library for AI assistants was built on the Assistants API, which OpenAI retired in 2026. Developers who had built chats on it were left with no way forward: patching the old code made no sense.

On top of that, a chat on a website is a public place where anyone can talk to the model at the owner’s expense. Without limits, one night of abuse turns into an invoice, and an answer shown on someone else’s site has to be safe.

## What I did.

- **One line on the page.** The chat goes onto any website, not only Next.js ones, with a single `<script>` tag. Each page loads about 3 KB; the rest only arrives on click.
- **Answers from your documents.** A folder of documents goes into the knowledge base with one command, and every answer cites its sources as links to the business’s pages. The chat can also check an order or a price through its own tools.
- **Costs under control.** Daily token budgets per bot and per IP address, message limits and a kill switch. I described the risks in a separate threat model based on OWASP guidance for LLM applications.
- **Accessible to everyone.** Four themes, light and dark, one of them with AAA contrast. Every release passes an automated accessibility test, and I check screen readers by hand.
- **From zero to chat in 15 minutes.** The `init` command sets up everything you need. No database: OpenAI keeps the conversations, and deployment needs two environment variables.
- **Decisions in writing.** 12 recorded architecture decisions, documentation shipped in the package that matches the installed version, and a migration guide from the old library.

## The result. Take it and use it.

The library is on npm under the MIT licence, with a working demo and documentation where the chat itself answers your questions. Every release passes about 400 tests and runs in three browsers before it reaches anyone.

- 3 KB: of script on the page, the rest on click
- 15 min: from install to a working chat
- ~400: automated tests
- 3: browsers in every release

Services: [AI chatbots and assistants](https://sebastianmusial.pl/en/services/ai-chatbots-and-assistants/), [AI automation](https://sebastianmusial.pl/en/services/ai-automation/)

---

Updated: 2026-11-28. Sebastian Musiał, kontakt@sebastianmusial.pl (I reply within 24 hours). Quote after a call, no price list on the site.
All pages: https://sebastianmusial.pl/llms.txt · The whole English text in one file: https://sebastianmusial.pl/en/llms-full.txt
