An AI chat for any site, in one line
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.
Taking on new projects
- Type
- Open source library · MIT
- Role
- Creator and maintainer · Boldare
- Technology
- Next.js, TypeScript, OpenAI API
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
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
initcommand 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.
What you get
Fewer questions
left unanswered.
- Answers at any hourA customer asks about a price, a date or your terms at 11 pm and gets an answer straight away from your documents, with a link to the source they can check.
- No surprise billsYou set a daily budget. When it runs out, the chat stops answering instead of running up your OpenAI invoice.
- Your site stays fastEach page loads only about 3 KB. The rest of the chat loads only when someone opens it.
- It looks like your brandFour ready-made themes, your colours and fonts, or your own CSS.
- You see what’s missingCustomers rate answers with a thumbs up or down and can add a comment to a weak one. You see at once which information your documents lack.
- No chat subscriptionThe library is free, under the MIT licence, and the code stays with you. You pay only for the OpenAI model and hosting.
- Set up by its authorI made every decision in this code myself and documented the important ones. If the chat needs fitting to your business, the person who knows it best does it.
The result
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 KBof script on the page, the rest on click
- 15 minfrom install to a working chat
- ~400automated tests
- 3browsers in every release
An AI chat that answers from your documents? As the library’s author, I can set it up on your website or in your product, with cost limits and security from day one.
Last updated:
Next
Want something similar?
See how I work.
Contact
Let’s talk.
Write a few sentences about what you want to build. I reply within 24 hours.
Prefer another way?


