yceffort
06 POSTS

Nodejs 1

  • ◆ OG Scraping Server Design Notes Part 2
    #security#nodejs#backend

    Building an OG Scraping Server in Node.js (2): How SSRF Gets Through

    A feature where the server opens a URL the user handed it is, by itself, the textbook setup for SSRF. I ran six whitelist bypasses and the five defensive principles that block them on Node. Strip IPv4-mapped by hand and hex notation gets through, and undici lookup hook is never called when the host is an IP literal.

    25 min read
  • ◆ OG Scraping Server Design Notes Part 1
    #web-scraping#backend#nodejs

    Building an OG Scraping Server in Node.js (1): From Runtime Choice to Error Rate and Latency

    The "10% error rate" of a link preview server mixes five kinds of failure with different causes. This post works out the four points where runtime choice actually matters, lowers the error rate by fixing User-Agent and encoding handling, and verifies the "P95 under one second" target by working backwards from the cache hit rate with a two-million-run simulation. Along the way it shows that Node built-in TextDecoder turns CP949 extension characters into different characters without raising an error.

    33 min read
  • ◆ Kubernetes for Frontend Developers Part 6
    #memory#nodejs#kubernetes

    Why Is Your Node.js Pod That Size? Sizing Measured Firsthand, from NODE_OPTIONS to Pod Count

    I added one GC tuning flag to the same workload and peak RSS rose from 201MB to 593MB while the live data stayed the same. This post measures V8 New Space directly to trace why, and proposes three criteria frontend developers can use to size a Node.js pod.

    Updated 45 min read
  • #nodejs#security#javascript

    The Pitfalls of Node.js vm Module: Why It's Not a Sandbox

    A preview of section 5.2 (Pitfalls of the vm Module) from the upcoming Node.js Deep Dive book.

    14 min read
  • #nodejs#book#backend

    Seeking Beta Readers for Node.js Deep Dive (Working Title)

    Please show lots of interest and support!

    3 min read
  • #memory#nodejs#v8

    A Guide to Node.js Memory Limits and Leak Tracking

    A look at V8's generational garbage collection, adjusting heap memory limits, and practical ways to diagnose memory leaks.

    7 min read