@mkterswingman/5mghost-timber
v0.0.6
Published
Bun-first TikTok data CLI with a companion cloud runtime.
Readme
5mghost-timber
Bun-first TikTok data CLI with a companion cloud runtime.
This repository replaces the previous TikTok MCP direction. The local CLI should stay simple: auth, diagnostics, output formatting, exports, and calls into cloud-backed TikTok data APIs. Cloud code owns no-cookie TikTok transport, shared limits, retries, caching, and long-running browser jobs.
Install
5mghost-timber requires Bun >=1.2.0.
npm install -g @mkterswingman/5mghost-timberThen authenticate with the shared 5mghost auth flow or provide a token:
5mghost-timber auth login
# or
TIMBER_TOKEN=<token> 5mghost-timber checkData commands use the production Timber cloud by default:
https://mkterswingman.com/5mghost/timberUse TIMBER_CLOUD_BASE_URL only when targeting another Timber runtime.
Development
bun install
bun run build
bun run test
bun run start:apiCLI
5mghost-timber --help
5mghost-timber auth status
5mghost-timber check
5mghost-timber diagnostics --out diagnostics.json
5mghost-timber search videos "cooking"
5mghost-timber search suggestions "cook"
5mghost-timber trending hashtags --country US --period 7 --limit 20
5mghost-timber trending creators --country US --period 7 --limit 20
5mghost-timber trending sounds --country US --period 7 --limit 20
5mghost-timber video detail "https://www.tiktok.com/@user/video/123"
5mghost-timber comments list 123 --limit 20Current Stable Scope
Stable in the public package:
search videossearch suggestionstrending hashtagstrending creatorstrending soundsvideo detailcomments listauth,check,diagnostics
search videos auto-loads the available general-search video pages behind the
cloud API and returns compact filtered video items; users do not need to choose
a result count for the normal path. The cloud route loads until TikTok stops
pagination or Timber hits its safety budget, and returns partial results if a
later page hits an upstream login challenge after earlier pages produced videos.
Deferred or experimental:
video-list submit/status/result: command and job shell exist, but production collection is deferred until the browser identity-slot path is proven.trending videos: command/API contract exists, but TikTok's current public upstream returns unavailable/404.
The CLI contract is documented in docs/CLI_CONTRACT.md. Cloud runtime details are documented in docs/CLOUD_RUNTIME.md.
Status
GSD planning is in .planning/. The current implementation has the CLI command
contract, cloud API boundary, search transport seam, native read-only providers,
and SQLite video-list job runtime. Trending hashtags, creators, and sounds run
through Timber cloud code; trending videos remain limited by TikTok's currently
unavailable public upstream.
Migration Notes
- TikTok Migration Inventory maps old MCP capabilities to the new CLI/cloud product boundary.
- TikTok Transport Risks tracks HTTP/TLS, WAF, Bun install, and browser-worker risks.
