Documentation
Installation
Requirements
JavaScript or TypeScript with a modern bundler (Vite, Next.js, Nuxt, SvelteKit, Astro, etc.), or a runtime supporting
fetchA Discord account that has joined the PresenceKit server and approved sharing with
/confirmAccess to the official
https://presence-api.iconical.devInstall a local tarball (before publication)
From the PresenceKit repository root:
bun install
bun run build
bun pm pack --filename presencekit-local.tgzFrom your own consumer project's directory, install the archive using the path to your checkout:
bun add /path/to/presencekit/presencekit-local.tgzOn Windows, use the equivalent local absolute path. The installed package is named
@iconical/presenceIf Vite is still serving a cached version, restart your consumer project's dev server:
bun run dev -- --forceAfter npm publication
bun add @iconical/presence
# or
npm install @iconical/presence
# or
pnpm add @iconical/presence
Use the entrypoint for your framework:
--
console.log('hello world');React, Vue, and Svelte are optional peer dependencies; install only the framework you use.
TypeScript support
The packed SDK contains compiled JavaScript and declaration files under
dist/import { createPresenceClient } from "@iconical/presence";
const client = createPresenceClient();For network or consent errors, see Troubleshooting.
Was this page helpful?