Readit News logoReadit News
dhuan_ commented on Ask HN: What are you working on? (May 2025)    · Posted by u/david927
dhuan_ · 3 months ago
I've been working on mock: https://dhuan.github.io/mock/

the process of creating APIs for testing and automation should be as easy possible. the tools that exist nowadays aren't good enough, they require you to use their programming language of choice or complex procedures for a task that should be simple. I built mock to try to solve that and still continue to maintain it.

dhuan_ commented on Ask HN: What are you working on? (April 2025)    · Posted by u/david927
dhuan_ · 4 months ago
I've been working on mock: https://dhuan.github.io/mock/

the process of creating APIs for testing and automation should be as easy possible. the tools that exist nowadays for this purpose aren't good enough IMHO, which led me to build it.

dhuan_ commented on Ask HN: What are you working on? (February 2025)    · Posted by u/david927
dhuan_ · 6 months ago
I've been working on mock:

https://dhuan.github.io/mock/

the process of creating APIs for testing and automation should be as easy possible. the tools that exist nowadays aren't good enough, they require you to use their programming language of choice or complex procedures for a task that should be simple. I built mock to try to solve that and still continue to maintain it.

dhuan_ commented on Writing and testing a paginated API iterator in Go   blog.thibaut-rousseau.com... · Posted by u/thiht
dhuan_ · 8 months ago
that's a really useful testing strategy. I used to to write automated tests using an approach very similar to yours, but I was often bothered that I needed to write code in a programming language to set up the mocked data. After a while the testing code gets really verbose. Not just the mocking setup but also the assertion logic. I wanted an easier way that didn't involve writing much code, so I ended up building "mock":

https://dhuan.github.io/mock/

dhuan_ commented on Ask HN: Is there any software you only made for your own use but nobody else?    · Posted by u/Crazyontap
dhuan_ · a year ago
I built mock, an api tool and testing utility to be able to quickly manipulate API responses and act as a proxy server at the same time.

After some time, I decided to open-source it:

https://dhuan.github.io/mock/

dhuan_ commented on Show HN: I built a backend so simple that it fits in a YAML file   manifest.build... · Posted by u/brunaxLorax
dhuan_ · a year ago
Hey very useful app, I'll be watching this. I once wanted to set up backend apps during automated CI jobs in order to facilitate e2e tests and ended up making an utility kind of similar - but yours truly goes beyond.

https://dhuan.github.io/mock/

With mock you can set up backend APIs completely from configuration files or even from command-line parameters - such as

$ mock serve --port 3000 --route 'say_hi/{name}' --method GET --response 'Hello world! My name is ${name}.' --route "what_time_is_it" --method GET --exec 'printf "Now it is %s" $(date +"%H:%M") > $MOCK_RESPONSE_BODY'

dhuan_ commented on Ask HN: Most interesting tech you built for just yourself?    · Posted by u/l2silver
dhuan_ · 2 years ago
mock - language agnostic API mocking and testing utility https://github.com/dhuan/mock

I built it because I needed an easy way to set-up API endpoints that weren't implemented yet by some other team. After a while I open-sourced it.

wikicmd https://github.com/dhuan/wikicmd

Navigating through mediawiki to get pages edited all time requires a bunch of clicks. I wanted to be able to quickly edit wiki pages using any editor program instead of the browser.

u/dhuan_

KarmaCake day11September 24, 2022View Original