Skip to content

docs: add root README/CONTRIBUTING and improve package docs#286

Open
brandon-pereira wants to merge 1 commit into
mainfrom
docs/improve-readmes
Open

docs: add root README/CONTRIBUTING and improve package docs#286
brandon-pereira wants to merge 1 commit into
mainfrom
docs/improve-readmes

Conversation

@brandon-pereira

Copy link
Copy Markdown
Member

Summary

The repo had no landing page and no contributor guide, three published packages shipped with empty or single-line READMEs (so their npm pages were blank), and the CLI README documented a command that doesn't exist. This adds the missing top-level docs and brings every package README up to a consistent baseline.

What changed

  • Root README.md (new) — monorepo landing page: a table of all 9 packages linking to their npm pages and READMEs, docs links, and a Development section using the real root scripts.
  • CONTRIBUTING.md (new) — contributor guide covering repo layout, the Nx/Changesets workflow, single-package build/test commands, and a fork-based PR flow. Defers to AGENTS.md for detailed style rules rather than duplicating them.
  • Empty/stub package READMEs filledinstrumentation-exception (was 0 bytes), otel-web, and session-recorder (were title-only) now have an install command and a pointer to the package that consumes them (@hyperdx/browser / @hyperdx/node-opentelemetry). Kept minimal since these are internally consumed rather than direct-use APIs.
  • CLI README corrected — the documented upload command is actually upload-sourcemaps; added a full flag table (verified against packages/cli/src/index.ts), HYPERDX_SERVICE_KEY usage, and a self-hosted example.
  • Consistency fixes — replaced invalid ***HYPERDX_API_KEY*** placeholders in node-logger with process.env.HYPERDX_API_KEY and tagged its code fences; fixed the instrumentation-sentry-node npm badge (pointed at instrumentation-pg) and license link; added a title/description header and license footers across packages that lacked them.

Test plan

Docs-only change. Ran Prettier over all touched Markdown files to conform to the repo's formatting hook.

Add a monorepo landing README and contributor guide, fill in the three
empty/stub package READMEs, correct the CLI sourcemap command and flags,
and standardize headers, license footers, and code fences across packages.
@changeset-bot

changeset-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 1436132

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@greptile-apps

greptile-apps Bot commented Jul 13, 2026

Copy link
Copy Markdown

Greptile Summary

This PR adds and refreshes documentation across the JavaScript SDK monorepo. The main changes are:

  • Adds a root landing page and contributor guide.
  • Documents previously empty or minimal package READMEs.
  • Corrects and expands the sourcemap CLI instructions.
  • Standardizes examples, badges, descriptions, and license sections.

Confidence Score: 4/5

The documented CLI script and clean-environment build path need fixes before merging.

  • The npm-script example invokes a binary that the installed CLI package does not expose.
  • The contributor setup omits Deno even though the documented all-package build requires it.
  • Package names, API references, licenses, root scripts, and the remaining CLI options match the repository configuration.

packages/cli/README.md and CONTRIBUTING.md

Important Files Changed

Filename Overview
CONTRIBUTING.md Adds the repository workflow and development commands, but omits Deno from the prerequisites for the all-package build.
README.md Adds an accurate package index, documentation links, development commands, and license overview.
packages/cli/README.md Corrects the command and documents its options, but the local npm-script example uses an executable the package does not install.
packages/node-logger/README.md Replaces invalid API-key placeholders and formats the logger examples as TypeScript.
packages/instrumentation-sentry-node/README.md Corrects the npm badge, license link, and package description spacing.
packages/instrumentation-exception/README.md Adds correct installation, package-purpose, consumer, and license documentation.
packages/otel-web/README.md Adds correct installation, recommended-consumer, purpose, and license documentation.
packages/session-recorder/README.md Adds correct installation, recommended-consumer, purpose, and license documentation.

Fix All in Claude Code Fix All in Conductor Fix All in Cursor Fix All in Codex

Reviews (1): Last reviewed commit: "docs: add root README/CONTRIBUTING and i..." | Re-trigger Greptile

Comment thread packages/cli/README.md
{
"scripts": {
"upload-sourcemaps": "npx @hyperdx/cli upload-sourcemaps --path=\"/path/to/sourcemaps\""
"upload-sourcemaps": "hyperdx upload-sourcemaps --path ./dist"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Installed Binary Name Mismatch

Installing @hyperdx/cli with its string-valued bin field creates a cli executable, not hyperdx. A contributor who copies this npm script will receive hyperdx: command not found; invoke the package through npx or add an explicit hyperdx bin mapping.

Suggested change
"upload-sourcemaps": "hyperdx upload-sourcemaps --path ./dist"
"upload-sourcemaps": "npx @hyperdx/cli upload-sourcemaps --path ./dist"

Fix in Claude Code Fix in Conductor Fix in Cursor Fix in Codex

Comment thread CONTRIBUTING.md
order between packages.
- **[Changesets](https://github.com/changesets/changesets)** manages versioning
and publishing.
- Node **v25** is recommended (see `.nvmrc`).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 All-Package Build Requires Deno

The setup guide lists only Node before instructing contributors to run yarn ci:build, but that command builds @hyperdx/deno through deno run -A build-npm.ts. A clean environment following these steps stops with deno: command not found; document Deno as a prerequisite, as the CI workflows install it before building.

Suggested change
- Node **v25** is recommended (see `.nvmrc`).
- Node **v25** is recommended (see `.nvmrc`).
- **Deno** is required to build the `@hyperdx/deno` workspace.

Context Used: AGENTS.md (source)

Fix in Claude Code Fix in Conductor Fix in Cursor Fix in Codex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant