metatell Bot SDK - v2.0.0
    Preparing search index...

    Module @metatell/bot-core

    @metatell/bot-core

    Core services and shared types for advanced metatell bot integrations.

    Most bot projects should use @metatell/bot-sdk. Use this package directly when you need lower-level services, typed NAF helpers, or custom service composition.

    • Node.js 20 or later. Node.js 22 is recommended.
    • TypeScript 5 or later for TypeScript projects.
    npm install @metatell/bot-core
    # or
    pnpm add @metatell/bot-core
    # or
    yarn add @metatell/bot-core
    import { CoreServiceFactory } from '@metatell/bot-core'

    const factory = new CoreServiceFactory({
    organizationId: 'your-org-id',
    hubId: 'your-room-id',
    avatarData: {
    displayName: 'MyBot',
    avatarUrl: 'https://example.com/avatar.vrm',
    },
    })

    const container = factory.createContainer()

    Publishes and subscribes to SDK events.

    eventBus.on('custom.event', (data) => {
    console.log('event received:', data)
    })

    eventBus.emit('custom.event', { message: 'Hello' })

    Controls bot avatar state, movement, and animations.

    await avatarController.spawn()
    await avatarController.playAnimation(PresetAnimationId.WALKING)
    await avatarController.setPosition({ x: 10, y: 0, z: 5 })
    • AnimationService: avatar animation lookup and playback helpers.
    • MessageService: NAF and NAFR message send/receive helpers.
    • PresenceManager: room user presence tracking.
    • AuthenticationService: room authentication helpers.
    • ConfigurationProvider: SDK configuration access.

    MIT

    <internal>
    AnimationLoopBehavior
    NafComponentId
    PresetAnimationId
    SystemEvents
    AnimationNotFoundError
    AnimationPlaybackError
    AnimationService
    AppSettings
    AuthenticationError
    AuthenticationService
    AvatarController
    AvatarNotSpawnedError
    ChannelService
    ConfigurationProvider
    ConnectionManager
    CoreServiceFactory
    DefaultLoggerProvider
    EventBus
    MessageService
    MetatellClientImpl
    MetatellError
    NafMessageBuilder
    OrganizationService
    PresenceManager
    ProtocolError
    RateLimitedError
    ServiceContainer
    ServiceIdentifier
    TimeoutError
    TransportError
    UserAvatarManager
    Animation
    AnimationConfig
    AnimationEvent
    AnimationNAFMessage
    AnimationPlaybackResult
    AnimationPlayOptions
    AvatarAsset
    AvatarComponentData
    AvatarState
    BotConfiguration
    BotContext
    BotInfo
    BotProfile
    BotVoiceConfig
    ConnectOptions
    CreateClientOptions
    Euler
    EulerRotation
    IAnimationService
    IAppSettings
    IAuthenticationService
    IAvatarController
    IChannelService
    IConfigurationProvider
    IConnectionManager
    IEventBus
    IMessageService
    IOrganizationService
    IPresenceManager
    IUserAvatarManager
    IWebSocketConnectionManager
    MetatellClient
    MetatellClientEvents
    NafAvatarConfig
    NAFComponentMap
    NAFCreateMessage
    NAFEntityData
    NafMessage
    NAFMultiUpdateMessage
    NAFRemoveMessage
    OrganizationAvatar
    OrganizationInfo
    PcmInputOptions
    PlaybackControls
    Position3D
    PrepareNavigationOptions
    PresenceUser
    PreviousNavigation
    Quaternion
    RoomJoinInfo
    RoomSceneChangedEvent
    RoomSceneInfo
    Scale3D
    User
    UserAvatar
    Vec3
    VoiceCapableClient
    VRMAnimation
    WebSocketState
    NafDataType
    PrepareNavigationResult
    ServiceKey
    ServiceType
    TypedNAFMessage
    UserAvatarEvent
    createMetatellClient
    extractAvatarData
    extractBodyRotation
    extractPosition
    getLoggerProvider
    isMetatellError
    isNAFCreateMessage
    isNAFMultiUpdateMessage
    isNAFRemoveMessage
    isRetryableError
    isTypedNAFMessage
    registerLoggerProvider