Skip to content

TypeScript package for interfacing with the COSMO API

License

Notifications You must be signed in to change notification settings

teamreflex/cosmo-ts

Repository files navigation

@teamreflex/cosmo-ts

npm version npm downloads

Unofficial TypeScript package for interfacing with MODHAUS' Cosmo: the Gate mobile application API.

Install

npm install @teamreflex/cosmo-ts
pnpm install  @teamreflex/cosmo-ts
bun install @teamreflex/cosmo-ts

Usage

import { createClient } from "@teamreflex/cosmo-ts";

const client = createClient({
  accessToken: "your-access-token",
});

const artist = await client.artists.get("ARTMS");
console.log(artist.members.length); // 5

Note

Many endpoints are not implemented yet and many endpoints require authentication. Tokens can be obtained by intercepting app traffic or by accessing Ramper endpoints.

License

MIT © Reflex