MCPcopy
hub / github.com/pqina/filepond

github.com/pqina/filepond @4.32.12 sqlite

repository ↗ · DeepWiki ↗ · release 4.32.12 ↗
456 symbols 1,078 edges 256 files 0 documented · 0%
README

FilePond

A JavaScript library that can upload anything you throw at it, optimizes images for faster uploads, and offers a great, accessible, silky smooth user experience.

License: MIT npm version npm minzipped size Discord

FilePond adapters are available for React, Vue, Angular, Svelte, and jQuery

FilePond v5 Alpha version now available for testing

DocumentationDiscordExamples


FilePond

Buy me a CoffeeUse FilePond with PinturaDev updates


Core Features

  • Accepts directories, files, blobs, local URLs, remote URLs and Data URIs.
  • Drop files, select on filesystem, copy and paste files, or add files using the API.
  • Async uploads with AJAX, supports chunk uploads, can encode files as base64 data and send along form post.
  • Accessible, tested with AT software like VoiceOver and JAWS, navigable by Keyboard.
  • Image optimization, automatic image resizing, cropping, filtering, and fixes EXIF orientation.
  • Responsive, automatically scales to available space, is functional on both mobile and desktop devices.

Learn more about FilePond


Also need Image Editing?

Pintura the modern JavaScript Image Editor is what you're looking for. Pintura supports setting crop aspect ratios, resizing, rotating, cropping, and flipping images. Above all, it integrates beautifully with FilePond.

Learn more about Pintura


Live Demos

Plugins

Adapters

Backend

Quick Start

Install using npm:

npm install filepond

Then import in your project:

import * as FilePond from 'filepond';

// Create a multi file upload component
const pond = FilePond.create({
    multiple: true,
    name: 'filepond',
});

// Add it to the DOM
document.body.appendChild(pond.element);

Or get it from a CDN:

<!DOCTYPE html>
<html>
    <head>
        <title>FilePond from CDN</title>


        <link href="https://unpkg.com/filepond/dist/filepond.css" rel="stylesheet" />
    </head>
    <body>

        <input type="file" class="filepond" />


        <script src="https://unpkg.com/filepond/dist/filepond.js"></script>


        <script>
            FilePond.parse(document.body);
        </script>
    </body>
</html>

Getting started with FilePond

Internationalization

The locale folder contains different language files, PR's are welcome, you can use locale files like this:

import pt_BR from 'filepond/locale/pt-br.js';

FilePond.setOptions(pt_BR);

Contributing

At the moment test coverage is not great, it's around 65%. To accept pull requests the tests need to be better, any help to improve them is very much appreciated.

Tests are based on Jest and can be run with npm run test

To build the library run npm run build

Publications

Browser Compatibility

FilePond is compatible with a wide range of desktop and mobile browsers, the oldest explicitly supported browser is IE11, for best cross browser support add FilePond Polyfill and Babel polyfill to your project.

FilePond uses BrowserStack for compatibility testing.

BrowserStack

License

Please don't remove or change the disclaimers in the source files

MIT License

Copyright (c) 2020 PQINA | Rik Schennink

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Extension points exported contracts — how you extend this code

ServerUrl (Interface)
(no doc)
types/index.d.ts
ProcessServerChunkTransferOptions (Interface)
(no doc)
types/index.d.ts
FilePondInitialFile (Interface)
(no doc)
types/index.d.ts
FilePondServerConfigProps (Interface)
(no doc)
types/index.d.ts
FilePondDragDropProps (Interface)
(no doc)
types/index.d.ts

Core symbols most depended-on inside this repo

dispatch
called by 64
src/js/app/frame/createStore.js
query
called by 27
src/js/app/frame/createStore.js
createEvent
called by 26
src/js/app/index.js
forin
called by 22
src/js/utils/forin.js
createResponse
called by 21
src/js/utils/createResponse.js
text
called by 20
src/js/utils/text.js
attr
called by 19
src/js/utils/attr.js
createView
called by 19
src/js/app/frame/createView.js

Shape

Function 431
Interface 16
Class 6
Enum 3

Languages

TypeScript100%

Modules by API surface

types/index.d.ts25 symbols
src/js/app/utils/createItem.js18 symbols
src/js/app/index.js18 symbols
src/js/app/actions.js18 symbols
src/js/app/utils/requestDataTransferItems.js16 symbols
src/js/index.js11 symbols
src/js/app/view/root.js11 symbols
src/js/app/utils/dnd.js11 symbols
src/js/app/view/list.js10 symbols
src/js/app/view/data.js10 symbols
src/js/app/view/assistant.js10 symbols
src/js/app/utils/processFileChunked.js10 symbols

Dependencies from manifests, versioned

@babel/core7.5.5 · 1×
@babel/plugin-proposal-object-rest-spread7.5.5 · 1×
@babel/plugin-transform-template-literals7.4.4 · 1×
@babel/preset-env7.5.5 · 1×
autoprefixer9.6.1 · 1×
babel-jest24.8.0 · 1×
cssnano4.1.10 · 1×
dtslint3.6.12 · 1×
jest24.8.0 · 1×
jest-mock-console1.2.3 · 1×
postcss-cli6.1.3 · 1×
precss4.0.0 · 1×

For agents

$ claude mcp add filepond \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact