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

@geoalgeria/pharmacies

v1.0.0

Published

Algeria's pharmacies (officines) from OpenStreetMap — geocoded, bilingual FR/AR where named, with phone/opening-hours/dispensing where tagged and wilaya/commune linkage against the geoalgeria commune set. JSON, CSV, GeoJSON, TypeScript.

Readme

English | Français | العربية

@geoalgeria/pharmacies

Algeria's pharmacies — as data you can install.

npm npm downloads License: MIT

Overview

3,790 pharmacies (officines) across 67 wilayas, from OpenStreetMap — every record geocoded, bilingual (FR/AR) where named, with phone, opening hours and a dispensing flag where OSM has them, plus wilaya/commune linkage.

Installation

npm install @geoalgeria/pharmacies

Quick start

import {
  pharmacies,
  pharmacyById,
  pharmaciesByWilaya,
  metadata,
} from "@geoalgeria/pharmacies";

pharmacies().length; // 3790

// Everything in Alger (code 16)
pharmaciesByWilaya(16).length;

// A single record, and dataset metadata
pharmacyById("16-00001")?.commune;
metadata().wilayas_covered; // 67

What you can build

  • A pharmacy locator / map layer for Algeria
  • A "pharmacie de garde" base layer (join with opening hours)
  • Health-access analysis by wilaya/commune

What's inside

| Dataset | Count | Coordinates | Notes | | --- | --- | --- | --- | | pharmacies | 3,790 | all 3,790 | OpenStreetMap, geocoded, wilaya/commune-linked |

  • Named: 2,459 · with phone: 146 · with opening hours: 255 · with address: 1,159 · with dispensing: 524

Formats

  • data/pharmacies.json — full array (typed by types/index.d.ts)
  • data/csv/pharmacies.csv — flat CSV
  • data/geojson/pharmacies.geojsonFeatureCollection (all records)
  • data/metadata.json — counts, sources, generated date
import data from "@geoalgeria/pharmacies/data/pharmacies.json" with { type: "json" };
import type { Pharmacy } from "@geoalgeria/pharmacies";

How the data is built

Extracted from OpenStreetMap via Overpass (amenity=pharmacy across Algeria), de-duplicated (same-name-within-40 m and coincident points), then linked to wilaya/commune by nearest-centroid join against the geoalgeria commune set. Names are routed strictly by script so name_ar is always Arabic and name_fr always Latin, even when OSM mis-tags them. A bulk-import artifact — 1,769 unnamed, consecutive-id pharmacy ways dumped into one small area near Attatba (Tipaza) — is detected and excluded (it is not real officines). Rebuild with npm run fetch (or --cache to rebuild from the cached pull). See research/pharmacies/ in the monorepo.

On accuracy & coverage

Coverage is partial. 3,790 pharmacies are mapped in OpenStreetMap against an estimated ~11,000 officines nationally (an order-of-magnitude reference — there is no open official registry; the Ordre National des Pharmaciens portal is down). Coverage is uneven by wilaya and denser in the north — this is a community-maintained extract, not an official registry.

Coordinates are OSM node points (surveyed) or building-outline centroids (geo_precision). Commune is a nearest-centroid best-effort; wilaya is effectively exact. Names, phones and hours are only present where an OSM contributor tagged them.

Source & license

Data © OpenStreetMap contributors, licensed ODbL 1.0. Any distribution of this data (or derived DB) must credit OpenStreetMap and keep it under ODbL. Wilaya/commune linkage uses the geoalgeria base dataset. Package code under MIT (see LICENSE).

Questions?

Open an issue: https://github.com/yasserstudio/geoalgeria/issues