Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TextAliveJp/textalive-app-api/llms.txt
Use this file to discover all available pages before exploring further.
Package manager
Installtextalive-app-api from npm:
ES module import
CommonJS require
TypeScript types
TypeScript type definitions are bundled with the package atdist/textalive-app-api.d.ts and are automatically picked up by the TypeScript compiler — no separate @types package is needed.
The exports field in package.json routes imports to the correct build:
| Condition | File |
|---|---|
import (ESM) | dist/index.es.js |
require (CJS) | dist/index.js |
types | dist/textalive-app-api.d.ts |
CDN
Load the API directly in an HTML file without a build step. The API depends onaxios, so you must include it before the API script:
TextAliveApp is defined. Destructure it to access API classes:
App token
An app token is required for the player to connect to the TextAlive API server and load song and lyrics data. Without a valid token, calls to
createFromSongUrl will fail.PlayerOptions.app.token when constructing a Player:
app property on PlayerOptions accepts a PlayerAppOptions object:
| Property | Type | Description |
|---|---|---|
token | string | Required. Your application token from developer.textalive.jp. |
parameters | ParameterWidget[] | Optional list of adjustable parameters exposed to a TextAlive host. |
Optional dependencies
The package declaressongle-api as an optional peer dependency. If songle-api is installed alongside textalive-app-api, the player can use the SongleTimer for richer music-synchronised playback. Without it, the default timer is used.