npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

copilotkit-vue

v0.1.4

Published

Vue 3 native bindings for CopilotKit

Readme

copilotkit-vue

Vue 3 native bindings for CopilotKit — the full-stack SDK for agentic apps, Generative UI, and chat.

Repository: github.com/Aenas11/CopilotKitVue

Status: In active development. APIs are stabilising — see DISCOVERY.md for the full API mapping and build phases.


What this is

copilotkit-vue exposes the CopilotKit feature set to Vue 3 developers via idiomatic Vue composables and Single File Components (SFCs). It reuses the framework-agnostic @copilotkit/core and @copilotkit/shared packages and does not bundle React.


Install

pnpm add copilotkit-vue
# or
npm install copilotkit-vue

Quick start

<script setup lang="ts">
import { CopilotKitProvider, useAgent, CopilotChat } from "copilotkit-vue";
import "copilotkit-vue/styles";

const { agent } = useAgent({ agentId: "my_agent" });
</script>

<template>
  <CopilotKitProvider runtime-url="/api/copilotkit">
    <CopilotChat />
  </CopilotKitProvider>
</template>

Composables

| Composable | Description | | ------------------------ | -------------------------------------------------------------------------- | | useAgent | Connect to a backend agent and manage its run state | | useCopilotChat | Send messages and get a reactive messages array, isLoading, and stop | | useAgentContext | Register reactive app state the AI can read | | useFrontendTool | Register a client-side tool the AI can call | | useCopilotAction | Register an action the AI can invoke from the chat | | useMakeCopilotReadable | Make app data readable to the AI |


Components

| Component | Description | | ---------------------- | ----------------------------------------------------------- | | <CopilotKitProvider> | Root provider — wraps your app and supplies the runtime URL | | <CopilotChat> | Ready-made chat panel | | <CopilotSidebar> | Sidebar chat panel | | <CopilotPopup> | Floating popup chat | | <CopilotTextarea> | AI-enhanced textarea with autocomplete |


Styles

Import the base stylesheet alongside your component usage:

import "copilotkit-vue/styles";

Style source of truth

  • Edit source styles in src/styles/index.css
  • styles/index.css is the published output file

Sync/check commands:

pnpm run sync:styles   # copy src/styles/index.css -> styles/index.css
pnpm run check:styles  # fail if files are out of sync

pnpm build runs sync:styles automatically before packaging.


Examples

| Example | Description | | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | basic | Inline <CopilotChat> panel next to app content with a local runtime server | | composables | Fully custom chat UI built with useCopilotChat, useAgentContext, and useFrontendTool — no <CopilotChat> component | | sidebar | Chat delivered via <CopilotSidebar> | | agent | Backend agent (C#) used by the example apps |


Development

Clone the repo and install dependencies:

git clone --recurse-submodules https://github.com/Aenas11/CopilotKitVue.git
cd CopilotKitVue
pnpm install

Useful commands (run from the workspace root):

pnpm build            # build all packages
pnpm test             # run all tests
pnpm check-types      # type-check all packages
pnpm lint             # lint the repository
pnpm run sync:report  # check API drift against upstream React package

Package-level commands:

cd packages/vue
pnpm build       # build this package only
pnpm test        # run package tests
pnpm check-types # type-check this package
pnpm storybook:dev # run Storybook + runtime + agent (example-backed)
pnpm storybook   # run Storybook UI only
pnpm build-storybook # build static Storybook

Quick script guide:

  • Daily UI development: pnpm storybook:dev
  • Storybook test widget/watch mode: pnpm storybook:ui:with-tests
  • Story tests in CLI: pnpm test:stories

Storybook with real runtime/agent

The Vue package Storybook is wired to the same local runtime + agent flow used by examples:

  • Agent process: ../../examples/scripts/runner.js run-agent
  • Runtime process: ../../examples/basic/runtime-server.mjs
  • Storybook UI on http://localhost:6006
  • Storybook proxies /api/copilotkit to http://localhost:4000

Start everything together from packages/vue:

pnpm storybook:dev

This keeps Storybook behavior aligned with the example environment instead of using purely mocked transport.

Storybook modes

Use the mode that matches your task:

  • pnpm storybook:dev: Recommended default for daily UI work. Runs Storybook + runtime + agent without the Storybook test widget watcher.
  • pnpm storybook:ui:with-tests: Runs Storybook UI with @storybook/addon-vitest enabled (testing widget/watch mode).
  • pnpm test:stories: Runs Storybook story tests in CLI via Vitest (--project storybook).

This split avoids intermittent storybook/status watcher shutdown errors during normal storybook:dev usage while still keeping Storybook-driven tests available on demand.

Live smoke checklist page in Storybook:

  • Workflows/Live Agent/Checklist (story file: src/stories/LiveAgentChecklist.stories.ts)

License

MIT — same as CopilotKit.