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
19•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•44m 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•30m ago
Cool. Definitely a pain point worth attacking. Bookmarked, plan to explore when time allows.
Marceltan•23m ago
Sounds good Chris, would love to hear your thoughts once you've played around with it.
imiric•23m ago
What does this do that I can't do with mitmproxy?

Show HN: Durable cloud hosting for MCP servers

https://github.com/Haniehz1/mcp-agent
1•haniehz•5m ago•0 comments

Thoughts on the Economic Impact of AI

https://www.asad.pw/ai-and-the-economy/
1•asaddhamani•5m ago•0 comments

Rockstar fired developers looks like "union busting" [video]

https://www.youtube.com/watch?v=c9nOwjeznjI
2•ignition•5m ago•0 comments

HTTPS: //mylexon.site/ref/radzilan122 Make me go to level 150

1•radzilani•6m ago•0 comments

Show HN: I have zero dev experience and built a 220k LOC fintech SaaS with AI

https://medium.com/@allester21212/i-have-zero-professional-dev-experience-and-built-a-220k-loc-fi...
1•DepthSight•6m ago•0 comments

Ask HN: Startup Head of Engineering

1•heroicmailman•7m ago•0 comments

Building Zephyr for the Raspberry Pi Pico2 W

https://blog.golioth.io/building-zephyr-for-the-raspberry-pi-pico2-w/
2•hasheddan•8m ago•0 comments

Fusion isn't the holy grail of energy

https://nickmcgreivy.substack.com/p/fusion-isnt-the-holy-grail-of-energy
1•Luc•9m ago•0 comments

C# 14 Language Features in ReSharper and Rider 2025.3

https://blog.jetbrains.com/dotnet/2025/11/11/csharp-14-language-features-in-resharper-and-rider-2...
3•quapster•10m ago•0 comments

Scaling back DEI programmes and the loss of scientific talent

https://www.nature.com/articles/s41556-025-01797-5.epdf?sharing_token=oxrenJgtNXv1m6Fyx7wLzdRgN0j...
1•cratermoon•10m ago•0 comments

.NET 10 Released

https://dotnet.microsoft.com/en-us/download/dotnet/10.0
2•codegeek•11m ago•0 comments

What's Special about Life?

https://writings.stephenwolfram.com/2025/11/whats-special-about-life-bulk-orchestration-and-the-r...
1•surprisetalk•12m ago•0 comments

I Read Sam Bhagwat's AI Agents Bible So You Don't Have to (But Probably Should)

https://kuber.studio/blog/Post-Extended/I-Read-Sam-Bhagwat%27s-AI-Agents-Bible-So-You-Don%27t-Hav...
1•kuberwastaken•12m ago•1 comments

Firefox Expands Fingerprint Protections

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

Online Safety Act Tracker

https://osatracker.co.uk/domains/browse
1•Jigsy•17m ago•0 comments

Yann LeCun reportedly leaving Meta to launch new AI startup

https://the-decoder.com/yann-lecun-reportedly-leaving-meta-to-launch-new-ai-startup/
2•jrwan•17m ago•0 comments

Microsoft: "Equivalent of 35K engineers work full-time on security"

https://www.microsoft.com/en-us/security/blog/2025/11/10/securing-our-future-november-2025-progre...
3•heresie-dabord•19m ago•4 comments

Deep Dive: Modernizing Stalld

https://walac.github.io/stalld/
2•delduca•20m ago•0 comments

New Features in .NET 10 and C# 14

https://antondevtips.com/blog/new-features-in-dotnet-10-and-csharp-14
1•hebelehubele•21m ago•0 comments

OpenAgents Was Dubbed "VC Bait" in China. Then, a Voice Cut Through the Noise

https://medium.com/@openagents/openagents-was-dubbed-vc-bait-in-china-then-a-voice-cut-through-th...
2•Nicole9•21m ago•0 comments

Show HN: Reversing a Cinema Camera's Peripherals Port

https://3nt3.de/blog/reversing-fs7-comms
2•3nt3•23m ago•0 comments

Mechanical method uses collisions to break down plastic for recycling

https://phys.org/news/2025-10-mechanical-method-collisions-plastic-sustainable.html
1•PaulHoule•24m ago•0 comments

What Happened with the CIA and the Paris Review?

https://www.theparisreview.org/blog/2025/11/11/what-really-happened-with-the-cia-and-the-paris-re...
2•frenzcan•26m ago•0 comments

Show HN: The Startup and Business Vocabulary for anyone building startups

https://www.notion.so/Startup-Business-Vocabulary-for-Founders-2a8116f108c08010b07af6bfa120a2b9
1•BASSAMej•30m ago•0 comments

Sarah Jessica Parker's Year of Judging the Booker Prize

https://www.nytimes.com/2025/11/11/books/sarah-jessica-parker-booker-prize.html
1•sonabinu•30m ago•0 comments

Show HN: MockK Under the Cover

https://medium.com/@jintin/mockk-under-the-cover-93b3ee5bcae4
1•Jintin•30m ago•0 comments

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

https://www.bbc.com/news/articles/cy7e2lv4r8xo
13•bookofjoe•30m ago•2 comments

Show HN: HelloTriangle – Python-based online 3D modeling and sharing platform

https://www.hellotriangle.io
2•meshcoder•30m ago•0 comments

How fast can an LLM go?

https://fergusfinn.com/blog/inference-arithmetic/
2•kkm•31m ago•0 comments

Show HN: SignumFlow – API-first document routing and workflow engine

1•signumflow•31m ago•1 comments