正在加载视频...

视频加载失败

Stop rebuilding the same AI chat infrastructure. Introducing ChatJS

83,652 次观看 • 8 个月前 •via X (Twitter)

67 条评论

Francisco Moretti 的头像
Francisco Moretti8 个月前

Start here and make it your own.

Francisco Moretti 的头像
Francisco Moretti8 个月前

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

Pontus Abrahamsson 的头像
Pontus Abrahamsson8 个月前

really cool!

Francisco Moretti 的头像
Francisco Moretti8 个月前

🫡

sergio 的头像
sergio8 个月前

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

Francisco Moretti 的头像
Francisco Moretti8 个月前

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

faizan khan 的头像
faizan khan8 个月前

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

Francisco Moretti 的头像
Francisco Moretti8 个月前

Awesome. Lmk if you have any feedback

Michael Livs 的头像
Michael Livs8 个月前

Ah, does it play nice with ai-sdk?

Francisco Moretti 的头像
Francisco Moretti8 个月前

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

Michael Livs 的头像
Michael Livs8 个月前

Amazing, gonna give it try :)

Arnav 的头像
Arnav8 个月前

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

André Castro 的头像
André Castro8 个月前

Does it handle history context and compact conversation ?

Francisco Moretti 的头像
Francisco Moretti8 个月前

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

Lucho 的头像
Lucho8 个月前

Is this an assistant-ui direct competitor?

Francisco Moretti 的头像
Francisco Moretti8 个月前

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

Mindzyn 的头像
Mindzyn8 个月前

Just looking for this, Congratulations

Francisco Moretti 的头像
Francisco Moretti8 个月前

Thanks!

Rob N 的头像
Rob N8 个月前

Looks great congrats on the launch!

Kunal 的头像
Kunal8 个月前

nicee

kehaya 的头像
kehaya8 个月前

This looks super useful

Francisco Moretti 的头像
Francisco Moretti8 个月前

Thanks!

jeffscottworld 的头像
jeffscottworld8 个月前

Is it ag-ui compliant?

Francisco Moretti 的头像
Francisco Moretti8 个月前

No, it uses AI SDK protocol

Gordon Olson 的头像
Gordon Olson8 个月前

Nice work!

Leon 的头像
Leon8 个月前

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?

Francisco Moretti 的头像
Francisco Moretti8 个月前

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

Tristan Rhodes 的头像
Tristan Rhodes8 个月前

Great work!

Francisco Moretti 的头像
Francisco Moretti8 个月前

Thanks Tristan

Bala Subbiah 巴拉 的头像
Bala Subbiah 巴拉8 个月前

Congrats on the launch

Francisco Moretti 的头像
Francisco Moretti8 个月前

🙏

Ashu 的头像
Ashu8 个月前

this is very helpful

Francisco Moretti 的头像
Francisco Moretti8 个月前

Ty Ashu

cu 的头像
cu8 个月前

Did you use Remotion for this video?

Francisco Moretti 的头像
Francisco Moretti8 个月前

Remotion with skills + claude code

cu 的头像
cu8 个月前

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

Gui Monteiro 的头像
Gui Monteiro8 个月前

@RTodorov

Dave Fano 的头像
Dave Fano8 个月前

Is this Sparka with a new name?

Francisco Moretti 的头像
Francisco Moretti8 个月前

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

Dave Fano 的头像
Dave Fano8 个月前

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

Francisco Moretti 的头像
Francisco Moretti8 个月前

Awesome, feedback welcomed!

Malik Haziq 的头像
Malik Haziq8 个月前

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

Francisco Moretti 的头像
Francisco Moretti8 个月前

Months

Alireza Najafi 的头像
Alireza Najafi8 个月前

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.

Francisco Moretti 的头像
Francisco Moretti8 个月前

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

Jeremy@Opulentia 的头像
Jeremy@Opulentia8 个月前

As good as it gets! Congratulations!

Francisco Moretti 的头像
Francisco Moretti8 个月前

🫡

Mariano 的头像
Mariano8 个月前

the branch chat its an amazing idea.

Francisco Moretti 的头像
Francisco Moretti8 个月前

Glad you liked it

Mariano 的头像
Mariano8 个月前

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

Francisco Moretti 的头像
Francisco Moretti8 个月前

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

Mariano 的头像
Mariano8 个月前

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 🤖

Mariano 的头像
Mariano8 个月前

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"

Mariano 的头像
Mariano8 个月前

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

hardy 的头像
hardy8 个月前

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

Francisco Moretti 的头像
Francisco Moretti8 个月前

I'm working on this. Will share soon

Francisco Moretti 的头像
Francisco Moretti8 个月前

Feature dropped

Mudit Juneja 的头像
Mudit Juneja8 个月前

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

Saïd Aitmbarek 的头像
Saïd Aitmbarek8 个月前

brilliant work mate!

Marco Fortes 的头像
Marco Fortes8 个月前

Finaly someone did it!

Ali Sha 的头像
Ali Sha8 个月前

Nice job bro

Francisco Moretti 的头像
Francisco Moretti8 个月前

Thanks Ali!

David Gyori 的头像
David Gyori8 个月前

Don’t tell me what to do

Balumba 的头像
Balumba8 个月前

Boring

truth.phd 的头像
truth.phd8 个月前

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.”

Reeves 的头像
Reeves8 个月前

Based 🔥

Francisco Moretti 的头像
Francisco Moretti8 个月前

🔥

相关视频