正在加载视频...
视频加载失败
Stop rebuilding the same AI chat infrastructure. Introducing ChatJS
83,652 次观看 • 8 个月前 •via X (Twitter)
67 条评论

Start here and make it your own.

Built with: - Nextjs @nextjs - AI SDK @aisdk - Drizzle @DrizzleORM - Better Auth @better_auth - Tailwind @tailwindcss - ShadcnUI @shadcn - AI Elements @haydenbleasel - tRPC @trpcio - AI Gateway @shaper - Zustand @pmndrs

really cool!

🫡

Cool! The ai chatbot template code I remember was not that polished, did you take a look on it? or just built on top of it? I mean its ok haha

Yup, it's a fork of vercel/ai-chatbot

oh dude, lol literally just rewrote our chat in docs for the 2nd time. Will definitely be trying this out.

Awesome. Lmk if you have any feedback

Ah, does it play nice with ai-sdk?

AI SDK it's one of the core technologies and should be following best practices

Amazing, gonna give it try :)

a trance track in a demo/launch video is wild love it lol

Does it handle history context and compact conversation ?

History is truncated at 5 messages. Compaction is only used in the deep research flow. Please submit an issue with requirements for conversation compaction handling

Is this an assistant-ui direct competitor?

It's not a bussiness. Just an open source end-to-end chat for devs to re-use

Just looking for this, Congratulations

Thanks!

Looks great congrats on the launch!

nicee

This looks super useful

Thanks!

Is it ag-ui compliant?

No, it uses AI SDK protocol

Nice work!

This looks great, would love to use it. But what does it take to not use AI Gateway but instead hook it up to my Mastra AI orchestration platform?

Good point. Can you submit an issue to make it compatible with other AI gateways? I'm not aware of Mastra having an AI Gateway but please link any relevant doc to the issue

Great work!

Thanks Tristan

Congrats on the launch

🙏

this is very helpful

Ty Ashu

Did you use Remotion for this video?

Remotion with skills + claude code

You did a good job with it, the tool still kinda sucks and is no where near being able to produce a proper quality animated vid. Hope that changes soon

@RTodorov

Is this Sparka with a new name?

Yes. Had to find a clearer brand to reflect it's a foundation to build your chat apps instead of just an oss app

Amazing! Congrats!! Going to try it tonight!!

Awesome, feedback welcomed!

Good idea. We definitely needed something like that. How much time did it take?

Months

Thank you so much for your work. I want to explore the chat branching functionality. I tried implementing it with the Vercel AI SDK, and things got messy.

Yes, that one is tricky. The doc for it is in progress but it works in the app + code is on the repo

As good as it gets! Congratulations!

🫡

the branch chat its an amazing idea.

Glad you liked it

me encantó, desarrolé muchisimos GenUI, hay algun glitch en el retrieval de mermaid como en la mayoria de los modelos los general mal a la primerza, tambien en esta captura podes observar los íconos en la parte superior derecha, ninguno de ellos pueden ser clickeados en WinChrome

Arregle los iconos creo. Volvé a probar eso. Sobre el mermaid, tenés alguna referencia para mejorar el system prompt?

Pedi renderice y si la salida da error la arregle manteniendo todos los elementos y sus significados. muy por lo general no te hace falta una segunda pasada, y no dejas una regla que te pueda generar una potencial race condition 🤖

desde el punto de vista de reglas que pueden iterar hasta resolver como la secuencia de fibo, eso no sabes cuando va a pasar y las condiciones, el modelo te puede tirar una Fruta X; // inesperada, por lo que recomiendo solo reglas de una cantidad maxima de "pasadas"

Así evitas muchisimas vulnerabilidades del top 10 de la humanidad. Luego si por especificacion erradicaste los race condicion en los procesos que manejas obvio, si mañana sale exploit para nextjs quedamos de vuelta todos culo al norte

Hey is there a way where I could configure my vLLM served models?

I'm working on this. Will share soon

Feature dropped

This looks like a good candidate to be added here. I just checked and is available. Host things there if it makes sense.

brilliant work mate!

Finaly someone did it!

Nice job bro

Thanks Ali!

Don’t tell me what to do

Boring

Stop rebuilding the same AI chat like it’s a Lego set with missing pieces; ChatJS just walked in saying, “Relax, I brought prebuilt conversation muscles.”

Based 🔥

🔥


