Ch

Chainflow – API call workflows in TypeScript

Hacker News

Chainflow – API call workflows in TypeScript

Hello HN! I am a junior Software Engineer venturing into Open Source for the first time. Chainflow is a library inspired by some pain points I experienced in my dev work. When building features for an app, I often encounter situations where I need to set up test data to demonstrate those features to users and check if implementations are working properly. Sometimes, I might have to manually click and type to get past unimportant stages of the app when moving between things I want to test. I wanted to automate these tasks that were irrelevant to the main features I was working on, but I didn't want to do it with SQL/DB scripts. I wanted to use the app's actual service endpoints to ensure important side effects are triggered, and I didn't brute force my way through the app via DB manipulation which can risk missing out on bugs or introducing unusual data into the app. When searching for solutions, I found Postman Flows ( https://learning.postman.com/docs/postman-flows/gs/flows-ove... ) which I thought was a pretty solid tool. However, I wanted more control to validate and process data moving in between endpoint calls, plus I wanted something I could easily run from the CLI without needing to open and configure a full GUI application. Hence, I wrote Chainflow, which is functionally similar to Postman Flows; it helps create and organize sets of API endpoint calls in a series (what I refer to as "API call workflows" or "chainflows" in the library) while helping data flow between the inputs and outputs of different endpoints, except that things are done in code so us engineers have more freedom when working with it. I try to keep Chainflow as ergonomic as developer tools should be, so I focus on composability where common building blocks (e.g., login APIs) can be reused between endpoints and more complex processes can be flexibly built up from simpler ones. I'm still writing my own scripts with Chainflow, so I'm learning and making adjustments as I go. I'm incredibly excited by this first project of mine, so if you decide to try Chainflow out, I would love to hear what you like about it, what doesn't make sense, or what could be better. I've written guides on https://edwinlzs.github.io/chainflow-docs/ to help anyone trying Chainflow out. I appreciate you reading this post, and I hope to hear any thoughts and advice you may have!

Share card

Actual performance

2points
2comments
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: user, tasks, code · Missing: mac, agents, macos
90%90% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
89%89% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: excited, open source, ide · Missing: https docs, just released, exist
56%56% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: users, way · Missing: mobile apps, ios, personal
39%39% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: plus, users, calls · Missing: platform, intuitive, reviews
36%36% predicted probability of success on AppSumo, 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.

Incorrect prediction on native model

Similar products

A
A TypeScript API for constructing XPath 1.0 expressions52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A TypeScript API for constructing XPath 1.0 expressions

Hacker News2
In
Internationalizationext selector API – selector t for TypeScript59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Internationalizationext selector API – selector t for TypeScript

Hacker News1
We
Web API to TypeScript54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Web API to TypeScript

Hacker News2
Ce
Cerialize – Typescript serialization by annotation39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Cerialize – Typescript serialization by annotation

Hacker News1
Sc
Scala-ts – Scala to TypeScript compiler41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Scala-ts – Scala to TypeScript compiler

Hacker News66
Ha
Hapi with Typescript51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Hapi with Typescript

Hacker News2
JS
JSONSchema to TypeScript compiler51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

JSONSchema to TypeScript compiler

Hacker News72
Tr
Transpile Scala to TypeScript29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Transpile Scala to TypeScript

Hacker News1
Ge
Get started modding Factorio in TypeScript44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Get started modding Factorio in TypeScript

Hacker News69
Du
DuoCode 1.0 bridges the gap between C# and TypeScript31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

DuoCode 1.0 bridges the gap between C# and TypeScript

Hacker News7