Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.08 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.08 KB

@teamreflex/cosmo-ts

npm version npm downloads

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

Requires a runtime with SubtleCrypto support, e.g. Node.js >= 20.x

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.artistMembers.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