npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tiktok-video-player

v1.0.3

Published

A React component for playing TikTok videos with responsive design

Readme

TikTok Video Player

A clean, responsive React component for playing TikTok videos. Supports adaptive display for both mobile and desktop devices.

🚀 Live Demo

See this package in action at Tiktok Viewer - a tool for viewing TikTok profiles and videos anonymously using our video player component.

Features

  • 📱 Responsive Design: 9:16 aspect ratio on mobile, 16:9 on desktop
  • 🎨 Modern Styling: Rounded corners, elegant user interface
  • 📦 Lightweight: No external dependencies, pure CSS implementation
  • 🔧 TypeScript Support: Complete type definitions
  • Easy to Use: Simple API, just pass the TikTok video ID

Installation

# Using npm
npm install tiktok-video-player

# Using yarn
yarn add tiktok-video-player

# Using pnpm
pnpm add tiktok-video-player

Usage

Basic Usage

import React from 'react';
import { VideoPlayer } from 'tiktok-video-player';

function App() {
  return (
    <div>
      <h1>My TikTok Video</h1>
      <VideoPlayer id="your-tiktok-video-id" />
    </div>
  );
}

export default App;

Getting TikTok Video ID

TikTok video ID can usually be extracted from TikTok video links:

https://www.tiktok.com/@username/video/1234567890123456789

Here, 1234567890123456789 is the video ID.

TypeScript Support

import React from 'react';
import { VideoPlayer, VideoPlayerProps } from 'tiktok-video-player';

const MyComponent: React.FC = () => {
  const videoId: string = "1234567890123456789";
  
  return <VideoPlayer id={videoId} />;
};

API Documentation

VideoPlayer Props

| Property | Type | Required | Description | |----------|------|----------|-------------| | id | string | ✅ | Unique identifier for the TikTok video |

Style Customization

The component uses standard CSS class names, you can customize styles through CSS:

/* Custom container styles */
.video-player-container {
  border: 2px solid #ff0050;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Custom video player styles */
.video-player {
  border-radius: 16px;
}

Browser Compatibility

  • Chrome ≥ 51
  • Firefox ≥ 54
  • Safari ≥ 10
  • Edge ≥ 79

Development

Local Development

# Clone repository
git clone https://github.com/jbgf/tiktok-video-player.git
cd tiktok-video-player

# Install dependencies
pnpm install

# Development mode
pnpm run dev

# Build
pnpm run build

# Run tests
pnpm test

# Code linting
pnpm run lint

Project Structure

tiktok-video-player/
├── src/
│   ├── index.tsx          # Main component
│   └── video-player.css   # Style file
├── dist/                  # Build output
├── package.json
├── tsconfig.json
├── rollup.config.js
└── README.md

License

MIT © [Your Name]

Changelog

v1.0.0

  • 🎉 Initial release
  • ✨ Responsive design support
  • 🎨 Modern UI design
  • 📱 Mobile optimization

Contributing

Issues and Pull Requests are welcome!

  1. Fork the project
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Support

If you find this project useful, please give it a ⭐️!

For questions or suggestions, please create an Issue.