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

@cjhyy/code-shell-web

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cjhyy/code-shell-web

CodeShell web client logic layer — remote-app state (chatReducer + server-event fold), reconnecting WebSocket hook, pairing/device-credential/risk helpers, and the mobile i18n namespace. Browser-only (no Electron, no Node); seed of the standalone browser

Source
npmnpm
Version
0.9.42
Version published
Weekly downloads
318
-78.38%
Maintainers
1
Weekly downloads
 
Created
Source

@cjhyy/code-shell-web

Browser-only state and UI helpers for CodeShell's remote client. The package contains no Electron code and imports CodeShell core contracts as types only.

Public surface

The root entry exports:

  • the reconnecting WebSocket hook and remote-app state machine;
  • protocol stream reducers and message mappers;
  • pairing, device-credential, attachment, risk and storage helpers;
  • the mobile i18n namespace and translation helpers.
import { useRemoteApp, useRemoteSocket, classifyRisk, translate } from "@cjhyy/code-shell-web";

The reusable browser logic is emitted to dist/. The package also ships the standalone Vite application in dist-app/; @cjhyy/code-shell-server/serve uses those assets for the ready-made headless web host.

Commands

bun run --cwd packages/web build
bun run --cwd packages/web build:app
bun run --cwd packages/web dev:app

build cleans both output directories before compiling the library and building the application, so published assets cannot contain stale files.

Boundary

This package may use browser APIs and type-only core protocol imports. It must not import Electron, Desktop preload globals, Node-only runtime modules or core runtime implementations.

License

MIT.

FAQs

Package last updated on 14 Oct 2026

Related posts