{"slug": "show-hn-askdare-the-next-js-successor-to-our-assistants-api-chatbot-library", "title": "Show HN: Askdare, the Next.js successor to our Assistants API chatbot library", "summary": "Boldare released Askdare, an open-source Next.js chatbot library that replaces its Assistants API-based predecessor and runs on the official OpenAI SDK with one route, one script tag and no database. Version 0.8 adds a CLI eval command, `npx @boldare/askdare eval`, that runs test cases from `evals/*.eval.json` against a running app with checks for facts, citations, handoffs, forms and tools, a 3-run baseline, per-case regressions, CI exit codes and optional graded checks from a chosen grader model, plus named prompt versions and A/B tests. The package installs via `npm install @boldare/askdare zod` and `npx @boldare/askdare init`, which writes the chat route, a starter bot and `.env.local`; a one-click Vercel deploy needs only an OpenAI key.", "body_md": "An AI chatbot for any website, served by your Next.js app on the official OpenAI SDK.\n\n  One route, one script tag, no database required.\n\n[**Live demo**](https://askdare.vercel.app) ·\n  [**Deploy in 5 minutes**](https://askdare.vercel.app/deploy) ·\n  [**Documentation**](https://askdare.vercel.app/docs) ·\n  [npm](https://www.npmjs.com/package/@boldare/askdare) ·\n  [Changelog](https://github.com/boldare/askdare/blob/main/packages/askdare/CHANGELOG.md)\n\n**One-click deploy to Vercel.** Bring an OpenAI key, we'll do the rest.\n\nNo Next.js app yet? Deploy the [starter](https://github.com/boldare/askdare/blob/main/examples/starter): your own repository, your OpenAI key, no database and no code to write. [askdare.vercel.app/deploy](https://askdare.vercel.app/deploy) walks you through it and makes the `CHAT_SECRET` for you. [Heroku and the details](https://github.com/boldare/askdare/blob/main/docs/deployment.md#one-click-deploy).\n\nIn a Next.js 16 app:\n\n```\nnpm install @boldare/askdare zod\nnpx @boldare/askdare init\n```\n\n`init` writes the chat route, a bot to start from and `.env.local`, and adds the chat to your layout. Put your OpenAI key and model in `.env.local`, run the app, and the chat is there. The bot is a few lines you own:\n\n``` js\n// askdare.config.ts\nimport { defineBot } from '@boldare/askdare';\n\nexport const bots = [\n  defineBot({\n    id: 'support',\n    model: process.env.ASKDARE_MODEL ?? '',\n    instructions: 'You answer questions about our product. If you do not know, say so.',\n    security: { allowedOrigins: ['https://www.example.com'] },\n    widget: { theme: 'aura', greeting: 'Hi! How can I help?' },\n  }),\n];\n```\n\n**[Getting started](https://github.com/boldare/askdare/blob/main/docs/getting-started.md)** takes you from an empty app to a working chat in about 15 minutes.\n\nOr [try it first, in five minutes](#your-chatbot-in-five-minutes), without your own app.\n\n[Knowledge base](https://github.com/boldare/askdare/blob/main/docs/knowledge-base.md) · [Tools](https://github.com/boldare/askdare/blob/main/docs/tools.md) · [Tool cards](https://github.com/boldare/askdare/blob/main/docs/react.md#tool-cards) · [Reply options](https://github.com/boldare/askdare/blob/main/docs/reply-options.md) · [Attachments](https://github.com/boldare/askdare/blob/main/docs/attachments.md) · [Voice input](https://github.com/boldare/askdare/blob/main/docs/voice-input.md) · [The chat inside your page (React)](https://github.com/boldare/askdare/blob/main/docs/react.md) · [Your own page in the widget](https://github.com/boldare/askdare/blob/main/docs/embedding.md#your-own-page-in-the-iframe) · [Answer ratings](https://github.com/boldare/askdare/blob/main/docs/feedback.md) · [Handoff to a person](https://github.com/boldare/askdare/blob/main/docs/handoff.md) · [Forms and leads](https://github.com/boldare/askdare/blob/main/docs/forms.md) · [Admin console and dashboard](https://github.com/boldare/askdare/blob/main/docs/admin.md) · [Testing answers](https://github.com/boldare/askdare/blob/main/docs/eval.md) · [Prompt versions](https://github.com/boldare/askdare/blob/main/docs/prompt-versions.md) · [Tools from an MCP server](https://github.com/boldare/askdare/blob/main/docs/tools.md#tools-from-an-mcp-server) · [Launcher greeting](https://github.com/boldare/askdare/blob/main/docs/embedding.md#a-greeting-and-an-unread-badge) · [Observability](https://github.com/boldare/askdare/blob/main/docs/observability.md) · [Chat events](https://github.com/boldare/askdare/blob/main/docs/events.md) · [Guardrails](https://github.com/boldare/askdare/blob/main/docs/guardrails.md) · [Human check](https://github.com/boldare/askdare/blob/main/docs/configuration.md#human-check) · [Accessibility](https://github.com/boldare/askdare/blob/main/docs/accessibility.md) · [Own your data](https://github.com/boldare/askdare/blob/main/docs/own-your-data.md) · [Security](https://github.com/boldare/askdare/blob/main/THREAT_MODEL.md)\n\n**New in 0.8, quality and reach:**\n\n- **Testing answers** :`npx @boldare/askdare eval` runs test cases from`evals/*.eval.json` against your running app, with checks for facts, citations, handoffs, forms and tools, a 3-run baseline and per-case regressions, exit codes for CI, and optional graded checks from a grader model you pick. The console's new**Tests** view runs them too, and drafts a case from a 👎 answer. See[Testing answers](https://github.com/boldare/askdare/blob/main/docs/eval.md) .\n- **Prompt versions and A/B tests** : named versions of a bot's instructions in`defineBot` , a split of new conversations by visitor,`version` on every report and admin record, compared in the dashboard and with`askdare eval --version` . See[Prompt versions](https://github.com/boldare/askdare/blob/main/docs/prompt-versions.md) .\n- **More tools** :`httpTool` calls one endpoint of your own API behind a fixed URL template; web search as a fallback when your documents have nothing (off by default); the visitor approves a tool call in the chat before it runs; and tools from a remote MCP server with the new[`@boldare/askdare-mcp`](https://github.com/boldare/askdare/blob/main/packages/askdare-mcp) . Remote calls have their own limits. See[Tools](https://github.com/boldare/askdare/blob/main/docs/tools.md) and[Web search](https://github.com/boldare/askdare/blob/main/docs/knowledge-base.md#web-search-as-a-fallback) .\n- **Attachments in your own storage** : with your own conversation store and a file store, such as`s3Files()` from the new[`@boldare/askdare-s3`](https://github.com/boldare/askdare/blob/main/packages/askdare-s3) (AWS S3, Cloudflare R2 or MinIO), visitors' files stay in your bucket and every turn sends them inline, so nothing is kept at OpenAI. See[Attachments](https://github.com/boldare/askdare/blob/main/docs/attachments.md#in-your-own-storage) .\n- **Model settings** : reasoning effort and verbosity next to the model ID, checked by`doctor` against the model. See[Configuration](https://github.com/boldare/askdare/blob/main/docs/configuration.md#model-settings) .\n- **The console for teams** : roles (`viewer` ,`reviewer` ,`developer` ,`owner` ) and a scope to some bots, and an owner deletes a conversation for a deletion request. See[Admin](https://github.com/boldare/askdare/blob/main/docs/admin.md#roles) and the[read-only demo console](https://askdare.vercel.app/demo-console) .\n\n**New in 0.7, support-grade:**\n\n- \n**Handoff to a person** : a \"Talk to a person\" button and a`handoff` tool the model calls when it can't help, with`webhookHandoff()` (signed with Standard Webhooks) or`emailHandoff()` delivering the request. It is one-way: a person from your team answers the visitor by email. Outside your office hours, the handoff's form takes a message instead. See[Handoff](https://github.com/boldare/askdare/blob/main/docs/handoff.md) .\n- \n**Forms in the chat** :`defineForm` with text, email, phone, select, textarea and consent fields, validated on the server and drawn by the widget with no code on your site. Each sent form goes to your`onLead` , and its values reach the model only for the fields you mark. See[Forms](https://github.com/boldare/askdare/blob/main/docs/forms.md) .\n- \n**Admin console and dashboard** : a console at`/api/chat/admin` , off by default, with each bot's configuration,`doctor` , a playground and conversation reviews, signed in with`ADMIN_SECRET` or an identity token. Records live in an admin store (memory, Postgres or Upstash), and the new[`@boldare/askdare-admin`](https://github.com/boldare/askdare/blob/main/packages/askdare-admin) adds a dashboard: cost per bot, day and model, ratings, unanswered questions, leads and handoffs. Deleting a conversation deletes its records. See[Admin](https://github.com/boldare/askdare/blob/main/docs/admin.md) .- \n**A greeting next to the launcher and an unread badge** :`widget.launcherGreeting` invites visitors after a few seconds, and answers that arrive while the chat is closed are counted on the launcher. See[Embedding](https://github.com/boldare/askdare/blob/main/docs/embedding.md#a-greeting-and-an-unread-badge) .\n\n**New in 0.6, own your data:**\n\n- **Conversations in your own Postgres** :`postgresConversations()` from the new[`@boldare/askdare-postgres`](https://github.com/boldare/askdare/blob/main/packages/askdare-postgres) , with`migrate` for the tables and a sweep for your retention. Turns go to OpenAI with`store: false` : it still processes every request, but keeps no conversation. See[Own your data](https://github.com/boldare/askdare/blob/main/docs/own-your-data.md) .\n- **Knowledge in pgvector** :`pgvectorIndex` with`askdare kb sync --index` , searched by the built-in`search_knowledge` tool, with the same cited sources and no per-search fee. See[Knowledge base](https://github.com/boldare/askdare/blob/main/docs/knowledge-base.md#your-own-index) .\n- **Answers that survive a dropped connection** : the chat picks an answer up where it stopped, from memory on one server or from Upstash on several (`upstashTurnLog()` ). See[Configuration](https://github.com/boldare/askdare/blob/main/docs/configuration.md#resume) .\n- **The whole history** : older messages load in pages as the visitor scrolls up (`LoadEarlier` ). See[React](https://github.com/boldare/askdare/blob/main/docs/react.md#long-conversations) .\n- **Compaction and transcripts** : opt-in`limits.compactAt` keeps long conversations in your store affordable, and`onTranscript` hands each finished turn to your code. See[Configuration](https://github.com/boldare/askdare/blob/main/docs/configuration.md#compaction) .\n- **Still at OpenAI** : OpenAI processes every model request, and attachments stay in OpenAI Files. See[What stays at OpenAI](https://github.com/boldare/askdare/blob/main/docs/own-your-data.md#what-stays-at-openai) and the[changelog](https://github.com/boldare/askdare/blob/main/packages/askdare/CHANGELOG.md) .\n\nPick a theme, set your brand's colors, or restyle any part with your own CSS, the way BLDR does. Switch between them on the [website](https://askdare.vercel.app/#themes), then read [Themes](https://github.com/boldare/askdare/blob/main/docs/themes.md) and [Styling](https://github.com/boldare/askdare/blob/main/docs/styling.md).\n\nThe guides are on [askdare.vercel.app/docs](https://askdare.vercel.app/docs), with search and a chat that answers from them. The same pages are in [`docs/`](https://github.com/boldare/askdare/blob/main/docs), and they ship in the package, so they match the version you installed.\n\n- **Start:**[Getting started](https://github.com/boldare/askdare/blob/main/docs/getting-started.md) ·[Embedding the chat](https://github.com/boldare/askdare/blob/main/docs/embedding.md) ·[Command line](https://github.com/boldare/askdare/blob/main/docs/cli.md)\n- **Features:**[Knowledge base](https://github.com/boldare/askdare/blob/main/docs/knowledge-base.md) ·[Tools](https://github.com/boldare/askdare/blob/main/docs/tools.md) ·[Tool cards](https://github.com/boldare/askdare/blob/main/docs/react.md#tool-cards) ·[Reply options](https://github.com/boldare/askdare/blob/main/docs/reply-options.md) ·[Attachments](https://github.com/boldare/askdare/blob/main/docs/attachments.md) ·[Voice input](https://github.com/boldare/askdare/blob/main/docs/voice-input.md) ·[Signed-in visitors](https://github.com/boldare/askdare/blob/main/docs/identity.md) ·[Handoff to a person](https://github.com/boldare/askdare/blob/main/docs/handoff.md) ·[Forms and leads](https://github.com/boldare/askdare/blob/main/docs/forms.md)\n- **Look and language:**[Themes](https://github.com/boldare/askdare/blob/main/docs/themes.md) ·[Styling](https://github.com/boldare/askdare/blob/main/docs/styling.md) ·[Texts](https://github.com/boldare/askdare/blob/main/docs/texts.md) ·[The chat inside your page (React)](https://github.com/boldare/askdare/blob/main/docs/react.md)\n- **Going live:**[Deployment](https://github.com/boldare/askdare/blob/main/docs/deployment.md) ·[Own your data](https://github.com/boldare/askdare/blob/main/docs/own-your-data.md) ·[Going-public checklist](https://github.com/boldare/askdare/blob/main/docs/going-public.md) ·[Guardrails](https://github.com/boldare/askdare/blob/main/docs/guardrails.md) ·[Costs](https://github.com/boldare/askdare/blob/main/docs/costs.md) ·[Observability](https://github.com/boldare/askdare/blob/main/docs/observability.md) ·[Chat events](https://github.com/boldare/askdare/blob/main/docs/events.md) ·[Answer ratings](https://github.com/boldare/askdare/blob/main/docs/feedback.md) ·[Prompt versions](https://github.com/boldare/askdare/blob/main/docs/prompt-versions.md) ·[Testing answers](https://github.com/boldare/askdare/blob/main/docs/eval.md) ·[Admin console and dashboard](https://github.com/boldare/askdare/blob/main/docs/admin.md) ·[Privacy](https://github.com/boldare/askdare/blob/main/docs/privacy.md) ·[Compliance](https://github.com/boldare/askdare/blob/main/docs/compliance.md) ·[Accessibility](https://github.com/boldare/askdare/blob/main/docs/accessibility.md)\n- **Reference:**[Configuration](https://github.com/boldare/askdare/blob/main/docs/configuration.md) ·[Troubleshooting](https://github.com/boldare/askdare/blob/main/docs/troubleshooting.md) ·[Support matrix](https://github.com/boldare/askdare/blob/main/docs/support.md) ·[Wire protocol](https://github.com/boldare/askdare/blob/main/docs/protocol.md) ·[Custom stores](https://github.com/boldare/askdare/blob/main/docs/custom-store.md)\n- **Under the hood:**[Threat model](https://github.com/boldare/askdare/blob/main/THREAT_MODEL.md) ·[Design decisions](https://github.com/boldare/askdare/blob/main/docs/adr/README.md)\n- **AI coding agents:**[`llms.txt`](https://github.com/boldare/askdare/blob/main/llms.txt) and the[` askdare` skill](https://github.com/boldare/askdare/blob/main/skills/askdare/SKILL.md) , both in the package ([how to use them](https://github.com/boldare/askdare/blob/main/docs/getting-started.md#working-with-an-ai-coding-agent) )\n\nComing from `@boldare/openai-assistant`? It stopped working when OpenAI shut down the Assistants API, and askdare is its successor: see [Migrating](https://github.com/boldare/askdare/blob/main/docs/migrating-from-openai-assistant.md).\n\n| Package | What it is | \n|---|---|\n| [`@boldare/askdare`](https://github.com/boldare/askdare/blob/main/packages/askdare) | The library: bots, the chat route, the embeddable chat and the CLI | \n| [`@boldare/askdare-upstash`](https://github.com/boldare/askdare/blob/main/packages/askdare-upstash) | Rate limits, budgets and answer resume shared by every server instance, and an admin store, in Upstash Redis | \n| [`@boldare/askdare-otel`](https://github.com/boldare/askdare/blob/main/packages/askdare-otel) | OpenTelemetry spans for every chat turn, following the GenAI conventions | \n| [`@boldare/askdare-postgres`](https://github.com/boldare/askdare/blob/main/packages/askdare-postgres) | Conversations, a pgvector knowledge index and an admin store in your own Postgres | \n| [`@boldare/askdare-admin`](https://github.com/boldare/askdare/blob/main/packages/askdare-admin) | The admin dashboard: cost, ratings, unanswered questions, leads, handoffs and conversation reviews, inside the admin console | \n| [`@boldare/askdare-s3`](https://github.com/boldare/askdare/blob/main/packages/askdare-s3) | Visitors' attachments in your own bucket on AWS S3, Cloudflare R2 or MinIO, instead of OpenAI Files | \n| [`@boldare/askdare-mcp`](https://github.com/boldare/askdare/blob/main/packages/askdare-mcp) | Tools from a remote MCP server, with askdare as the client: an allowlist, approval for tools that may write, fingerprints checked by `doctor` | \n\n[Contributing](https://github.com/boldare/askdare/blob/main/CONTRIBUTING.md) · [Security policy](https://github.com/boldare/askdare/blob/main/SECURITY.md) · [MIT license](https://github.com/boldare/askdare/blob/main/LICENSE) · Made by [Boldare](https://www.boldare.com)", "url": "https://wpnews.pro/news/show-hn-askdare-the-next-js-successor-to-our-assistants-api-chatbot-library", "canonical_source": "https://github.com/boldare/askdare", "published_at": "2026-12-04 21:05:43+00:00", "updated_at": "2026-12-04 21:16:22.673558+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-agents", "large-language-models", "ai-products"], "entities": ["Boldare", "Askdare", "Next.js", "OpenAI", "Vercel", "Heroku", "MCP"], "also_reported_by": [], "takeaway": "Askdare 0.8's `npx @boldare/askdare eval` runs `evals/*.eval.json` cases against a running app with a 3-run baseline, per-case regression checks and CI exit codes, so chatbot answer quality can be gated in a pipeline.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-askdare-the-next-js-successor-to-our-assistants-api-chatbot-library", "markdown": "https://wpnews.pro/news/show-hn-askdare-the-next-js-successor-to-our-assistants-api-chatbot-library.md", "text": "https://wpnews.pro/news/show-hn-askdare-the-next-js-successor-to-our-assistants-api-chatbot-library.txt", "jsonld": "https://wpnews.pro/news/show-hn-askdare-the-next-js-successor-to-our-assistants-api-chatbot-library.jsonld"}}