On 26 August 2026, OpenAI shut down the Assistants API. @boldare/openai-assistant, a NestJS module with an Angular chat widget built entirely on that API, stopped working the same day, and so did its demo and its Heroku button. The repository has 104 stars and 22 forks, and every deployment built from it broke at once. This post is about its successor, askdare, and about the parts of the move that apply to anyone leaving the Assistants API.
What the shutdown took with it
The Assistants API bundled four things that now live in different places. OpenAI's own migration guide maps them like this:
- an assistant (model, instructions, tools) becomes request configuration that you keep in your application;
- a thread becomes a conversation, which stores items: messages, tool calls and tool outputs;
- a run becomes a response, and the tool-call loop is yours to manage;
- run steps become items.
Two details matter more than the table. The call that read a thread's messages no longer works, so any history you didn't copy before the sunset is gone. And the dashboard replacement OpenAI pointed Assistants users to, reusable prompt objects, shut down as well, on 30 November 2026. If your instructions lived in an object at OpenAI, they now have to live in your code, where they get versioned, reviewed and tested like the rest of it.
Why a rewrite and not a v2
I looked at a 2.0 of the old package first. Every layer of it touched something that no longer existed: an assistant object created at startup, run polling, thread controllers, knowledge files uploaded on boot with .env rewritten at runtime. None of that maps one to one onto streamed responses and conversations.
Three more reasons made it a new library with a new name (ADR-0001):
- The stack. We decided to build a library for Next.js. Users of the NestJS module couldn't have upgraded in place, whatever the version number said.
- The name.
openai-assistantcarried OpenAI's brand and pointed to the API that was gone. - Leaked types. The old config file imported
AssistantCreateParamsfromopenai/resources/beta, so OpenAI's beta types were part of our public API. TheopenaiSDK allows type-level breaking changes in minor releases, and ADR-0002 records issue #89 on the old repo as a build failure after anopenaiminor bump.
We also weighed the shape. A template app is the cheapest to maintain, but a fork has no update path for security fixes. A platform with an admin panel was roughly three to four times the scope before a first release. A library means every export is a long-lived contract, and in return a fix reaches every deployment with a package update. We picked the library.
What it looks like now
You add askdare to a Next.js 16 app with npm install @boldare/askdare zod and npx @boldare/askdare init. The bot is a few lines you own:
// askdare.config.ts import { defineBot } from '@boldare/askdare'; export const bots = [ defineBot({ id: 'support', model: process.env.ASKDARE_MODEL ?? '', instructions: 'You answer questions about our product. If you do not know, say so.', security: { allowedOrigins: ['https://www.example.com'] }, widget: { theme: 'aura', greeting: 'Hi! How can I help?' }, }), ]; One route serves the chat, its API and its assets:
// app/api/chat/[...path]/route.ts import { createChatHandler } from '@boldare/askdare/next'; import { bots } from '../../../../askdare.config'; // Must be a literal in this file; keep it above the bots' turn timeout (120 s by default). export const maxDuration = 300; export const { GET, POST, DELETE } = createChatHandler({ bots }); And any website, built with anything, embeds it with one tag:
<script src="https://app.example.com/api/chat/widget.js?bot=support" async></script> No database is required. By default, conversations live in OpenAI's Conversations API, and the visitor's browser keeps only a signed token.
The design choices that came from the shutdown
Secure defaults for anonymous visitors
A website chatbot talks to people who never signed in, so the browser is untrusted. In askdare the client never chooses the model, the instructions, the tools, vector stores, file IDs or conversation IDs. The resume token carries the conversation ID encrypted and authenticated (JWE, keyed by CHAT_SECRET), so the browser can neither read nor change it. There are no cookies.
Out of the box you get short-lived session tokens, rate limits, daily token budgets and an origin allowlist, and the chat runs in an iframe that only the sites in allowedOrigins may embed. The old library had no sign-in and CORS open to every origin.
Our own streaming protocol
The old widget received raw Assistants stream events over socket.io. askdare streams server-sent events over POST in its own versioned protocol, and raw OpenAI events never reach the browser. When OpenAI changes an event, the fix lands in one mapper on the server. Owning the protocol also let us add what OpenAI doesn't offer, such as resuming an answer after a dropped connection. Every event carries a sequence number, so the client picks up where the stream stopped.
No OpenAI types in the public API
Only one folder, src/openai/, may import openai, and a lint rule enforces it. A CI test checks that the published .d.ts files contain no openai or next types. openai is a regular dependency, not a peer, so you never manage its version. If the next API change comes, it stays inside that folder.
A record for every expensive decision
Every decision that is expensive to reverse gets an Architecture Decision Record, 40 so far. Some of them record spikes against the live API. ADR-0003, for example, measured OpenAI's server-side compaction inside a conversation at a 50,000-token threshold. The seven turns after it cost 12 to about 24 times as much as the same turns without it, because each compaction lost the prompt cache. So compaction waited, and later shipped as an opt-in for conversations kept in your own store.
The first commit landed on 29 October 2026. 0.8.0 shipped on 2 December.
What maps to what
If you are migrating from @boldare/openai-assistant, here is part of the table from the migration guide:
| openai-assistant 1.x | askdare |
|---|---|
AssistantModule.forRoot(config) plus ASSISTANT_ID | defineBot({...}) in askdare.config.ts, served by one Next.js route |
Agents extending AgentBase, arguments as a raw JSON string | defineTool with a Zod schema, validated before your code runs |
Threads, ThreadsController | Conversations in the OpenAI Conversations API, with a signed token in the browser |
socket.io ChatGateway, raw Assistants stream events | Server-sent events over POST, in askdare's versioned protocol |
| Run polling | Streaming Responses API calls, with limits on tool steps and a deadline per turn |
The ai-embedded iframe and its postMessage | One <script> tag |
The same split works without askdare: keep model, instructions and tools in code, keep the conversation ID on your server or in a token the browser can't read, and stream responses instead of polling runs.
What you lose, and what askdare doesn't do
- Old conversations. Threads can't be read any more, so there is nothing to import.
- Text to speech. Answers are text. Dictation (speech to text) is still there.
- Assistants edited in the OpenAI dashboard. Instructions live in your code now.
- OpenAI only, for now. A second provider path through OpenRouter is planned for 0.9 (ADR-0026). Until then, every model request goes to OpenAI.
- Next.js to host. The chat needs a Next.js 16 app with the App Router on the Node.js runtime. The sites that embed it can be anything.
- Data at OpenAI by default. With the default store, conversations stay at OpenAI until deleted. Since 0.6 you can keep them in your own Postgres instead, but OpenAI still processes every model request.
You pay OpenAI for tokens. askdare is MIT-licensed and adds no per-conversation or per-seat fee.
Migrating in an afternoon
Most deployments take an afternoon. The instructions, tools and knowledge files carry over:
- Pick the Next.js app that will serve the chat, or start from the starter.
- Run
npm install @boldare/askdare zodandnpx @boldare/askdare init. - Move your instructions into
askdare.config.tsand the model intoASKDARE_MODEL. Pick a current model: the one your old assistant used may be retired. - Rewrite each agent as a tool. The handler body usually stays; the JSON string parsing becomes a Zod schema.
- Run
npx @boldare/askdare kb sync <folder>for the knowledge files and setKB_VECTOR_STORE_ID. - Replace the embed code on your sites and list them in
security.allowedOrigins. - Run
npx @boldare/askdare doctor, deploy, and remove the old NestJS service.
Links
askdare is MIT-licensed and made at Boldare.
- Repository: https://github.com/boldare/askdare
- Live demo: https://askdare.vercel.app
- Migration guide: https://askdare.vercel.app/docs/migrating-from-openai-assistant
- One-click deploy: https://askdare.vercel.app/deploy
Sebastian Musiał (sebastianmusial.pl) builds askdare at Boldare.
