
Sebastian MusiałOn 26 August 2026, OpenAI shut down the Assistants API. @boldare/openai-assistant, a NestJS module...
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.
The Assistants API bundled four things that now live in different places. OpenAI's own migration guide maps them like this:
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.
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):
openai-assistant carried OpenAI's brand and pointed to the API that was gone.AssistantCreateParams from openai/resources/beta, so OpenAI's beta types were part of our public API. The openai SDK allows type-level breaking changes in minor releases, and ADR-0002 records issue #89 on the old repo as a build failure after an openai minor 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.
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.
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.
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.
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.
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.
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.
You pay OpenAI for tokens. askdare is MIT-licensed and adds no per-conversation or per-seat fee.
Most deployments take an afternoon. The instructions, tools and knowledge files carry over:
npm install @boldare/askdare zod and npx @boldare/askdare init.askdare.config.ts and the model into ASKDARE_MODEL. Pick a current model: the one your old assistant used may be retired.npx @boldare/askdare kb sync <folder> for the knowledge files and set KB_VECTOR_STORE_ID.security.allowedOrigins.npx @boldare/askdare doctor, deploy, and remove the old NestJS service.askdare is MIT-licensed and made at Boldare.
Sebastian Musiał (sebastianmusial.pl) builds askdare at Boldare.