New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@tangle-network/agent-app-mobile

Package Overview
Dependencies
Maintainers
5
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tangle-network/agent-app-mobile

React Native / Expo adapter for Tangle agent apps.

npmnpm
Version
0.1.0
Version published
Weekly downloads
6
500%
Maintainers
5
Weekly downloads
 
Created
Source

@tangle-network/agent-app-mobile

React Native / Expo components and transport helpers for agent apps.

This package is intentionally thin. It depends on @tangle-network/agent-app for the engine-shaped parts and only owns native mobile UI:

  • Router-backed chat screens
  • Mobile chat message list
  • Mobile composer
  • Model picker
  • Tool/activity list
  • NDJSON stream consumption for agent-app chat routes

It does not import web UI, sandbox terminal UI, xterm, or sandbox-ui.

Install

pnpm add @tangle-network/agent-app-mobile @tangle-network/agent-app react react-native

Router-backed Mobile Chat

import {
  AgentChatView,
  createAgentAppChatClient,
  streamAgentAppTurn,
  useMobileChatState,
} from '@tangle-network/agent-app-mobile'

const client = createAgentAppChatClient({
  baseUrl: 'https://your-agent-app.example',
})

function ChatScreen() {
  const chat = useMobileChatState()

  async function send(message: string) {
    const assistantId = chat.startTurn(message)
    await streamAgentAppTurn({
      start: () => client.start({ message }),
      resume: client.resume,
      callbacks: chat.callbacksFor(assistantId),
      onResetForResume: () => chat.resetAssistant(assistantId),
    })
  }

  return (
    <AgentChatView
      title="Agent"
      messages={chat.messages}
      value={chat.input}
      onValueChange={chat.setInput}
      onSend={send}
    />
  )
}

Sandbox-backed Mobile Chat

Sandbox-backed apps should stream chat/activity to these same components. Do not mount terminal/xterm on phone. Show retained tool runs and sandbox command summaries as activity rows; reserve live terminal for desktop/tablet web.

Repo Layout

PathPurpose
src/stream.tsMobile-safe parser for agent-app NDJSON chat streams
src/state.tsChat reducer + hook for streamed assistant turns
src/components/React Native components
example/Expo smoke app showing the package surface

FAQs

Package last updated on 01 Jul 2026

Related posts