New:Socket for Asana Is Now Available.Learn more
Get Started

@devframes/plugin-inspect

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devframes/plugin-inspect

Devframe plugin that inspects the RPC registry, shared state, and agent surface of a connection.

Source
npmnpm
Version
0.9.0-beta.9
Version published
Weekly downloads
87K
8.31%
Maintainers
1
Weekly downloads
 
Created
Source

@devframes/plugin-inspect

[!WARNING] Experimental This plugin is experimental and may change without a major version bump until it stabilizes.

A devframe plugin that inspects its own connection (and, when mounted in a host, the host's): browse every registered RPC function with its metadata, invoke read-only query/static functions and inspect the results, watch shared-state keys update live, explore the agent-exposed surface, and — while running against a live backend — list the other devframe dev servers running alongside it.

Ported in spirit from the RPC & State panels of vitejs/devtools; rebuilt on devframe's framework-neutral client (connectDevframe, rpc.sharedState) with a Vue + Vite SPA.

Use it standalone

pnpx @devframes/plugin-inspect

Opens the inspector against a fresh standalone devframe connection — useful as a reference and for poking at the introspection RPCs themselves.

Mount into a Vite host

// vite.config.ts
import createInspectDevframe from '@devframes/plugin-inspect'
import { devframeVite } from '@devframes/vite/single'
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    devframeVite(createInspectDevframe()),
  ],
})

Programmatic

import { createInspectDevframe } from '@devframes/plugin-inspect'

const devframe = createInspectDevframe({ port: 9100 })

RPC surface

All functions are namespaced devframes:plugin:inspect:*:

FunctionTypeWhat it returns
list-functionsquery (snapshot)Every registered RPC function with metadata (type, JSON-serializable/snapshot flags, args/return JSON Schema, agent exposure).
invokeactionInvokes a read-only query/static function by name and returns a result envelope. Refuses action/event functions.
list-state-keysquery (snapshot)The keys of every shared-state entry on the connection.
describe-agentquery (snapshot)The agent manifest — tools and readable resources.
list-instancesquery (live)Every devframe dev server currently running on the machine, discovered through the shared instance registry. Powers the read-only Instances tab.

The three snapshot query functions are agent-exposed (read-only) and bake into the static dump, so the inspector still lists functions, state keys, and the agent surface when deployed as a static SPA. list-instances is live rather than baked (the set of running processes is meaningless in a static dump), so the Instances tab appears only against a live backend.

Keywords

devframe

FAQs

Package last updated on 17 Aug 2026

Related posts