Skip to content

feat: JSON Render dock type and Git UI example#203

Merged
antfu merged 8 commits intomainfrom
antfu/json-render-support
Mar 16, 2026
Merged

feat: JSON Render dock type and Git UI example#203
antfu merged 8 commits intomainfrom
antfu/json-render-support

Conversation

@antfu
Copy link
Member

@antfu antfu commented Mar 16, 2026

Summary

Adds json-render dock type to Vite DevTools, enabling UI creation entirely from server-side TypeScript without client code. Includes comprehensive component library, documentation, and a fully-featured Git UI example plugin demonstrating all features.

Features:

  • 13 built-in components (Stack, Card, Button, TextInput, DataTable, etc.)
  • Dynamic UI updates via updateSpec() and updateState()
  • RPC action bindings for interactive elements
  • Two-way state binding with $bindState and $state
  • Complete documentation with component reference and examples

Git UI Example:
Demonstrates a plugin with git status visualization, per-file staging/unstaging, commit functionality, and dynamic badges. Uses tinyexec for safe process execution and logs API for operation feedback.

CleanShot 2026-03-16 at 15 51 43@2x

Linked Issues

Implements json-render dock entry type as discussed in #193

Additional context

Key additions:

  • /docs/kit/json-render.md - Complete component reference and integration guide
  • packages/core/src/client/webcomponents/json-render/ - 15 component implementations + catalog
  • examples/plugin-git-ui/ - Full example plugin with git operations and state management
  • packages/kit/src/utils/json-render.ts - Type-safe spec builder

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 16, 2026

Open in StackBlitz

@vitejs/devtools

npm i https://pkg.pr.new/@vitejs/devtools@203

@vitejs/devtools-kit

npm i https://pkg.pr.new/@vitejs/devtools-kit@203

@vitejs/devtools-rolldown

npm i https://pkg.pr.new/@vitejs/devtools-rolldown@203

@vitejs/devtools-rpc

npm i https://pkg.pr.new/@vitejs/devtools-rpc@203

@vitejs/devtools-self-inspect

npm i https://pkg.pr.new/@vitejs/devtools-self-inspect@203

commit: e47d5e1

antfu and others added 3 commits March 16, 2026 15:35
@antfu antfu merged commit 9840419 into main Mar 16, 2026
9 checks passed
@antfu antfu deleted the antfu/json-render-support branch March 16, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant