Repository navigation
SocialMediaScraper: a JSR offline request planner running with seven runtime permissions denied #37255
aistudio12
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
SocialMediaScraper — socialmediascraper.org · API documentation · Current pricing
I maintain SocialMediaScraper and published a small zero-dependency MIT TypeScript library on JSR: @aistudio12/request-planner@0.1.0. It filters eight selected GET-operation definitions and validates non-secret textual inputs before producing a URL/cURL plan. It does not send requests, read an API key or environment, store files, spawn commands or execute the generated cURL.
Disclosure: preparation of this example and description was AI-assisted; the recorded Deno execution and permission checks below were actually run. This is an application showcase, not a Deno core PR or endorsement.
A small Deno-specific check
Save this as
example.ts:With a previously populated cache:
On Deno2.9.8 / V8 15.0.245.2 / TypeScript6.0.3 / macOS arm64, the full verifier explicitly queried all seven permissions as
denied, returned eight selected operations/two TikTok operations andrequest_sent:false, and rejected a syntheticapi_keyfield. It exited0. A new cached-only type check also passed. The generated profile input was synthetic; no actual profile was fetched.Module loading/cache population and application runtime permissions are different boundaries. This particular check reused the earlier successful registry import cache with the published module's source SHA256
d3354cd3d50245f95f27510762646307b625bcbf8ab3c6511d8a843af12a5bc5; it downloaded0 bytes. It was not a new empty-cache installation. A first load needs registry setup network access: remove--cached-onlyfor that separate setup.--min-dep-age=0is command-local for immediate use of this explicitly pinned, recently published own package; no global policy was changed.The original publication was verified with an actual fresh consumer registry import, and the unchanged source previously passed18 no-network/no-environment/no-file-permission tests. Those18 tests are previous evidence, not claimed as rerun in this check. A plain anonymous metadata GET today returned403; that edge denial is preserved, not interpreted as a missing package and not bypassed. The normal package page still rendered version0.1.0, MIT, install instructions and generated symbols. JSR's compatibility badges remain unknown; this post reports the actual Deno run rather than changing or inventing those badges.
Scope and input/output
The eight GET definitions cover selected TikTok/Instagram profile/comments, YouTube transcript, Reddit search/post and LinkedIn company operations. This is not a full API SDK, arbitrary OpenAPI loader, MCP server or the separate197-operation MCP catalog.
Inputs are non-secret strings. Required/alternative fields, enums and bounds are checked; unknown operations, undeclared input fields and API-key fields are rejected. URLs are encoded and shell arguments quoted. Returned cURL is text, not executed. An idempotency label in a plan does not establish tested provider-side idempotency. Browser/Bun/Workers execution and live data delivery were not tested here.
The metadata snapshot is
2026-11-23.2. Status labels such asverifiedand price fields are historical metadata, not live verification or current billing quotes. A matching live OpenAPI label does not guarantee identical optional headers/response codes. Generated/v1/URLs are plan metadata, not verified documentation landing pages or executed endpoints.Free MIT code/import/local planning does not include free social data. Separately executing a real request needs the customer's own SocialMediaScraper account/key, prepaid credits and per-operation charges. Check current official documentation/pricing above. No model/provider/paid calls, automatic retries, pagination or top-ups occurred; the six-tool hosted MCP/OAuth was not exercised.
The package page provides generated docs and source. The separate pinned MCP source installation guide is available for developers who need the actual MCP adapter; no npm/PyPI publication is implied.
All reactions