feat: Add @openuidev/vue-headless - Vue 3 port of @openuidev/react-headless

Aperta
#765 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Start by reading @openuidev/react-headless to understand the API and behavior this proposal aims to match. Then compare the proposed Vue adaptations and initial AG-UI-only scope with the questions raised for maintainers. The next step and definition of done depend on whether maintainers approve the package and partial-parity scope.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Summary

I would like to contribute packages/vue-headless, a Vue 3 port of @openuidev/react-headless, so Vue apps can use the same headless chat primitives as the React ecosystem.
I built this package while testing the Mastra + OpenUI + Vue 3 stack and would like to share the result with the community.

Problem

OpenUI has headless support for React, but not for Vue. Vue/Nuxt teams currently have no official way to integrate AG-UI streaming, thread state, tool activity, and artifact rendering using OpenUI patterns.

Proposed solution

New package @openuidev/vue-headless with API and behavior aligned to react-headless, adapted for Vue:

React Vue
Zustand Pinia
React context + hooks provide/inject + composables

Initial scope:

  • Chat store (threads, messages, streaming, cancellation)
  • AG-UI adapter + processStreamedMessage
  • Tool activity pairing (pairToolActivity, useToolActivities)
  • Artifact renderers and detailed view composables
  • fetchLLM / restStorage adapters
  • Vitest coverage + README

Deferred to follow-up PRs:

  • OpenAI stream adapters
  • LangGraph adapter
  • OpenAI / LangGraph message format converters

Message types remain re-exported from @ag-ui/core (not redefined).

Questions for maintainers

  1. Is a new @openuidev/vue-headless package aligned with the roadmap?
  2. Is partial parity (AG-UI only in v1) acceptable for the first merge?

Happy to adjust scope before opening a PR.

Lingua principale
TypeScript
Stelle
10k
Fork
698
Merge medio
1g 2h
PR unite (30g)
138

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di thesysdev/openui

Tutte le issue di thesysdev/openui

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.