DT

DTL: a language and JavaScript lib to transform and manipulate data

Hacker News

DTL: a language and JavaScript lib to transform and manipulate data

DTL is a project that began it's life as part of a another piece of software for a startup I founded a few years ago. For that project I needed a way to describe how to rewrite data in a portable way. I needed to be able to create the rules on the fly and store them in a database, I needed them to be able to describe transformations I hadn't thought about, but also needed them to be safe and predictable. Though the startup didn't survive, the language I made was so useful to me I felt I had to extract it and make it usable to everyone. DTL is the result. Though the npm module is relatively new, the language itself has been in use in production systems for years. Over the past couple of years I have been working to make it more accessible and useful to newcomers. Though it's really powerful, I tried to make it easy to use and simple to understand so that you can get up to speed quickly and use only as much as you need. To summarize: DTL is a javascript module and related CLI tools that are really handy for transforming data from one format to another. It's made to allow you to specify your transformations as data (JSON by default) which means they are easily shared from frontend to backend and vice versa, as well as making them easily stored in databases, etc. It can be used as part of your project to transform data between APIs, between the frontend and your database, etc. and can do simple mappings as well as complex calculations. It can also be used for validation and is really handy for extracting useful information from large / complex datasets (there are some great examples of this you can try on the website). The CLI tool (dtl) is like jq on sterooids, allowing you to slice, dice and remap csv, yaml, json or even plaintext data doing anything you can describe in a DTL transform. If you ever wished you could `grep` in complex data structures, today is your lucky day. :) I'd love any feedback you have and if you think of anything it doesn't have that it should, I'd love to hear that too.

Share card

Actual performance

63points
20comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
93%93% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: new, apis, plain · Missing: mac, agents, macos
77%77% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
66%66% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
34%34% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
32%32% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% 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
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

DT
DTL: a language and JavaScript lib to transform and manipulate data34%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

DTL: a language and JavaScript lib to transform and manipulate data

Hacker News1
I
I Made a Language to Be JavaScript's Nanny60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I Made a Language to Be JavaScript's Nanny

Hacker News4
Pu
PureScript - a functional language which compiles to Javascript65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PureScript - a functional language which compiles to Javascript

Hacker News2
No
Normalize your data with relational conventions in JavaScript54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Normalize your data with relational conventions in JavaScript

Hacker News2
Se
Serialize Any JavaScript Data54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Serialize Any JavaScript Data

Hacker News1
A
A new language that merges FORTH and Javascript61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A new language that merges FORTH and Javascript

Hacker News10
Da
Dak – a Lisp-like language that transpiles to JavaScript61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Dak – a Lisp-like language that transpiles to JavaScript

Hacker News94
`c
`cleanlang` a clean compile to JavaScript language60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

`cleanlang` a clean compile to JavaScript language

Hacker News2
Ag
Agnostic JavaScript two-way data binding lib (7KBtyes)32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Agnostic JavaScript two-way data binding lib (7KBtyes)

Hacker News1
Ta
Tableau-Like Data Visualizations in JavaScript63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tableau-Like Data Visualizations in JavaScript

Hacker News361