There is no official JavaScript/TypeScript SDK yet. However, the REST API is straightforward to use with fetch or any HTTP client:
const response = await fetch(
"https://api.matcraft.ai/api/v1/materials?search=Si&per_page=10"
);
const { data, meta } = await response.json();
for (const material of data) {
console.log(`${material.formula}: Eg = ${material.band_gap} eV`);
}The API returns standard JSON responses, so any language with HTTP support can integrate with MatCraft. A TypeScript SDK is on our roadmap based on community demand.