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

@fluxfiles/ckeditor4

v0.3.1

Published

CKEditor 4 plugin for FluxFiles

Downloads

1,040

Readme

FluxFiles — CKEditor 4 Plugin

Adds a FluxFiles toolbar button to CKEditor 4 for browsing and inserting files.

Requirements

  • CKEditor 4
  • A running FluxFiles core server (the PHP backend / standalone app in packages/core). This plugin is only the editor button — it loads the FluxFiles SDK (fluxfiles.js) from that server and endpoint must point at it.

Installation

npm install @fluxfiles/ckeditor4

CKEditor 4 loads plugins from a path, so make the files reachable by your editor — either point CKEDITOR.plugins.addExternal at node_modules/@fluxfiles/ckeditor4/, or copy the plugin folder into your CKEditor plugins/ directory:

ckeditor/plugins/fluxfiles/
├── plugin.js        # readable source
├── plugin.min.js    # minified (~1.3 KB) — use in production
└── README.md

A minified plugin.min.js ships alongside the source (CDN unpkg/jsdelivr resolve to it); regenerate with npm run build (esbuild). The toolbar icon is an inline SVG (no separate image file) — the same folder glyph the TinyMCE plugin uses.

  1. Load the FluxFiles SDK (fluxfiles.js) on the page.

  2. Enable the plugin:

CKEDITOR.replace('editor', {
    extraPlugins: 'fluxfiles',
    fluxfiles: {
        endpoint: 'https://your-fluxfiles-host',
        token: 'JWT_TOKEN',
        disk: 'local',
        locale: 'en',
        multiple: false
    }
});

How It Works

Two ways to pick a file:

  1. Toolbar button — click the FluxFiles button (folder icon) in the Insert group. The picker opens; the selection is inserted directly (<img> for images with alt from metadata and width/height when known, other files as <a> links).
  2. Native Image dialog — the plugin injects a Browse FluxFiles button into CKEditor's own Image Properties dialog. Clicking it opens FluxFiles inline (no popup) and fills the dialog's URL + Alternative Text + Width + Height, so you can set border/alignment/etc. in the native dialog before inserting (the "Browse Server" / CKFinder pattern).

The modal closes automatically after selection.

Disable the native Image-dialog button with fluxfiles: { imageDialog: false }.

Embedding & expiring URLs. On a private disk the file URL is a presigned URL that expires (≤ 24h) — embedding it in saved content will break once it expires (the plugin logs a console.warn). For editor embeds use a public disk or a public_url so the inserted URL is permanent.

Configuration

| Option | Type | Default | Description | |--------|------|---------|-------------| | endpoint | string | '' | FluxFiles server URL | | token | string | '' | JWT authentication token | | disk | string | 'local' | Storage disk | | disks | string[] | null | Disks shown in the picker sidebar | | locale | string | null | UI language code | | theme | string | null | Picker theme: light / dark / auto | | multiple | boolean | false | Allow multi-file selection | | imageDialog | boolean | true | Inject the Browse FluxFiles button into the native Image dialog |

License

MIT — see LICENSE for details.

Links

  • Main repository: https://github.com/thai-pc/fluxfiles
  • Documentation: https://github.com/thai-pc/fluxfiles#ckeditor-4
  • Issues: https://github.com/thai-pc/fluxfiles/issues