nuxt / nuxt/modules

Add tiktok-live-nuxt

Open
#1,428 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.1k
Forks
354
Avg merge
10h 18m
Merged PRs (30d)
12

Description

Module Info
Features
  • Auto-imported useTikTokLive() composable
  • Reactive refs for chat messages, gifts, viewer count
  • SSR-safe (WebSocket connects on client hydration)
  • Custom event handlers via .on()
  • Config via nuxt.config.ts or TIKTOOL_API_KEY env var
  • TypeScript support with full type definitions
  • Works with Nuxt 3+
Quick Example
<script setup>
const { messages, viewers, gifts, connected } = useTikTokLive('gbnews')
</script>

<template>
  <div>
    <p>👀 {{ viewers }} viewers</p>
    <div v-for="msg in messages" :key="msg.data?.msgId">
      {{ msg.data?.user?.uniqueId }}: {{ msg.data?.comment }}
    </div>
  </div>
</template>
Links

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the nuxt/modules repository's contribution guidance and existing integration module entries, then compare the submitted metadata with the linked npm package, repository, and documentation. Done means the tiktok-live-nuxt module is added consistently with the repository's existing catalog format and its links and description are accurate.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.