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

sfbatch

v1.0.14

Published

Salesforce Bulk API 2.0 CLI + Web UI (Insert/Update/Upsert/Delete)

Readme

sfbatch – The Ultimate Salesforce Bulk API 2.0 Tool

Fast • Beautiful • CLI + Web UI

The only Bulk 2.0 tool you’ll ever need.
Insert • Update • Upsert • Delete – with a gorgeous UI and lightning-fast CLI.


Features

| Feature | CLI | Web UI | Notes | |----------------------------------|-----|--------|-------| | Insert / Update / Upsert / Delete| Yes | Yes | All operations supported | | Delete with only Id column | Yes | Yes | No more “Missing Name” errors | | Real-time job monitoring | Yes | Yes | Polls every 5s + error details | | Failed records auto-download | Yes | Yes | failedRecords.csv | | God-tier CSV preview | – | Yes | Sort • Search • Resize • Copy • Pagination | | No original file deletion | Yes | Yes | Your CSVs stay safe | | Zero dependencies on Data Loader | Yes | Yes | Pure sf CLI + Bulk API 2.0 | | Works on any org (prod, sandbox, scratch) | Yes | Yes | |


Demo

sfbatch UI Demo

Installation (one command)

npm install -g sfbatch

That’s it. No Java, no Data Loader, no pain.


Quick Start

CLI (perfect for scripts & CI/CD)

# Delete Accounts (only Id column needed)
sfbatch run -f ./delete-accounts.csv -o prod -s Account -m delete

# Upsert Contacts using Email as external ID
sfbatch run -f contacts.csv -o my-dev -s Contact -m upsert -e Email

# Insert Leads
sfbatch run -f leads.csv -o sandbox -s Lead -m insert

Web UI

sfbatch ui
# → opens http://localhost:3789 automatically

Error: Port alredy in use

❌ Error: Port 3789 is already in use!

  Find and kill the process using port 3789:
     lsof -ti:3789 | xargs kill -9
     # or on Windows:
     netstat -ano | findstr :3789

Upload CSV → pick operation → watch live progress → download failed records → done.


UI Screenshot

sfbatch UI

CLI sample run

  sfbatch run -f ~/Documents/csv/del-account.csv -o ea10 -s Account -m delete  
Authenticated as: [email protected]
Fetching schema...
Validating CSV...
✓ Valid: 1 rows
Creating bulk job...
✓ Job created: 750Hs000017j3p2IAA
Monitoring job...
Status: JobComplete | Processed: 1 | Failed: 0
Job completed successfully!

Commands

sfbatch ui                     # Launch web UI
sfbatch run                    # Run a job from CLI
sfbatch schema -o <org> -s <obj>   # Show field schema (great for building CSVs)

Options (run command)

-f, --file     <path>     CSV file (required)
-o, --org      <alias>    Org alias or username (required)
-s, --sobject  <name>     Target object (required)
-m, --mode     <op>       insert | update | upsert | delete (required)
-e, --extid    <field>    External ID field for upsert (optional)

Why sfbatch is better than everything else

| Tool | Java Required | UI Quality | Delete Support | Failed Records | Open Source | |--------------------|---------------|------------|----------------|----------------|-------------| | Data Loader | Yes | 2005 vibes | Yes | Yes | Yes | | Workbench | No | Basic | Yes | Yes | Yes | | sfbatch | No | Awesome! | Perfect | Auto | Yes |


Author

Mohan Chinnappan