Repository navigation
Docs: README, templates and clean-up - #4
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
close()), Check it works, AI agent setup, Documentation, Support, License. The full reference lives at https://docs.datalyr.com/sdk-reference/node..github/assets/.track()is used, purchases usetrackPurchase(), wording now says DATALYR. Newexamples/README.md.descriptionandhomepage(docs URL) only.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 warningsrc/index.ts:162debug: true:src/index.ts:17track({ event, userId, properties }):src/index.ts:45-49,src/index.ts:218identify(userId, traits):src/index.ts:312trackPurchase(userId, { value, currency }):src/index.ts:380-398(sends eventpurchase, uppercases currency)close():src/index.ts:703Not done (needs the owner)
.github/workflows/ci.ymlhas a comment mentioning paid (Blacksmith) runners. Left unchanged: CI config is off-limits in this pass.tests/test.tsstill contain internal ids (left as the brief requires).Test result
npm ci && npm run build && npm teston Node 26.5: build success, ALL PASS.node --checkpasses on all three examples.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.