🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@nyosegawa/agent-ui-web-components

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nyosegawa/agent-ui-web-components

Web Components wrapper for Agent UI React components.

latest
Source
npmnpm
Version
4.0.0
Version published
Maintainers
1
Created
Source

@nyosegawa/agent-ui-web-components

Web Components wrapper for Agent UI React components.

Use this package when a host cannot mount React directly but can consume custom elements backed by Agent UI's React preset.

Install

bun add @nyosegawa/agent-ui-web-components @nyosegawa/agent-ui-react

Common Imports

Use caseImport
Define the default custom elementimport { defineAgentChatElement } from "@nyosegawa/agent-ui-web-components";
Type element optionsimport type { AgentChatElementOptions } from "@nyosegawa/agent-ui-web-components";
Type the element classimport type { AgentChatElement } from "@nyosegawa/agent-ui-web-components";
Style the underlying React presetimport "@nyosegawa/agent-ui-react/styles.css";

Package Boundary

This package wraps Agent UI presentation as custom elements. Host applications still own Codex connection setup, runtime lifecycle, persistence, credentials, and app-specific workflows.

Pass transports, opaque initialState snapshots, agentOptions, and the React components replacement map as element properties. agentOptions is a complete replacement for the element configuration. Replacing transport or initialState remounts the underlying React provider.

Transcript display policy is also configured as JavaScript properties: element.transcriptDisplay, element.transcriptMode, or the matching agentOptions fields. Use transcriptMode = "answer-focused" for the built-in answer-focused preset, or pass the same transcriptDisplay policy object used by the React package.

The custom element does not import CSS automatically, spawn Codex, create auth, persist sessions, or provide hosted service policy. Hosts should import @nyosegawa/agent-ui-react/styles.css once and pass transports, callbacks, and component replacements as JavaScript properties.

See the repository docs for current package exports and integration guidance: https://github.com/nyosegawa/agent-ui

FAQs

Package last updated on 01 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts