frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Tusk Drift – Open-source tool for automating API tests

https://github.com/Use-Tusk/drift-node-sdk
20•Marceltan•2h ago
Hey HN, I'm Marcel from Tusk. We’re launching Tusk Drift, an open source tool that generates a full API test suite by recording and replaying live traffic.

How it works:

1. Records traces from live traffic (what gets captured)

2. Replays traces as API tests with mocked responses (how replay works)

3. Detects deviations between actual vs. expected output (what you get)

Unlike traditional mocking libraries, which require you to manually emulate how dependencies behave, Tusk Drift automatically records what these dependencies respond with based on actual user behavior and maintains recordings over time. The reason we built this is because of painful past experiences with brittle API test suites and regressions that would only be caught in prod.

Our SDK instruments your Node service, similar to OpenTelemetry. It captures all inbound requests and outbound calls like database queries, HTTP requests, and auth token generation. When Drift is triggered, it replays the inbound API call while intercepting outbound requests and serving them from recorded data. Drift’s tests are therefore idempotent, side-effect free, and fast (typically <100 ms per test). Think of it as a unit test but for your API.

Our Cloud platform does the following automatically:

- Updates the test suite of recorded traces to maintain freshness

- Matches relevant Drift tests to your PR’s changes when running tests in CI

- Surfaces unintended deviations, does root cause analysis, and suggests code fixes

We’re excited to see this use case finally unlocked. The release of Claude Sonnet 4.5 and similar coding models have made it possible to go from failing test to root cause reliably. Also, the ability to do accurate test matching and deviation classification means running a tool like this in CI no longer contributes to poor DevEx (imagine the time otherwise spent reviewing test results).

Limitations:

- You can specify PII redaction rules but there is no default mode for this at the moment. I recommend first enabling Drift on dev/staging, adding transforms (https://docs.usetusk.ai/api-tests/pii-redaction/basic-concep...), and monitoring for a week before enabling on prod.

- Expect a 1-2% throughput overhead. Transforms result in a 1.0% increase in tail latency when a small number of transforms are registered; its impact scales linearly with the number of transforms registered.

- Currently only supports Node backends. Python SDK is coming next.

- Instrumentation limited to the following packages (more to come): https://github.com/Use-Tusk/drift-node-sdk?tab=readme-ov-fil...

Let me know if you have questions or feedback.

Demo repo: https://github.com/Use-Tusk/drift-node-demo

Comments

sg_gabriel•1h ago
How do you keep replayed tests trustworthy over time as dependencies and schemas evolve? (i.e. without turning into brittle snapshot tests)

Also, how do you normalize non-determinism (like time/IDs etc.), expire/refresh recordings, and classify diffs as "intentional change" vs "regression"?

Marceltan•1h ago
Good questions. I'll respond one by one:

1. With our Cloud offering, Tusk Drift detects schema changes, then automatically re-records traces from new live traffic to replace the stale traces in the test suite. If using Drift purely locally though, you'd need to manually re-record traces for affected endpoints by hitting them in record mode to capture the updated behavior.

2. Our CLI tool includes built-in dynamic field rules that handle common non-deterministic values with standard UUID, timestamp, and date formats during response comparison. You can also configure custom matching rules in your `.tusk/config.yaml` to handle application-specific non-deterministic data.

3. Our classification workflow correlates deviations with your actual code changes in the PR/MR (including context from your PR/MR title and body). Classification is "fine-tuned" over time for each service based on past feedback on test results.

chrisweekly•49m ago
Cool. Definitely a pain point worth attacking. Bookmarked, plan to explore when time allows.
Marceltan•43m ago
Sounds good Chris, would love to hear your thoughts once you've played around with it.
imiric•43m ago
What does this do that I can't do with mitmproxy?
bilekas•2m ago
You would need to add your own validation (determining deviations) into your mitm proxy. It's a testing framework that seems to want to streamline multiple streams of api testing. It's not reinventing the wheel, but it doesn't claim to either.

Looks like a nice tool, will check it out later when I get a chance.

Canada loses its measles-free status, with US on track to follow

https://www.bbc.com/news/articles/cy7e2lv4r8xo
58•bookofjoe•49m ago•35 comments

The 'Toy Story' You Remember

https://animationobsessive.substack.com/p/the-toy-story-you-remember
888•ani_obsessive•13h ago•234 comments

I Fell in Love with Erlang

https://boragonul.com/post/falling-in-love-with-erlang
247•asabil•1w ago•127 comments

iPhone Pocket

https://www.apple.com/newsroom/2025/11/introducing-iphone-pocket-a-beautiful-way-to-wear-and-carr...
164•soheilpro•6h ago•382 comments

Show HN: Gametje – A casual online gaming platform

https://gametje.com
47•jmpavlec•2h ago•14 comments

Widespread distribution of bacteria containing PETases across global oceans

https://academic.oup.com/ismej/article/19/1/wraf121/8159680?login=false
61•PaulHoule•4h ago•34 comments

Drawing Text Isn't Simple: Benchmarking Console vs. Graphical Rendering

https://cv.co.hu/csabi/drawing-text-performance-graphical-vs-console.html
15•PaulHoule•1h ago•7 comments

Show HN: Tusk Drift – Open-source tool for automating API tests

https://github.com/Use-Tusk/drift-node-sdk
21•Marceltan•2h ago•6 comments

Advent of Code on the Z-Machine

https://entropicthoughts.com/advent-of-code-on-z-machine
57•todsacerdoti•5h ago•10 comments

Welcome, the entire land - "Hello, world!" in hieroglyphics

https://optional.is/required/2009/12/03/welcome-the-entire-land/
53•andrelaszlo•5h ago•11 comments

The Perplexing Appeal of the Telepathy Tapes

https://asteriskmag.com/issues/12-books/paradigm-shifted-the-perplexing-appeal-of-the-telepathy-t...
18•surprisetalk•3h ago•8 comments

High speed X-ray video: jumping beans, wind-up toys and more

https://www.youtube.com/watch?v=xdpDd7dyU00
25•surprisetalk•4d ago•9 comments

Why effort scales superlinearly with the perceived quality of creative work

https://markusstrasser.org/creative-work-landscapes.html
83•eatitraw•8h ago•70 comments

The R47: A new physical RPN calculator released today in 2025

https://www.swissmicros.com/product/model-r47
20•dm319•4d ago•11 comments

Hazel (YC W24) Is Hiring Full Stack Engineers

https://www.ycombinator.com/companies/hazel-2/jobs/fCdGOZw-full-stack-engineer
1•augustschen•4h ago

Firefox Expands Fingerprint Protections

https://blog.mozilla.org/en/firefox/fingerprinting-protections/
18•ptrhvns•36m ago•0 comments

DARPA and Texas Bet $1.4B on Unique Foundry -3D heterogeneous integration

https://spectrum.ieee.org/3d-heterogeneous-integration
29•pseudolus•5h ago•1 comments

The kind of company I want to be a part of

https://www.dvsj.in/my-company
108•ctxc•6d ago•112 comments

Tired of being manipulated by BigTech?

https://aol.codeberg.page/eci/
8•digisign•1h ago•0 comments

Show HN: Venturu – Zillow for the market of local businesses

https://www.venturu.com
15•lifenautjoe•3h ago•16 comments

Array Programming the Mandelbrot Set

https://jcmorrow.com/mandelbrot/
3•jcmorrow•4d ago•0 comments

Zig / C++ Interop

https://tuple.app/blog/zig-cpp-interop
80•simonklee•8h ago•8 comments

OpenAI may not use lyrics without license, German court rules

https://www.reuters.com/world/german-court-sides-with-plaintiff-copyright-case-against-openai-202...
146•aiz0Houp•5h ago•152 comments

SanDisk launches dongle-like Extreme Fit USB-C flash drive with up to 1 TB

https://www.notebookcheck.net/Sandisk-launches-dongle-like-Extreme-Fit-USB-C-flash-drive-with-up-...
83•teleforce•4d ago•100 comments

Trying two dozen different psychedelics

https://psychotechnology.substack.com/p/on-trying-two-dozen-different-psychedelics
42•eatitraw•5h ago•39 comments

Upbeat Technology's RISC-V MCU Takes Flight with Near-Threshold Computing

https://www.allaboutcircuits.com/news/upbeat-technologys-risc-v-mcu-takes-flight-with-near-thresh...
27•warrenm•5d ago•3 comments

Baby shoggoth is listening

https://theamericanscholar.org/baby-shoggoth-is-listening/
36•toomuchtodo•1w ago•32 comments

The write last, read first rule

https://tigerbeetle.com/blog/2025-11-06-the-write-last-read-first-rule/
80•vismit2000•10h ago•18 comments

High-performance 2D graphics rendering on the CPU using sparse strips [pdf]

https://github.com/LaurenzV/master-thesis/blob/main/main.pdf
267•PaulHoule•18h ago•34 comments

Hiring a developer as a small indie studio in 2025

https://www.ballardgames.com/tales/hiring-dev-2025/
98•jordigh•12h ago•81 comments