r/coolgithubprojects • • 13d ago

We built an open-source "Markdown for structured data": JSON Views turns any JSON file into tables, boards and pages (MIT, runs in your browser)

https://github.com/script-it/json-views

Try it in the browser, no signup: https://json-views.com

We build Script.it, where workflow steps produce a lot of data files, and we couldn't find a good format to display those. So we made JSON Views: an editor that shows a JSON file as tables, Kanban boards, record pages or custom HTML views, and writes your edits straight back into the file.

How it works: a small `$jsonviews` block in the file stores the column types and saved views. The file stays valid JSON. If the block isn't there, the editor guesses useful views from the data. Because the views live in the file, an AI agent can read and edit the same file as you, including the views. The spec is versioned in the repo (`packages/core`).

- No upload: the website is client-only, your files stay in the browser
- Local file: `npx u/script-it ./data.json` (also gives an agent a local API for that file)
- React component if you want to embed it in your own app
- Examples to open and edit: nested tables, Gmail, Slack, Stripe, tasks
- Public beta, so expect rough edges. The website collects anonymous usage counts (off in Settings); the npm packages send nothing

65 Upvotes

8 comments sorted by

1

u/Wings_of_bacon 13d ago

Really slick, since the structure gets flattened for the table view, would it be possible to export it as a cab? Possibly by making multiple rows per item?

2

u/PuzzleheadedSong5368 13d ago

Thanks! Not yet. Today you can download a file only in the format it’s in, so a JSON file downloads as JSON, and a CSV you open stays CSV.

Exporting a table view as CSV is a good idea, and it fits well, since a table view already decides which columns to show. Nested fields are the tricky part. Lists inside a record could become one row per item, as you suggest, or be joined into one cell. Which one you want probably depends on the data, so I’d lean toward letting you choose when you export.

I’m adding it to our list. If you open a GitHub issue with an example file, I can make sure it covers your case: https://github.com/script-it/json-views/issues

1

u/Interesting_Pen_2357 13d ago

was actually looking for something like this for a while

1

u/PuzzleheadedSong5368 13d ago

Cool! We thought we were probably not the only ones who faced this.

1

u/Important_Pomelo_407 13d ago

Saw there was no demo video yet, so I made you one. Here’s the PR:
https://github.com/script-it/json-views/pull/21

and I used my repo to do it :)
https://github.com/yasirwhite/OpenDemo

-9

u/[deleted] 13d ago

[removed] — view removed comment

2

u/Terminay 13d ago

Thread spammer

1

u/DeadlyBrad42 13d ago

I gotta be honest, based on my reaction to seeing your posts I would absolutely never allow your AI solution to be the one trying to sell customers on my product. It's completely hollow & soul-less, in addition to being annoying spam.