askdare
An AI chat for any website, in one line
3 KB
of script loads on the page; the rest of the chat only after a click
~400
automated tests, plus tests in Chromium, Firefox and WebKit and an accessibility test on every release
Problem
OpenAI retired the Assistants API, which my previous library was built on. And a chat on a website is a public place where anyone can talk to the model at the site owner’s expense.
Solution
A Next.js library on the new Responses API: the chat goes on any website with one <script> tag, answers from the company’s documents with sources and calls your own tools. Daily token budgets, short-lived session tokens and a strict CSP are there from day one. No database.
I came up with it, designed it and wrote it myself: every commit in the repository apart from the automated ones is mine. A business gets a chat that answers customers at any hour, has a daily cost limit and needs no subscription. It is also the successor to @boldare/openai-assistant, with a migration guide. Instead of statistics, which will come with time, check what it is made of: 12 written-down architecture decisions and a public threat model.
- Next.js
- React
- OpenAI Responses API
- TypeScript
- Playwright
Code on GitHub npm Demo How it was built AI chatbots and assistants