chefu-academy-sdk
v1.0.4
Published
A fully typed **TypeScript SDK** for interacting with the **CheFu Academy** platform. This SDK simplifies authentication, API requests, and access to CheFu Academy resources such as courses.
Downloads
18
Readme
CheFu Academy SDK
A fully typed TypeScript SDK for interacting with the CheFu Academy platform.
This SDK simplifies authentication, API requests, and access to CheFu Academy resources such as courses.
Designed for Node.js and modern JavaScript/TypeScript projects.
✨ Features
- 🔐 API key–based authentication
- 📦 Centralized API client
- 📚 Course listing & retrieval
- 🧠 Clean, minimal SDK design
- 🧾 Full TypeScript typings
- 🚀 Ready for production & npm
📦 Installation
npm install chefu-academy-sdkor using yarn:
yarn add chefu-academy-sdk🚀 Quick Start
Import the SDK
import { CheFuAcademy } from "chefu-academy-sdk";Initialize the client
const sdk = new CheFuAcademy({
apiKey: "YOUR_API_KEY",
});Fetch courses
async function main() {
const courses = await sdk.courses.getAll();
console.log(courses);
}
main();📚 Available APIs
Courses
sdk.courses.getAll(); // List all courses
sdk.courses.getById(courseId); // Get a single courseAuthentication
Authentication is handled automatically using your API key.
new CheFuAcademy({
apiKey: process.env.CHEFU_API_KEY,
});🛠 Development
Scripts
npm run build # Build SDK
npm run lint # Lint code
npm test # Run testsProject Structure
src/
├─ auth.ts # Authentication logic
├─ client.ts # HTTP client
├─ courses.ts # Course endpoints
├─ index.ts # Public SDK exports📄 Example Project
import { CheFuAcademy } from "chefu-academy-sdk";
const sdk = new CheFuAcademy({ apiKey: "sk_live_xxx" });
const courses = await sdk.courses.getAll();
console.log(courses);🧪 Requirements
- Node.js 18+
- TypeScript 5+ (optional but recommended)
📜 License
MIT License © CheFu Academy
