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

marktplaats

v1.0.1

Published

CLI tool for searching Marktplaats.nl listings

Readme

marktplaats

A command-line interface for searching Marktplaats.nl listings.

Install

# npm
npm install -g marktplaats

# pnpm
pnpm add -g marktplaats

# yarn
yarn global add marktplaats

# bun
bun add -g marktplaats

From source

git clone https://github.com/TheAlexLichter/marktplaats.git
cd marktplaats
pnpm install
pnpm build
npm link

Usage

Search listings

marktplaats search "fiets"

With filters:

# Sort by price, ascending
marktplaats search "fiets" --sort PRICE --sort-order INCREASING

# Location-based search
marktplaats search "fiets" --postcode 1012AB --distance 10000

# Price range
marktplaats search "fiets" --min-price 50 --max-price 200

# Filter by category, limit results
marktplaats search "fiets" --category 445 --limit 10

# Paginate
marktplaats search "fiets" --page 2

# Interactive TUI mode
marktplaats search "fiets" -i

# Output as JSON
marktplaats search "fiets" --json

Search options

| Option | Alias | Description | Default | | --------------- | ----- | --------------------------------------------------------------- | ------------ | | --limit | -l | Results per page | 25 | | --sort | -s | Sort by: DATE, PRICE, OPTIMIZED, LOCATION, SORT_INDEX | SORT_INDEX | | --sort-order | | DECREASING or INCREASING | DECREASING | | --postcode | -p | Postcode for location search | | | --distance | -d | Radius in meters from postcode | | | --category | | Category ID | | | --min-price | | Minimum price in euros | | | --max-price | | Maximum price in euros | | | --page | | Page number | 1 | | --interactive | -i | Interactive TUI mode | false | | --json | | Output as JSON | false |

View a listing

marktplaats view <itemId>
marktplaats view <itemId> --json

Open in browser

marktplaats open <itemId>

Browse categories

# List all categories
marktplaats categories

# Filter by name
marktplaats categories fiets

View seller's listings

# Pass any listing ID to see other listings from the same seller
marktplaats seller <itemId>
marktplaats seller <itemId> --json

Saved searches

# Save a search
marktplaats saved add bikes fiets --postcode 1012AB --distance 5000

# List saved searches
marktplaats saved list

# Run a saved search
marktplaats saved run bikes

# Remove a saved search
marktplaats saved remove bikes

Watch for new listings

# Watch a search (checks every 60s by default)
marktplaats watch "fiets"

# Custom interval
marktplaats watch "macbook" --interval 30

# With filters
marktplaats watch "fiets" --min-price 50 --max-price 200 --postcode 1012AB

Config

# Set defaults
marktplaats config set postcode 1012AB
marktplaats config set distance 5000

# View config
marktplaats config get

# Get a single key
marktplaats config get postcode

# Remove a default
marktplaats config unset postcode

# Show config file path
marktplaats config path

Config defaults are merged with CLI flags (flags take precedence).

JSON output

All commands that support --json produce structured output with:

  • Full listing URLs
  • Price in both cents and euros
  • Geo coordinates (latitude/longitude)
  • Seller info with verification status
  • Multi-resolution image URLs (small, medium, large, extraLarge)
  • Extended attributes as key-value pairs
  • Ad/reserved flags, traits, and verticals

Development

# Install dependencies
vp install

# Dev mode (watch)
vp pack --watch

# Run tests
vp test

# Lint & format
vp lint
vp fmt

# Build
vp pack

License

MIT