---
title: "openvibe-sdk/play · OpenVibe.Services"
canonical: "https://openvibe.services/docs/sdk/play"
updated: null
---

# openvibe-sdk/play · OpenVibe.Services

HTML: [openvibe-sdk/play · OpenVibe.Services](https://openvibe.services/docs/sdk/play)

# `openvibe-sdk/play`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

From `types/play.d.ts` (server only). Declarations are shown verbatim.

## interface PlayAchievementDef

openvibe-sdk/play: OpenVibe.Play game services — titles, scores, achievements and leaderboards.

~~~~
export interface PlayAchievementDef { id: string; name: string; description?: string; hidden?: boolean }
~~~~

## interface PlayBoardDef

~~~~
export interface PlayBoardDef { id: string; name: string; kind: 'best' | 'sum' }
~~~~

## interface PlayTitleDefinition

~~~~
export interface PlayTitleDefinition { name: string; url?: string; summary?: string; achievements?: PlayAchievementDef[]; boards?: PlayBoardDef[] }
~~~~

## interface PlayScoreEntry

~~~~
export interface PlayScoreEntry { player: string; name: string; score: number; [k: string]: unknown }
~~~~

## interface PlayClient

~~~~
export interface PlayClient {
    titles: {
        define(title: string, definition: PlayTitleDefinition, opts?: { signal?: AbortSignal }): Promise<any>;
        list(opts?: { signal?: AbortSignal }): Promise<any>;
        get(title: string, opts?: { signal?: AbortSignal }): Promise<any | null>;
        /** Delete a sandbox title you manage (a production title is kept: 409 play.title_kept). */
        remove(title: string, opts?: { signal?: AbortSignal }): Promise<any>;
    };
    scores: {
        post(title: string, round: { board: string; ref: string; at?: string; entries: PlayScoreEntry[] }, opts?: { signal?: AbortSignal }): Promise<any>;
    };
    achievements: {
        unlock(title: string, input: { player: string; achievements: string[]; at?: string }, opts?: { signal?: AbortSignal }): Promise<any>;
    };
    players: {
        adopt(title: string, guest: string, person: string, opts?: { signal?: AbortSignal }): Promise<any>;
        achievements(title: string, player: string, opts?: { signal?: AbortSignal }): Promise<any>;
    };
    boards: {
        get(title: string, board: string, opts?: { period?: string; page?: number; signal?: AbortSignal }): Promise<any | null>;
    };
}
~~~~

## export export function createPlayClient(client: { json(opts: Record

~~~~
export function createPlayClient(client: { json(opts: Record<string, unknown>): Promise<any> }, options?: { baseUrl?: string }): PlayClient;
~~~~
