New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@jobuntux/psgc

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jobuntux/psgc

Philippine Standard Geographic Code (PSGC) utilities and dataset for JavaScript/TypeScript projects

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

PSGC (Philippine Standard Geographic Code)

A TypeScript-ready NPM package providing up-to-date Philippine Standard Geographic Code (PSGC) data, including Regions, Provinces, Municipalities/Cities, and Barangays, based on the official releases of the Philippine Statistics Authority (PSA).

✨ Features

  • 📦 Pre-packaged JSON data (no database setup required).
  • 🔍 Strongly typed with TypeScript.
  • 🗂️ Easy utilities to query regions, provinces, municipalities/cities, and barangays.
  • 🔄 Updated quarterly in sync with PSA’s official releases.
  • 🚀 Ready for both Node.js (backend) and modern frontend frameworks.

🗂 PSGC Code Structure

The PSA defines PSGC codes using a 10-digit format:

RR PPP MM BBB

  • RR → Region code
  • PPP → Provincial code / Highly Urbanized City (HUC) / Independent Component City (ICC) / Component City (CC)
  • MM → Municipality/City code
  • BBB → Barangay code

Derived identifiers:

  • PPPMM → Municipality/City identifier
  • PPPMMBBB → Barangay identifier

📌 Example:

  • 0434040000 → Calamba City
  • 0434040057 → Barangay Milagrosa (Tulo), Calamba City

pgsc-new-coding-structure

📥 Installation

npm install @jobuntux/psgc
# or
yarn add @jobuntux/psgc
# or
pnpm add @jobuntux/psgc

📊 Data Counts (2025-2Q)

The dataset includes:

  • 18 Regions
  • 83 Provinces (including NCR as pseudo-province)
  • 1,656 Municipalities & Cities (149 Cities, 1,493 Municipalities, 14 Sub-Municipalities)
  • 42,011 Barangays

📅 Latest Official PSGC Update

FieldDetails
TitlePhilippine Standard Geographic Code (PSGC)
OriginatorPhilippine Statistics Authority (PSA)
Publication Date30 June 2025
AbstractThe PSGC is a systematic classification and coding of geographic areas in the country based on the four hierarchical levels: region, province, city/municipality, and barangay.
ProcessUpdated based on official changes in the administrative structure of the country through Republic Acts and local ordinances ratified via plebiscites conducted by the COMELEC.
ProgressOngoing (updated quarterly)
Access ConstraintsNone
Use ConstraintsAcknowledgement of the Philippine Statistics Authority (PSA) as the source
Disclaimer- Distributed without warranty of any kind, expressed or implied.
- Responsibility for interpretation and use lies with the user.
- PSA is not liable for damages arising from its use.
Primary ContactStatistical Classifications Division (SCD), Standards Service
Contact PersonsEmerson M. Aquino / Von Jeric F. Adona / Emmanuel V. Prades
OrganizationPhilippine Statistics Authority (PSA)
Telephone(+632) 8376-1867
FaxNone
Emailscd.staff@psa.gov.ph

Source: https://psa.gov.ph/classification/psgc/

🚀 Usage

Refer to https://jobuntux.github.io/psgc/

📜 License

MIT © jobuntux

Keywords

psgc

FAQs

Package last updated on 26 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts