Fluent, chainable TypeScript SDK: configure models, enable tools, stream events, then fetch text, JSON, run details or token stats in one call via .asText() or .allowTools('Read', 'Write'). Multi-level logging plus live onMessage/onToolUse callbacks give deep, CLI-compatible observability.
git clone https://github.com/instantlyeasy/claude-code-sdk-ts.gitFluent, chainable TypeScript SDK: configure models, enable tools, stream events, then fetch text, JSON, run details or token stats in one call via .asText() or .allowTools('Read', 'Write'). Multi-level logging plus live onMessage/onToolUse callbacks give deep, CLI-compatible observability.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/instantlyeasy/claude-code-sdk-tsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Using the Claude Code SDK for TypeScript, configure a model to enable the 'Read' and 'Write' tools. Set up logging to track events and use callbacks to monitor tool usage. Fetch the response as JSON and analyze the token usage statistics. [DESCRIBE SPECIFIC USE CASE]
```json
{
"response": {
"text": "The analysis of the sales pipeline data for XYZ Corp has identified the following top 3 deals at risk:",
"deals": [
{
"deal_id": "D12345",
"risk_reason": "Lack of recent engagement",
"next_steps": [
"Schedule a follow-up call with the decision maker",
"Send a personalized email with case studies"
]
},
{
"deal_id": "D67890",
"risk_reason": "Competitor activity",
"next_steps": [
"Conduct a competitive analysis",
"Offer a discount to close the deal"
]
},
{
"deal_id": "D54321",
"risk_reason": "Budget constraints",
"next_steps": [
"Propose a flexible payment plan",
"Highlight ROI and long-term savings"
]
}
],
"token_stats": {
"input_tokens": 120,
"output_tokens": 450,
"total_tokens": 570
}
},
"logs": [
{
"level": "info",
"message": "Model configured with 'Read' and 'Write' tools enabled"
},
{
"level": "debug",
"message": "Tool 'Read' used to fetch sales pipeline data"
},
{
"level": "debug",
"message": "Tool 'Write' used to generate analysis report"
}
]
}
```Automated Meeting Reports Transcripts Notes Video Coaching
Unlock data insights with interactive dashboards and collaborative analytics capabilities.
Automate invoicing and financial reporting for streamlined business management.
The new way to work
AI assistant built for thoughtful, nuanced conversation
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan