Do

Dop, Awk-like processing for JSON/YAML/TOML with Lua

Hacker News

Dop, Awk-like processing for JSON/YAML/TOML with Lua

dop reads JSON, YAML, or TOML from stdin, walks the structure field by field, and lets you transform values with Lua. It can also query nested paths and convert between formats. It weights just 800kb and you don't need Lua installed in your pc. A few examples: echo '{"list":[1,2,3]}' | dop -e ' if type(VALUE) == "number" then set(VALUE * 2) end ' # => {"list":[2,4,6]} echo '{"data":{"some_list":[1,2,3]}}' | dop -q data.some_list # => [1,2,3] What I wanted was: - something simpler to reason about for non-trivial transforms - one tool for JSON/YAML/TOML - embedded scripting without needing Lua installed separately Repo: https://github.com/dhuan/dop Any feedback is welcome.

Share card

Actual performance

2points
1comments
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Hacker NewsStrong engagement from HN community · Strong signals: lua · Missing: https docs, excited, just released
67%67% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRFits verified-revenue profile · Strong signals: para · Missing: mobile apps, ios, personal
56%56% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
42%42% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Indie HackersIH features products with proven revenue · Strong signals: para · Missing: supports, reddit linkedin, podcasting
39%39% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Product HuntUnlikely to reach the leaderboard · Missing: mac, agents, macos
30%30% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
15%15% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
2%2% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Qu
Quicktype – it's like Uber, but for JSON68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Quicktype – it's like Uber, but for JSON

Hacker News34
ra
ramda-cli, a jq-like tool for processing JSON with functional pipelines66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ramda-cli, a jq-like tool for processing JSON with functional pipelines

Hacker News1
cl
cloudlab - numerical processing with javascript & json65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

cloudlab - numerical processing with javascript & json

Hacker News12
JS
JSON-up – Like database migrations, but for JSON37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

JSON-up – Like database migrations, but for JSON

Hacker News1
A
A very loose JSON-like markup language62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A very loose JSON-like markup language

Hacker News1
Br
Brackit – Separating Key Concerns in JSON Query Processing52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Brackit – Separating Key Concerns in JSON Query Processing

Hacker News3
Co
Command-line JSON processing tool63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Command-line JSON processing tool

Hacker News32
JS
JSON.stringify (without circular deps) for AngularJS 1.x41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

JSON.stringify (without circular deps) for AngularJS 1.x

Hacker News3
Ho
Homogenius – JSON packer/unpacker47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Homogenius – JSON packer/unpacker

Hacker News1
js
json.is47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

json.is

Hacker News10