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

@flatscout/source-immoscout24

v1.0.0

Published

Search-based source plugin for [ImmoScout24.ch](https://www.immoscout24.ch). Paginates the SRP (search-result page) through the Flatscout browser bridge and emits one `Listing` per result — rooms, price, surface, photos, description, geo, all from the SRP

Readme

@flatscout/source-immoscout24

Search-based source plugin for ImmoScout24.ch. Paginates the SRP (search-result page) through the Flatscout browser bridge and emits one Listing per result — rooms, price, surface, photos, description, geo, all from the SRP card. Optional PDP enrichment fills contact channels (phone / email / form URL) on opt-in.

Requirements

DataDome + Cloudflare protect every IS24 dynamic surface. The Flatscout browser bridge is the only viable transport: in-process when running inside flatscout start, or via the daemon's /dispatch when run as a sibling CLI process. Without a bridge the plugin fails fast at init.

See docs/research/2026-05-18-immoscout24-investigation.md for the DataDome / Cloudflare investigation.

Config

schedule: '*/15 * * * *'
search:
  language: en               # de | fr | it | en
  zipcodes: [8001, 8032]     # 1 zip → city-slug if known, else wzip param; multi-zip → joined wzip
  price_min: 1500
  price_max: 4500
  rooms_min: 3
  surface_min: 80
  has_elevator: true
  sort_by: dateCreated       # dateCreated | price | roomCount | livingSpace
  sort_direction: desc
fetch:
  max_pages: 5
  pace_ms: 2500
  backoff:
    on: [429, 500, 502, 503, 504]
    retries: 3
    base_ms: 2000
enrich:
  enrich_via_bridge: false   # opt-in: fetch each PDP for contact channels
  max_detail_per_scan: 40

Why no PDP by default

The SRP card already carries rooms, price, surface, photos, description, geo, title, and most characteristics. PDP fetches only add phone / email / agency legal name — useful for some users, costly in bridge round-trips for others. Default off; opt in with enrich.enrich_via_bridge: true.

Configuration drift

This source ingests whatever the open browser tab shows — the plugin reads window.__INITIAL_STATE__.resultList.search.fullSearch from your paired browser's currently-open ImmoScout24 search-results page. DataDome refuses to serve /rent?wzip=... as a raw fetch (the JSON only exists as a SPA-emitted XHR from a fully-hydrated tab), so the only viable transport is "read whatever's on screen".

That means search: in your yaml is informational only. Whenever you have configured any non-default value under search: in yaml, the plugin emits a one-shot per-scan warn log noting that those values are ignored, and includes the tab's live searchModel in the log fields so you can see at a glance what the tab is actually filtered on. To change filters:

  1. Navigate inside the tab — adjust the SRP filters in the IS24 UI.
  2. Let the SPA re-render with the new results.
  3. The next Flatscout scan will pick up the new listings.

If you depend on a specific filter set, keep the tab pinned to that URL.

Tests

pnpm --filter @flatscout/source-immoscout24 test

The captured SRP fixture under test/fixtures/srp-zurich-page1.html exercises parse.ts, map.ts, and enrich.ts without live network access.