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

@pipedream/filetopdf_dev

v0.1.0

Published

Pipedream FileToPDF.dev Components

Readme

FileToPDF — Pipedream components

FileToPDF turns files, raw HTML, and Markdown into PDFs with a single API call. This package provides the Pipedream app + action components for the registry (PipedreamHQ/pipedreamcomponents/filetopdf_dev/).

Actions

| Action | Endpoint | What it does | |--------|----------|--------------| | Convert a File to PDF | POST /file | Convert Word, Excel, PowerPoint, images and 130+ formats. Two input modes: (a) a file from a previous step — give its /tmp file path in the File field and we upload it; or (b) a public URL in the File URL field, which the API downloads server-side. Converter picked from the file extension. | | Convert HTML to PDF | POST /html | Render raw HTML + optional CSS into a PDF (Chromium). | | Convert Markdown to PDF | POST /markdown | Render Markdown + optional CSS into a PDF. | | Get Account Status | GET /account | Validate the key and read plan + remaining credits. Free, never rate-limited — the connection test. |

There are no triggers/sources: the API is pure request/response (no webhooks or polling feed). Each convert action writes the resulting PDF to /tmp and returns its filePath plus metadata (filename, pages, fileSize, creditsUsed, creditsRemaining), so the next step (Google Drive, Dropbox, Email, S3…) can consume the file directly.

Authentication

Custom API key, sent on every request as the x-api-key header (consumed via this.$auth.api_key).

Get a free API key in one click at filetopdf.dev — no account needed. Includes 10 free conversions. Paste it into the connection and you're done.

Layout options

The convert actions expose an advanced options group (landscape, paper size, margins, scale, page ranges, PDF/A, PDF/UA, password protection) with the same labels and help copy as the FileToPDF Zapier / Make / n8n integrations. Values are sent to the API as strings. Note: conversion parameters require the Pro, Scale, or free-trial plan — on Starter/Basic the API returns a clear upgrade_required error naming the option.

POST /file (LibreOffice/passthrough) supports landscape, page ranges, PDF/A, PDF/UA, source-document password, and output passwords — not paper size/margins/scale, which are Chromium-only.

Layout / project structure

filetopdf_dev.app.mjs                  app: auth + request methods + reusable option propDefinitions
common/constants.mjs               BASE_URL, PDF/A options, friendly error mapping
actions/convert-file/…             POST /file (upload or URL)
actions/convert-html/…             POST /html
actions/convert-markdown/…         POST /markdown
actions/get-account/…             GET /account (connection test)
assets/icon.png                    512×512 RGBA app logo
test/live-test.mjs                 live test against the real API

Validate & test

npm install

# static check
for f in filetopdf_dev.app.mjs common/*.mjs actions/*/*.mjs; do node --check "$f"; done

# live test (needs a real key)
cp .env.example .env        # then set API_KEY=sk_live_...
node test/live-test.mjs

The live test covers the connection test plus at least one conversion per action (HTML, Markdown, file-from-URL, and file-from-/tmp-upload), asserting each produces a real %PDF file.

The test key lives only in a gitignored .env — never commit or print it.

Publishing (public listing)

The goal is public listing in Pipedream's marketplace/search. Because filetopdf is a new app, Pipedream must register the app + its API-key auth before a components PR can land — so it's a 3-gate process:

  1. Request the new app (GitHub issue on PipedreamHQ/pipedream) → Pipedream creates the filetopdf_dev slug + x-api-key auth + the components/filetopdf_dev/ dir.
  2. PR these components into a fork → review.
  3. Merge → auto-appears in public search.

See PUBLISHING.md for the full runbook, the exact new-app request payload, and current status.