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

@livewire-filemanager/tiptap

v1.0.0

Published

TipTap extension to browse and insert files from Livewire Filemanager

Readme

@livewire-filemanager/tiptap

TipTap extension for Livewire Filemanager. Browse, search and insert files directly from your TipTap editor.

Features

  • Built-in file browser modal with folder navigation and search
  • Image files inserted as <img> tags, other files as download links
  • Keyboard shortcut Ctrl+Shift+F (or Cmd+Shift+F on macOS)
  • 12 languages supported out of the box
  • Fully typed (TypeScript)
  • No dependencies beyond @tiptap/core

Prerequisites

This package requires the Livewire Filemanager backend to be installed and its API routes to be enabled.

composer require livewire-filemanager/filemanager
php artisan vendor:publish --tag=livewire-filemanager-config
php artisan vendor:publish --tag=livewire-filemanager-migrations
php artisan migrate

Make sure the API is enabled in config/livewire-filemanager.php:

'api' => [
    'enabled' => true,
    'prefix' => 'filemanager/v1',
    'middleware' => ['api', 'auth:sanctum'],
    // ...
],

If using Sanctum SPA authentication, remember to call $middleware->statefulApi() in bootstrap/app.php and set SANCTUM_STATEFUL_DOMAINS in your .env.

Installation

npm install @livewire-filemanager/tiptap @tiptap/core

For automatic image insertion, also install the Image extension:

npm install @tiptap/extension-image

Usage

import { Editor } from '@tiptap/core'
import StarterKit from '@tiptap/starter-kit'
import Image from '@tiptap/extension-image'
import { Filemanager } from '@livewire-filemanager/tiptap'

const editor = new Editor({
  element: document.getElementById('editor'),
  extensions: [
    StarterKit,
    Image,
    Filemanager.configure({
      apiUrl: '/api/filemanager/v1',
      lang: 'en',
    }),
  ],
})

Opening the file manager

Use the keyboard shortcut Ctrl+Shift+F, or call the command programmatically:

editor.commands.openFilemanager()

Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | apiUrl | string | '/api/filemanager/v1' | Base URL of the Filemanager API | | lang | SupportedLocale | 'en' | UI language (see supported locales below) | | onInsert | (files: FileItem[], editor: Editor) => void | undefined | Custom insert callback. Overrides the default behavior |

Custom insert behavior

By default, images are inserted as <img> tags and other files as <a> download links. You can override this:

Filemanager.configure({
  onInsert: (files, editor) => {
    files.forEach(file => {
      editor.chain().focus().insertContent(`[${file.name}](${file.url})`).run()
    })
  },
})

FileItem type

interface FileItem {
  id: number
  name: string
  file_name: string
  url: string
  thumbnail_url?: string
  mime_type: string
  size: number
}

Supported locales

| Code | Language | |------|----------| | en | English | | fr | French | | es | Spanish | | ar | Arabic | | fa | Persian | | he | Hebrew | | it | Italian | | nl | Dutch | | pt_BR | Portuguese (Brazil) | | pt_PT | Portuguese (Portugal) | | ro | Romanian | | tr | Turkish |

License

MIT