Skip to content

Repository files navigation

Kitsu

JavaScript client for Kitsu

@cgwire/kitsu-client is the JavaScript counterpart of gazu: a client for the API of Kitsu, the collaboration platform for animation and VFX studios. It targets plugin and app authors: browsers, webviews (Tauri, Electron) and Node 22 or later.

  • Every client is isolated: its own session, requests and event socket.
  • Same function names as gazu, in camelCase: all*, get*, new*, update*, remove*.
  • Typed: declarations are generated from the JSDoc of the sources.
  • No runtime dependency

Discord

Install

npm i @cgwire/kitsu-client
# only if you listen to real-time events:
npm i socket.io-client

Quick start

With a bot token, the recommended mode for integrations:

import { createClient } from '@cgwire/kitsu-client'

const kitsu = createClient({ host: 'https://kitsu.mystudio.com/api' })
kitsu.setToken(process.env.KITSU_TOKEN)

const projects = await kitsu.project.allOpenProjects()
const shots = await kitsu.shot.allShotsForProject(projects[0])
const tasks = await kitsu.task.allTasksForShot(shots[0])

User credentials, two-factor authentication and cookie mode are covered in Authentication and sessions.

Documentation

Contributing

Bug reports go to the issue page of this repository, feature requests to our Canny page. Pull requests follow the C4 contract.

About authors

Kitsu is written by CGWire, a company based in France. We help animation and VFX studios to collaborate better through efficient tooling. Visit cg-wire.com for more information.

CGWire Logo

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages