@carbonhost/typescript
v0.0.66
Published
[![License](https://img.shields.io/badge/license-GNU%20AGPL-blue)](LICENSE) [![TypeScript](https://img.shields.io/badge/types-TypeScript-blue)](https://www.typescriptlang.org/) [![Build](https://img.shields.io/github/actions/workflow/status/carbon-host/
Downloads
2,766
Maintainers
Readme
Carbon TypeScript SDK
The Carbon TypeScript SDK enables easy integration with the Carbon Host platform for managing Minecraft server hosting and related services. Built with TypeScript, it provides a streamlined interface for creating, managing, and deploying Minecraft servers.
Installation
To install the SDK, use your preferred package manager:
npm install @carbonhost/typescript
bun add @carbonhost/typescript
Usage
Import the SDK in your TypeScript project and initialize it with your API key to get started.
import Carbon from '@carbonhost/typescript';
const carbon = new Carbon({ apiKey: 'your-api-key' });
// Example: Fetch all stars (given top level await, otherwise fetch Promises accordingly)
const stars = await carbon.getStars();
console.log(stars);
Documentation
For full documentation, visit the Documentation page.
Support
If you encounter issues or have questions, open an issue on our GitHub Issues page or join our Discord server.
License
This project is licensed under the GNU AGPL License.