|
1 | 1 | # Documentation Hub |
2 | 2 |
|
3 | | -This SDK already ships a broad surface. The fastest way to make it usable is not |
4 | | -to make the main README even longer, but to give users a clear map. |
| 3 | +This docs set is meant to cover the full public runtime surface of `csfloat-node-sdk`: |
5 | 4 |
|
6 | | -If you are reading this on npm: |
| 5 | +- `CsfloatSdk` resources |
| 6 | +- `sdk.client` and `CsfloatHttpClient` |
| 7 | +- workflow helpers |
| 8 | +- builder/helper/constant exports from the package root |
| 9 | +- CLI commands |
| 10 | +- the stability and coverage notes needed to use the SDK responsibly |
7 | 11 |
|
8 | | -1. start with the repository README for the high-level pitch and install snippet |
9 | | -2. use this `docs/` directory for task-oriented guidance |
10 | | -3. use `API_COVERAGE.md` when you need endpoint-level truth |
| 12 | +If you are reading this from the published npm package, these files ship in the tarball. |
11 | 13 |
|
12 | | -## Start Here |
| 14 | +## Recommended Reading Order |
13 | 15 |
|
14 | | -- [Getting Started](./getting-started.md) |
15 | | - First install, API key setup, first requests, local verification. |
16 | | -- [Resources And Workflows](./resources-and-workflows.md) |
17 | | - Which SDK surface to use for market reads, account automation, loadouts, and higher-level helpers. |
18 | | -- [Transport, Errors, And Metadata](./transport-and-errors.md) |
19 | | - Retries, pacing, typed errors, and the new opt-in response metadata surface. |
20 | | -- [Examples And Recipes](./examples-and-recipes.md) |
21 | | - Examples, CLI commands, and which script to run for common tasks. |
| 16 | +1. [Getting Started](./getting-started.md) |
| 17 | + Install, first client, first requests, and where to go next. |
| 18 | +2. [Resources, Workflows, And Surface Map](./resources-and-workflows.md) |
| 19 | + Which surface to use for each kind of task. |
| 20 | +3. [Resource Reference](./resource-reference.md) |
| 21 | + The method-level reference for `sdk.meta`, `sdk.account`, `sdk.listings`, and the rest. |
| 22 | +4. [Helpers, Builders, And Constants](./helpers-and-builders.md) |
| 23 | + Every exported helper module and the constants that shape queries or requests. |
| 24 | +5. [Workflows And CLI](./workflows-and-cli.md) |
| 25 | + The higher-level orchestration layer plus the published CLI commands. |
| 26 | +6. [Transport, Errors, And Metadata](./transport-and-errors.md) |
| 27 | + `CsfloatHttpClient`, retries, pacing, metadata responses, and error handling. |
| 28 | +7. [Examples And Recipes](./examples-and-recipes.md) |
| 29 | + Runnable examples plus copyable snippets for common flows. |
| 30 | +8. [Stability And Coverage](./stability-and-coverage.md) |
| 31 | + How to interpret implemented vs low-level vs account-gated behavior. |
| 32 | +9. [`API_COVERAGE.md`](../API_COVERAGE.md) |
| 33 | + Endpoint-level truth for validated and discovered routes. |
22 | 34 |
|
23 | | -## How To Read This SDK |
| 35 | +## Choose By Task |
24 | 36 |
|
25 | | -Use the SDK in three layers: |
| 37 | +- First request or install help: |
| 38 | + [Getting Started](./getting-started.md) |
| 39 | +- Which resource or helper to reach for: |
| 40 | + [Resources, Workflows, And Surface Map](./resources-and-workflows.md) |
| 41 | +- Exact public methods on each resource: |
| 42 | + [Resource Reference](./resource-reference.md) |
| 43 | +- Exported builders, presets, constants, and pagination helpers: |
| 44 | + [Helpers, Builders, And Constants](./helpers-and-builders.md) |
| 45 | +- High-level snapshot helpers or CLI usage: |
| 46 | + [Workflows And CLI](./workflows-and-cli.md) |
| 47 | +- Transport behavior, retries, rate limits, or raw metadata: |
| 48 | + [Transport, Errors, And Metadata](./transport-and-errors.md) |
| 49 | +- Copyable code for real tasks: |
| 50 | + [Examples And Recipes](./examples-and-recipes.md) |
| 51 | +- Support confidence, caveats, and route truth: |
| 52 | + [Stability And Coverage](./stability-and-coverage.md) and [`API_COVERAGE.md`](../API_COVERAGE.md) |
26 | 53 |
|
27 | | -1. `CsfloatSdk` resources for normal application code |
28 | | -2. helpers/builders/workflows when you want less glue code |
29 | | -3. `sdk.client.*WithMetadata()` when you need low-level response visibility |
| 54 | +## What This Docs Set Covers |
30 | 55 |
|
31 | | -## Where Different Kinds Of Truth Live |
32 | | - |
33 | | -- Product overview: `README.md` |
34 | | -- Stable endpoint coverage notes: `API_COVERAGE.md` |
35 | | -- Release history: `CHANGELOG.md` |
36 | | -- Task-oriented usage: `docs/*.md` |
37 | | -- Executable examples: `examples/*.mjs` |
38 | | - |
39 | | -## Should You Build A Separate Docs Site? |
| 56 | +- every public runtime entrypoint exported from the package root |
| 57 | +- every SDK resource and workflow method |
| 58 | +- the helper functions and constants that materially affect day-to-day usage |
| 59 | +- the published CLI surface |
| 60 | +- the transport and error model |
40 | 61 |
|
41 | | -Not yet, unless you are ready to keep GitHub, npm, and the site in sync. |
| 62 | +The root package also exports a very large TypeScript type surface. These docs call out the important request and response types by area, but the generated `.d.ts` files and your IDE remain the authoritative field-level reference. |
42 | 63 |
|
43 | | -The better near-term strategy is: |
44 | | - |
45 | | -1. keep GitHub + npm-readable docs as the source of truth |
46 | | -2. keep docs in Markdown inside the package repository |
47 | | -3. only later add a Vercel-hosted site that reuses this same content |
| 64 | +## Where Different Kinds Of Truth Live |
48 | 65 |
|
49 | | -That way npm users are not forced onto an external site just to understand the |
50 | | -package, and a future docs site becomes a presentation layer, not a second |
51 | | -documentation system. |
| 66 | +- Product overview and install snippet: |
| 67 | + [`README.md`](../README.md) |
| 68 | +- Runtime docs: |
| 69 | + `docs/*.md` |
| 70 | +- Endpoint-by-endpoint validation and discovery notes: |
| 71 | + [`API_COVERAGE.md`](../API_COVERAGE.md) |
| 72 | +- Release history: |
| 73 | + [`CHANGELOG.md`](../CHANGELOG.md) |
| 74 | +- Executable examples: |
| 75 | + `examples/*.mjs` |
| 76 | +- Tests for supported behavior: |
| 77 | + `test/*.test.ts` |
0 commit comments