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

droplify

v0.0.3

Published

Lightweight Angular standalone drag-and-drop file upload UI component with image previews and file-type icons (PDF, Excel, CSV).

Downloads

12

Readme

Droplify

Lightweight Angular standalone drag-and-drop file upload UI component with image previews and file-type icons (PDF, Excel, CSV).

Overview

Droplify provides a dropzone plus a compact preview list. Images render previews; other files render type-specific icons.

  • Framework: Angular 18 standalone
  • Selector: dl-droplify
  • No external deps
  • Icons bundled: PDF and XLSX icons are packaged in the library assets.

Install

npm i droplify

If droplify is taken, publish under a scope, e.g. @your-scope/droplify and install that instead.

Quick start

// Any standalone component in your app
import { Component } from '@angular/core';
import { DroplifyComponent } from 'droplify';

@Component({
  selector: 'app-demo',
  standalone: true,
  imports: [DroplifyComponent],
  template: `
    <dl-droplify
      [accept]="'image/*,.pdf,.csv,.xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'"
      [multiple]="true"
      [maxSize]="10 * 1024 * 1024"
      (filesChange)="onFiles($event)"></dl-droplify>
  `,
})
export class DemoComponent {
  onFiles(files: File[]) {
    console.log(files);
  }
}

Notes

  • Include the appropriate MIME types/extensions in accept to enable CSV/Excel/PDF selection.
  • PDF and Excel icons are served from the library assets/ folder; no extra setup is required.
  • Image files get real previews via URL.createObjectURL().

Inputs

  • accept: string | null — Same syntax as <input type="file"> accept. Example: image/*,.pdf,.csv,.xls,.xlsx.
  • multiple: boolean — Allow multiple files. Default: true.
  • maxSize: number — Max file size in bytes. 0 = unlimited. Default: 0.
  • disabled: boolean — Disable interaction.
  • placeholder: string — Text shown in the dropzone. Default: "Drop your file or click here".

Outputs

  • filesChange: EventEmitter<File[]> — Emits the current list whenever it changes.
  • fileAdded: EventEmitter<File> — Emits each file as it is added.
  • fileRemoved: EventEmitter<File> — Emits a file when it is removed.

Features

  • Drag & drop or click to browse
  • Image previews with object URLs
  • Type-specific icons for PDF/Excel/CSV (assets included)
  • Remove files inline
  • Keyboard accessible (Enter/Space)

Local development (for contributors)

ng build droplify

Outputs to dist/droplify/.

Publish to npm

  1. Ensure the package name in projects/droplify/package.json is available on npm. If not, change it or use a scope (e.g., @your-scope/droplify).
  2. Build the library:
    ng build droplify
  3. Publish the dist output:
    npm publish dist/droplify --access public
    Make sure you are logged in with npm login.

License

MIT