
Sharing my insight debug and optimize HTTP networking. Create https://teapawt.org/t.co/Pde7Upt4LZ so you dont have to see big JSON payload. Build your custom viewer today!
Joined October 2019
- Tweets2.3K
- Following533
- Followers91
- Likes524
Hi @ManusAI please allow pay as you go model. A bit pricey is OK. As long as I can top up 100 usd and use for 1 year.
69
Be a good client today. Or you will find yourself struggle with version of yourself in your future client.
30
Most developers learn Hash Maps to pass coding interviews.
But you probably use one every single day without realizing it.
Take HTTP headers for example.
Authorization: Bearer ...
Content-Type: application/json
Accept: application/json
Cookie: session=...
User-Agent: Chrome
Imagine if your web framework searched these headers one by one every time you wrote:
req.headers.authorization
That would be unnecessarily slow.
Instead, frameworks typically parse HTTP headers into a Hash Map (Dictionary).
Authorization β Bucket #42
Content-Type β Bucket #17
Accept β Bucket #08
Cookie β Bucket #63
User-Agent β Bucket #29
Now, looking up a header is approximately O(1) on average.
One line of code...
req.headers.authorization
...is actually performing a Hash Map lookup under the hood.
I love finding these connections between classic computer science concepts and real-world software engineering.
Data structures aren't just for LeetCode.
They're quietly powering every HTTP request you debug.
60
I removed the Auto Scroll button.
In NetworkSpy v1.2.4, there was a dedicated control to enable or disable auto-scrolling while new requests were coming in.
The idea sounded useful, but in practice most developers never touched it. It ended up being another button that added UI clutter.
So I removed it.
Now there are only two natural workflows:
Filter the traffic to focus on what you're debugging.
Scroll to the bottom if you want live requests to continue auto-scrolling.
Personally, I almost always filter the traffic instead of relying on auto-scroll. It keeps the request list much easier to follow.
Curious what others prefer.
Do you:
Filter the traffic?
Keep auto-scroll on while debugging?
Or do something else?
1
1
59
Typing "Hello" shouldn't trigger 5 API requests.
Without debounce:
H β request
He β request
Hel β request
Hell β request
Hello β request
With a 300ms debounce:
H He Hel Hell Hello
β
wait 300ms
β
βΌ
search("Hello")
Less network traffic.
Less server load.
A smoother UI.
Sometimes the fastest app is the one that does less work.
1
1
29
Ensure your api not called 5 times.
Inspect them with networkspy.app
1
13
fetch() has no built-in timeout.
If your API hangs...
your request hangs...
your loading spinner hangs.
Use AbortController to cancel requests after a timeout instead.
const controller = new AbortController();
const id = setTimeout(() => {
controller.abort();
}, 5000);
try {
const res = await fetch("/api/data", {
signal: controller.signal,
});
} finally {
clearTimeout(id);
}
Your users shouldn't wait forever.
#JavaScript #WebDev #Frontend #FetchAPI
1
1
54
Check whether your abort signal is applied so that your user never wait forever!
networkspy.app
21
Learn how to install the NetworkSpy CA certificate and start intercepting HTTPS traffic in just a few minutes.
In this tutorial you'll learn:
β’ Install the CA certificate
β’ Verify the installation
β’ Configure the Proxy List
β’ Intercept HTTPS traffic
β’ Inspect requests & responses
Perfect for API debugging on macOS, Windows, and Linux.
β NetworkSpy is open source.
#webdev #programming #http #https #api #debugging #opensource
38
Trying to understand the X API today.
It uses GraphQL, but what really caught my attention is the Like button.
Some questions I'm curious about:
Does it simply send a mutation with the Tweet ID?
Is there some kind of idempotency key to prevent duplicate likes?
If you tap Like multiple times quickly, does the client batch the requests, debounce them, or send every mutation one by one?
How does it keep the UI feeling instant while staying consistent with the server?
These tiny implementation details are where you learn a lot about building scalable products.
Sometimes reverse engineering great products teaches more than reading another framework tutorial.
2
1
70
Inspecting traffic on Android is simple.
Just use ADB reverse TCP and set the device's proxy to
127.0.0.1:9090 π
If your Android device is connected to your desktop, you can even use the Automatic Proxy Setup feature to configure it with a single click.
Less time configuring. More time debugging.
1
2
77
I'm working on a feature to make debugging traffic on physical devices much less painful.
One of the biggest annoyances is enabling and disabling the proxy in the device's network settings every time you want to inspect traffic.
Imagine if you could simply click Start Proxy or Stop Proxy from your desktop, and the device configuration updated automatically. That would make the debugging workflow much smoother.
1
49
Try NetworkSpy to debug your Android app networkspy.app
21
My other project a Customer Service AI got issue.
One customer question generates 2 answer.
Business complain.
Now I got understanding why there will always be a market for our skill.
As long the mindset solves proble, you are not to be replaced by AI.
Even as big as Microsoft will need your help.
37



