
Shopee API Client
npm i shopee-api-clientTypeScript client for Shopee Open API v2: 446 endpoints across 30 API domains, with typed errors, timeouts and safe retries.

I write and maintain open-source clients for the Shopee, TikTok Shop and Lazada Open APIs — request signing, token refresh, webhooks.
Currently at DiproTech on manufacturing simulation, subscription billing and content platforms for Japanese clients. Since 2026, a Master's student in Computer Science at Danang University of Science and Technology.


npm i shopee-api-clientTypeScript client for Shopee Open API v2: 446 endpoints across 30 API domains, with typed errors, timeouts and safe retries.

npm i tiktokshops-api-clientTypeScript client for TikTok Shop Open API: 155 endpoints across 14 domains, request signing included, typed errors.

npm i lazada-api-clientTypeScript client for Lazada Open API: 363 endpoints across 33 domains, routed to the right regional host.
npm i shopee-tiktokshops-lazada-apiBundles the Shopee, TikTok Shop and Lazada SDKs into a single dependency, with versions kept in sync automatically.
Incident benchmarks for AI agents usually count an episode as solved once the system looks healthy. That cannot separate a repair from a restart or a configuration tweak that only hides the symptom. How many of the successes a health check accepts are temporary, and when an agent is free to choose, does it pick the right kind of action?
Graph memory is widely believed to help LLM agents remember better. When existing work compares graph memory with flat memory, it changes two things at once: structure (the ability to traverse relations) and representation (information rewritten as typed relational sentences, which is unavoidable because an LLM can only read text). Which of the two produces the benefit?
I ran the usual advice for huge tables on PostgreSQL 17: index depth, partition pruning, hash versus range shards, and a follower list stored as an array.
On 12 injected faults, a restart passes the check and fails again when the load returns. A /health probe passed 110 of 120 runs where nobody did anything.
Eight design patterns from my 2022 exercises, rewritten in TypeScript and tested, with what the old versions got wrong and what I would use today.
Strict rotation caught a stolen token. In my tests it also logged out the real user on parallel requests, a second tab and a lost response. I tested an atomic claim, two kinds of grace window and coordination across tabs.
My worker pool cut median /ping from 1.8 s to 0.5 ms under load. The batch benchmark missed that and hid a bug in how I split the work.
I tested five old indexing rules on PostgreSQL 18.6 with EXPLAIN and BUFFERS. The plans changed how I choose and read indexes.
On PostgreSQL 16, Repeatable Read blocks phantoms but allows write skew. I checked both with two overlapping transactions.
A test sold 200 orders against 100 shirts. I measured which PostgreSQL updates prevent overselling and why a queue still needs idempotency.
A polling sync counted both versions of a corrected order. I keyed the projection by source identity and checked it against the source.
A missing await on run_in_executor left a loader reading old data. Await the jobs and publish the new state only after all succeed.
Shopee’s auth calls use a different signing string. The integration also has to coordinate refreshes per shop and handle seller reauthorization.
If a webhook signature fails after JSON parsing, check the raw request bytes before changing the signing key.