soundcloud-api-ts 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,14 +25,23 @@ A fully-typed TypeScript client for the SoundCloud API. Zero dependencies, nativ
|
|
|
25
25
|
|
|
26
26
|
## Comparison
|
|
27
27
|
|
|
28
|
-
| Feature | soundcloud-api-ts | soundcloud.ts |
|
|
28
|
+
| Feature | soundcloud-api-ts | soundcloud.ts | soundcloud-fetch |
|
|
29
29
|
| --- | --- | --- | --- |
|
|
30
|
-
| TypeScript | ✅ Native | ✅ |
|
|
31
|
-
| Dependencies | 0 |
|
|
32
|
-
| OAuth 2.0 |
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
30
|
+
| TypeScript | ✅ Native | ✅ | ✅ |
|
|
31
|
+
| Dependencies | **0** | 1 | 3 (lodash, cookie, undici) |
|
|
32
|
+
| Auth method | **Official OAuth 2.0** | ⚠️ Scrape client ID from browser | ⚠️ Scrape client ID from browser |
|
|
33
|
+
| PKCE support | ✅ | ❌ | ❌ |
|
|
34
|
+
| Auto token refresh | ✅ on 401 | ❌ | ❌ |
|
|
35
|
+
| Auto retry (429/5xx) | ✅ exponential backoff | ❌ | ❌ |
|
|
36
|
+
| CLI tool | ✅ `sc-cli` | ❌ | ❌ |
|
|
37
|
+
| Pagination helpers | ✅ async iterators | ❌ | ✅ |
|
|
38
|
+
| Typed errors | ✅ `SoundCloudError` | ❌ | ❌ |
|
|
39
|
+
| Test coverage | **94%** | — | — |
|
|
40
|
+
| API docs site | ✅ [TypeDoc](https://twin-paws.github.io/soundcloud-api-ts/) | ✅ | ❌ |
|
|
41
|
+
| LLM/AI-friendly | ✅ llms.txt + AGENTS.md | ❌ | ❌ |
|
|
42
|
+
| Maintained | ✅ 2026 | ✅ 2025 | ✅ 2026 |
|
|
43
|
+
|
|
44
|
+
> **Why does auth method matter?** `soundcloud.ts` and `soundcloud-fetch` require you to open browser dev tools, inspect network traffic, and manually copy your client ID — which can break anytime SoundCloud changes their frontend. `soundcloud-api-ts` uses the **official OAuth 2.0 API** with registered app credentials, PKCE for public clients, and automatic token refresh.
|
|
36
45
|
|
|
37
46
|
## Install
|
|
38
47
|
|
package/package.json
CHANGED