Skip to content

Docs: README, templates and clean-up - #4

Merged
czypnt merged 2 commits into
mainfrom
docs/readme-polish
Nov 22, 2026
Merged

czypnt merged 2 commits into
mainfrom
docs/readme-polish

Conversation

@czypnt

@czypnt czypnt commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • README.md rewritten to the shared SDK layout: banner, badges, pitch, Install, Quick start (with close()), Check it works, AI agent setup, Documentation, Support, License. The full reference lives at https://docs.datalyr.com/sdk-reference/node.
  • Banners added in .github/assets/.
  • CHANGELOG.md: internal ticket ids and spec references removed; every entry keeps its meaning. No versions reordered or added.
  • src/index.ts: internal ticket ids removed from comments only. A comment-stripped comparison of the old and new file is identical (zero code tokens changed).
  • examples/: event names are lowercase snake_case, the options-object form of track() is used, purchases use trackPurchase(), wording now says DATALYR. New examples/README.md.
  • package.json: description and homepage (docs URL) only.
  • New files: issue templates (bug, feature, config with blank issues off), PR template, SECURITY.md (GitHub private vulnerability reporting), CONTRIBUTING.md.

Verified examples (source as of this branch)

  • npm install @datalyr/api, Node 18+: package.json:2, package.json:44 (engines.node >=18.0.0)
  • import { Datalyr } from '@datalyr/api': src/index.ts:107 (export class Datalyr)
  • new Datalyr({ apiKey }): src/index.ts:12-13, src/index.ts:133; dk_ prefix warning src/index.ts:162
  • debug: true: src/index.ts:17
  • track({ event, userId, properties }): src/index.ts:45-49, src/index.ts:218
  • identify(userId, traits): src/index.ts:312
  • trackPurchase(userId, { value, currency }): src/index.ts:380-398 (sends event purchase, uppercases currency)
  • close(): src/index.ts:703
  • Settings → API for the key: matches the published Node reference.

Not done (needs the owner)

  • .github/workflows/ci.yml has a comment mentioning paid (Blacksmith) runners. Left unchanged: CI config is off-limits in this pass.
  • Git tags v1.3.0 to v1.3.3 are missing (tags exist for v1.1.0, v1.2.1 to v1.2.3, v1.3.4). No GitHub Releases exist.
  • Test assertion strings in tests/test.ts still contain internal ids (left as the brief requires).
  • LICENSE holder name not touched.
  • Repo settings (private vulnerability reporting must be on for SECURITY.md to work; description, topics) not changed.

Test result

npm ci && npm run build && npm test on Node 26.5: build success, ALL PASS. node --check passes on all three examples.

🤖 Generated with Claude Code


Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

czypnt and others added 2 commits November 22, 2026 12:24
Rewrite the README to the shared SDK layout, add issue and PR templates,
SECURITY.md, CONTRIBUTING.md and examples/README.md, remove internal ids from
CHANGELOG and source comments (no code tokens changed), and use snake_case
event names and the options form in examples.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@czypnt
czypnt merged commit 845d719 into main Nov 22, 2026
2 checks passed
@czypnt
czypnt deleted the docs/readme-polish branch November 22, 2026 19:51
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