TypeScript SDK for the OpenSea marketplace
This report summarizes scanner evidence for ProjectOpenSea/opensea-js, a TypeScript project with 2,337 GitHub stars. SynthScan examined 54,306 lines of code across 200 source files, recording 52 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 3.8 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 8 finding(s).
Are imports declared and package/API names verified? 21 finding(s).
Are wrappers, guards, and repeated structures necessary? 28 finding(s).
Which changes need focused human review? 52 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 52 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | README.md | 148 | const sdk = new OpenSeaSDK(provider, { chain: Chain.Mainnet, apiKey: "YOUR_API_KEY" }); | CODE |
| HIGH | README.md | 159 | const sdk = new OpenSeaSDK({ publicClient }, { chain: Chain.Mainnet, apiKey: 'YOUR_API_KEY' }) | CODE |
| HIGH | README.md | 267 | const client = new OpenSeaStreamClient({ apiKey: "YOUR_API_KEY" }); | CODE |
| HIGH | developerDocs/overview.md | 61 | apiKey: "your-api-key", | CODE |
| HIGH | developerDocs/overview.md | 75 | { chain: Chain.Mainnet, apiKey: "your-api-key" }, | CODE |
| HIGH | developerDocs/quick-start.md | 71 | apiKey: "YOUR_API_KEY", | CODE |
| HIGH | developerDocs/quick-start.md | 92 | { chain: Chain.Mainnet, apiKey: "YOUR_API_KEY" }, | CODE |
| HIGH | developerDocs/quick-start.md | 115 | apiKey: "YOUR_API_KEY", | CODE |
| HIGH | developerDocs/quick-start.md | 141 | { chain: Chain.Mainnet, apiKey: "YOUR_API_KEY" }, | CODE |
| HIGH | developerDocs/stream-migration.md | 21 | -const client = new OpenSeaStreamClient({ token: "YOUR_API_KEY" }); | CODE |
| HIGH | developerDocs/stream-migration.md | 22 | +const client = new OpenSeaStreamClient({ apiKey: "YOUR_API_KEY" }); | CODE |
| HIGH | developerDocs/stream-migration.md | 38 | token: "YOUR_API_KEY", | CODE |
| HIGH | developerDocs/stream-migration.md | 49 | const client = new OpenSeaStreamClient({ apiKey: "YOUR_API_KEY" }); | CODE |
| HIGH | developerDocs/stream-migration.md | 64 | apiKey: "YOUR_API_KEY", | CODE |
| HIGH | developerDocs/stream-migration.md | 104 | const client = new OpenSeaStreamClient({ apiKey: "YOUR_API_KEY" }); | CODE |
| HIGH | developerDocs/stream-migration.md | 129 | const client = new OpenSeaStreamClient({ apiKey: "YOUR_API_KEY" }); | CODE |
| HIGH | developerDocs/stream-migration.md | 146 | const client = new OpenSeaStreamClient({ apiKey: "YOUR_API_KEY" }); | CODE |
| HIGH | src/viem.ts | 15 | * { chain: Chain.Mainnet, apiKey: 'YOUR_API_KEY' }, | COMMENT |
| HIGH | src/stream/client.ts | 32 | * const client = new OpenSeaStreamClient({ apiKey: "YOUR_API_KEY" }) | COMMENT |
| HIGH | src/stream/index.ts | 10 | * const client = new OpenSeaStreamClient({ apiKey: "YOUR_API_KEY" }) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/stream/transport/phoenix.ts | 220 | // ── URL ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/stream/transport/phoenix.ts | 234 | // ── Connection lifecycle ─────────────────────────────────────────── | COMMENT |
| MEDIUM | src/stream/transport/phoenix.ts | 354 | // ── Heartbeat ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/stream/transport/phoenix.ts | 413 | // ── Subscriptions ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/stream/transport/phoenix.ts | 721 | // ── Messaging ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/utils/case.ts | 129 | // ─── Type-level mapper ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/sdk/base.ts | 137 | // ─── Event Listeners ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/sdk/base.ts | 174 | // ─── Token Operations ────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/sdk/base.ts | 204 | // ─── Order Creation ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/sdk/base.ts | 321 | // ─── Order Fulfillment ───────────────────────────────────────────── | COMMENT |
| MEDIUM | src/sdk/base.ts | 475 | // ─── Order Cancellation ──────────────────────────────────────────── | COMMENT |
| MEDIUM | src/sdk/base.ts | 530 | // ─── Asset Operations ────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/sdk/base.ts | 586 | // ─── Private Helpers ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/api/apiPaths.ts | 326 | // ── Batch lookups ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | src/api/apiPaths.ts | 340 | // ── Listings actions ──────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | src/api/apiPaths.ts | 346 | // ── Drops deploy ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | src/api/apiPaths.ts | 356 | // ── Assets transfer ───────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | src/api/apiPaths.ts | 362 | // ── Collection analytics ──────────────────────────────────────────── | COMMENT |
| MEDIUM | src/api/apiPaths.ts | 388 | // ── Token analytics ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/api/apiPaths.ts | 418 | // ── NFT analytics ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | src/api/apiPaths.ts | 436 | // ── Account portfolio / profile ───────────────────────────────────── | COMMENT |
| MEDIUM | src/api/types.ts | 1222 | // ─── API-derived endpoint types ───────────────────────────────────────── | COMMENT |
| MEDIUM | src/api/walletAuth.ts | 631 | // ── Agent accounts ──────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | test/orders/erc20FulfillmentRealPayloads.spec.ts | 91 | `${fixture.response.fulfillment_data.transaction.function.split("(")[0]}:${ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/api/api.spec.ts | 510 | // Test the robust header parsing by simulating an invalid retry-after header | COMMENT |
| MEDIUM | src/utils/rateLimit.ts | 93 | // Check if this is a rate limit error by status code (robust) or retry-after header | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/api/walletAuthCasing.spec.ts | 56 | function camelCaseRequestOperations(): string[] { | CODE |
| LOW | test/api/walletAuthCasing.spec.ts | 96 | function operationIdsInInstalledSpec(): Set<string> { | CODE |
| LOW | test/api/walletAuthCasing.spec.ts | 109 | function usesLegacyCreateOfferActionItemSchema(): boolean { | CODE |
| LOW | src/provider/ethers-adapter.ts | 102 | export function createEthersContractCaller( | CODE |
| LOW | src/utils/dateHelper.ts | 22 | export function getUnixTimestampInSeconds(seconds: number): number { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/utils/index.ts | 1 | // `./case` carries the SDK's response-casing contract: the API speaks | COMMENT |