Arbitrary UI
Arbitrary UI shows a readable page beside the text of a data file. You get tables you can sort, filter and group, formatted values, charts and comparisons. It reads JSON, YAML, XML, CSV, Excel workbooks, logs and markdown. And all of that inside markdown too!
Nothing you open leaves your machine. External links in the data load only when you agree, or when you turn on arbitraryUi.loadWebMedia.
A JSON file opened beside its text:

Use
Open Arbitrary UI to the Side opens one preview that follows the active file, like VS Code's Markdown preview. Rename the file, or a folder holding it, in VS Code and the preview follows it. You find it as a button in a data file's editor title, or in the file's context menu in the Explorer.
The preview updates when you save. Changes you haven't saved yet don't show.
A new file you haven't saved (Ctrl+N) shows as you type. Its language mode says how it reads: pick YAML or Markdown with Change Language Mode. As plain text, it shows as data only when it plainly is, such as JSON, CSV or a log. Save view on it asks where to save the file first, then writes the view beside it.
The value under the cursor scrolls into view in the preview. Alt+click a value in the preview to select it in the editor.
The preview's top line holds the document's search (also Ctrl+F), Show as and the display settings.
Show as shows the document in one of three ways. The next preview opens the way you last picked.
- as the preview
- as an outline of its keys and values, which also follows the cursor and takes Alt+click
- as a diagram of its structure or its objects
Compare in Arbitrary UI combines several files into one document. Select the files in the Explorer first. On a folder, use Compare Folder in Arbitrary UI. An .aui.json among them that belongs to none of the files by name says how they compare, for example which fields to leave out, lists in any order, or a tolerance for numbers. Without one, Save view asks which aui file in their folder keeps the rules, or makes a new one (a name without .aui.json gets it added), and remembers it for those files. One file can keep the rules of many comparisons.
Save view writes the layout of the preview (a column you grouped, hid or made a chart from) into the aui file, a separate file beside yours: orders.aui.json beside orders.json. Arbitrary UI never changes your original file. It shows everything from the data, and the aui file remembers how. The file is created if there is none, and Undo takes the edit back.
Open With… → Arbitrary UI opens a file in a tab of its own:
- A markdown file opens as its page, listed beside VS Code's Markdown Preview.
- A sound file opens as a player with its waveform, spectrogram, tags, and the lyrics of the
.lrc file beside it.
VS Code keeps its own editor as the default. The first time, it asks whether to open every file of that kind this way.
Sounds and images that the data names in its workspace folder play and show in the preview, for example clips/intro.mp3 or ../assets/logo.png.
The editor and the preview point at each other:

A folder of settings files, compared:

Files beside the data
For orders.json, the preview also reads these files:
orders.aui.json says how to show each field: columns, formats, labels, chips and charts. A label can be one text, or one per language ({ "en": "Amount", "cs": "Částka" }): you get your VS Code language's, else English. VS Code completes and checks these files.
orders.schema.json is a JSON Schema.
- Make JSON Schema from the Data with Arbitrary UI writes one from the data and opens it, as
arbitrary-ui infer-schema does. Find it in the Command Palette or the preview's … menu.
- It asks before replacing an existing schema.
- It names the values it left out as likely mistakes, and the preview flags them.
aui.json holds the same for every data file in its folder, by field name. It can sit in the data's folder or in any folder above it, up to the workspace folder. The nearest one wins, and the data's own orders.aui.json wins over all. A comparison uses those above any of its files.
orders.css adds your own styles on top of the theme.
Settings
arbitraryUi.theme: a built-in look (Color-blind safe, Paper, Nord, Raw, Terminal), or the default, Slate.
arbitraryUi.followCursor: bring the value under the cursor into view (on by default).
arbitraryUi.saveViewAutomatically: write every change to a table's view into its aui file at once. The preview's Always save turns it on.
arbitraryUi.loadWebMedia: load media from the web without asking. Always load from the web turns it on.
The display settings button on the preview's top line sets the rest, as in the web app:
- rows per page, and where the page buttons go
- how numbers and dates are written
- the time zone and relative dates
- headings as written in the data
- the words that mean no value in a table, such as
NULL and NA
Every preview uses these settings. They stay after VS Code restarts, and Settings Sync carries them along.
The preview uses VS Code's own font, your editor's font for code, and your editor's font size. Light or dark follows VS Code's color theme, and the language follows its display language. That is why the menu doesn't offer them like it does in the web app.
The extension speaks VS Code's display language where it has a translation: English, Czech, Slovak and Ukrainian. That covers its commands, settings, messages and the preview.
License
You can use it for free under the PolyForm Noncommercial or the PolyForm Small Business License 1.0.0, whichever fits. That covers:
- personal use
- noncommercial organizations
- companies with fewer than 100 people and under $1 million in revenue
Bigger companies need a license, and one license covers every part of Arbitrary UI: see ui.arbitrary.one/business. The status bar says which license the preview runs under: Arbitrary UI · Free, or your company's name once its license key is in the arbitraryUi.licenseKey setting. IT can deploy the key with your company's VS Code settings. The license is also in the extension's files (build/LICENSE.md).
The open-source components it ships, and their licenses, are listed in two files:
build/THIRD-PARTY-NOTICES.txt for the extension
build/webview/THIRD-PARTY-NOTICES.txt for the preview
| |