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

@anilkumarthakur/tiptap-extension-resize-youtube

v0.0.6

Published

Resizable YouTube embed extension for TipTap with drag controls and alignment options

Readme

YoutubeResize - Resizable YouTube Embed for TipTap

Overview

YoutubeResize is an extension for TipTap that adds resizable YouTube iframes with drag controls and alignment options. It allows users to dynamically adjust the video size and position directly within the editor.

This extension enhances the default TipTap YouTube extension by introducing an interactive UI for resizing and aligning YouTube embeds.


Live Demo

👉 Try it here: https://tiptap-extension-resize-youtube.vercel.app/


Demo Preview

YouTube Video Resizer Demo

Hover over videos to show controls, drag to resize, and use alignment buttons


Features

Resizable YouTube Iframes – Drag corners to resize
Alignment Controls – Align videos left, center, or right
Hover to Show Controls – Controls appear on hover for a clean UI
Click Support – Click to also show/hide controls
Auto-Hide UI – Controls hide when mouse leaves or outside click
Seamless TipTap Integration – Works with existing YouTube embeds
Framework Agnostic – Compatible with Vue, React, Angular, and more


Installation

Step 1: Install the Extension

npm

npm install @anilkumarthakur/tiptap-extension-resize-youtube

yarn

yarn add @anilkumarthakur/tiptap-extension-resize-youtube

pnpm

pnpm add @anilkumarthakur/tiptap-extension-resize-youtube

bun

bun add @anilkumarthakur/tiptap-extension-resize-youtube

Usage

Step 2: Import and Use in TipTap Editor

import { YoutubeResize } from '@anilkumarthakur/tiptap-extension-resize-youtube'

new Editor({
  extensions: [
    ...OtherExtensions,
    YoutubeResize.configure({
      controls: true,
      nocookie: true,
      width: 640,
      height: 480,
      allowFullscreen: true,
      autoplay: false
    })
  ],
  ...OtherOptions
})

How It Works

  • Hover over an embedded YouTube video to show resize handles and alignment controls
  • Drag the corner dots to resize the iframe dynamically
  • Click alignment buttons to move the video left, center, or right
  • Move mouse away or click outside to hide controls
  • Click on the video also toggles controls

Why Use YoutubeResize?

Unlike the default TipTap YouTube extension, YoutubeResize provides a visual and intuitive way to resize and align YouTube videos without manually editing HTML attributes.

Perfect for content editors, CMS tools, and rich-text platforms.


Compatibility

  • Works with Vue, React, Angular, and any framework using TipTap
  • Requires @tiptap/extension-youtube as a dependency

License

MIT License — free to use in commercial and open-source projects.


Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.


🚀 Happy Coding! 🚀