
anthropic-sdk-typescript
@anthropics
Mo ta tren GitHub
Access to Anthropic's safety-first language model APIs in TypeScript
Bai hoc & danh gia
SDK gọi Claude từ Node/TypeScript — chính thứ backend của bạn đang dùng cho AI Chat, Interview Simulator và các job sinh nội dung. Đọc source SDK đáng giá hơn đọc docs: kiểu dữ liệu của tool use, streaming và prompt caching đều nằm trong file khai báo type, chính xác hơn mọi bài blog.
Dùng vào việc gì
- Tra chính xác shape của message khi làm tool-calling (dễ sai nhất là phần
tool_result) - Xem cách SDK tự động thử lại (retry) và bắt lỗi 429 — để không tự viết lại lớp đó
- Mẫu streaming: đọc từng chunk mà không nghẽn event loop
Lưu ý
Mỗi lần đổi model, kiểm lại tên model trong hằng số của SDK thay vì gõ tay chuỗi — gõ sai tên model chỉ lộ ra lúc chạy thật, không phải lúc biên dịch.
Repo khac trong kho
4pixijs
The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.
@pixijsTypeScript48kkonva
Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
@konvajsTypeScript14.7kexcalidraw
Virtual whiteboard for sketching hand-drawn like diagrams
@excalidrawTypeScript129.1kglTF-Sample-Models
glTF Sample Models.
@KhronosGroupMathematica3.6k