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

egylist

v1.0.3

Published

A package providing access to a wide range of official data related to Egypt, including universities, government entities, and other national resources. This package is designed to make it easy for developers to integrate Egypt-specific information into t

Readme

Installation

npm install egylist

Features

  • 🏛️ Complete list of Egyptian universities (40+ universities)
  • 🏢 University faculties information
  • 🗺️ All Egyptian governorates (27 governorates)
  • 🏙️ Cities data for each governorate (100+ cities)
  • 🔍 Search functionality for cities
  • 🌐 Bilingual support (Arabic & English)
  • 📍 Postal codes for governorates
  • 🏫 Public and private university classification

Usage

Import the functions

import {
  getAllUniversities,
  getFacultiesByUniversity,
  getAllGovernorates,
  getCitiesByGovernorateId,
  getAllCities,
  searchCitiesByName
} from 'egylist';

Universities

Get all universities

const universities = getAllUniversities();
console.log(universities);
// Output: ["Cairo University", "Ain Shams University", "Alexandria University", ...]

Get faculties for a specific university

const faculties = getFacultiesByUniversity('جامعة القاهرة');
console.log(faculties);
// Output: ["كلية الحاسبات والمعلومات", "كلية الهندسة", "كلية الطب", ...]

Governorates & Cities

Get all governorates

const governorates = getAllGovernorates();
console.log(governorates);
// Output: [
//   { id: 1, name_en: "Cairo", name_ar: "القاهرة" },
//   { id: 2, name_en: "Alexandria", name_ar: "الإسكندرية" },
//   ...
// ]

Get cities by governorate ID

const cities = getCitiesByGovernorateId(1); // Cairo governorate
console.log(cities);
// Output: [
//   { id: 1, name_en: "Cairo", name_ar: "القاهرة" },
//   { id: 2, name_en: "Helwan", name_ar: "حلوان" },
//   ...
// ]

Get all cities (flat list)

const allCities = getAllCities();
console.log(allCities);
// Output: Array of all cities from all governorates

Search cities by name

const searchResults = searchCitiesByName('cairo');
console.log(searchResults);
// Output: Cities matching "cairo" in English or Arabic names

const arabicSearch = searchCitiesByName('القاهرة');
console.log(arabicSearch);
// Output: Cities matching "القاهرة" in Arabic or English names

API Reference

Universities

| Function | Parameters | Returns | Description | |----------|------------|---------|-------------| | getAllUniversities() | None | string[] | Returns English names of all universities | | getFacultiesByUniversity(universityName) | universityName: string | string[] | Returns faculties for the specified university (Arabic name) |

Governorates & Cities

| Function | Parameters | Returns | Description | |----------|------------|---------|-------------| | getAllGovernorates() | None | Governorate[] | Returns all governorates with ID and bilingual names | | getCitiesByGovernorateId(governorateId) | governorateId: number | City[] | Returns cities in the specified governorate | | getAllCities() | None | City[] | Returns all cities from all governorates | | searchCitiesByName(name) | name: string | City[] | Search cities by name (supports Arabic and English) |

Data Structures

Governorate Object

{
  id: number,
  name_en: string,
  name_ar: string
}

City Object

{
  id: number,
  name_en: string,
  name_ar: string
}

University Data (Internal)

{
  name: string,          // Arabic name
  engName: string,       // English name
  type: string,          // "حكومية" (Public) or "خاصة" (Private)
  faculties: string[]    // Array of faculty names in Arabic
}

Data Coverage

Universities

  • 40+ Universities including major public and private institutions
  • Government Universities: Cairo University, Alexandria University, Ain Shams University, etc.
  • Private Universities: American University in Cairo, German University in Cairo, October 6 University, etc.
  • Faculties: Complete list of faculties for each university

Geographic Data

  • 27 Governorates covering all of Egypt
  • 100+ Cities with bilingual names
  • Postal Codes for each governorate
  • Complete Coverage from Cairo to Aswan, including Sinai and Red Sea regions

Examples

Complete Example

import {
  getAllUniversities,
  getFacultiesByUniversity,
  getAllGovernorates,
  getCitiesByGovernorateId,
  searchCitiesByName
} from 'egylist';

// Get all universities
const universities = getAllUniversities();
console.log(`Total universities: ${universities.length}`);

// Get faculties for Cairo University
const cairoUniFaculties = getFacultiesByUniversity('جامعة القاهرة');
console.log(`Cairo University has ${cairoUniFaculties.length} faculties`);

// Get all governorates
const governorates = getAllGovernorates();
console.log(`Egypt has ${governorates.length} governorates`);

// Get cities in Cairo governorate
const cairoCities = getCitiesByGovernorateId(1);
console.log(`Cairo governorate has ${cairoCities.length} cities`);

// Search for cities containing "new"
const newCities = searchCitiesByName('new');
console.log(`Found ${newCities.length} cities with "new" in the name`);

Links

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. Areas for contribution:

  • Adding more universities
  • Updating university data
  • Adding more cities
  • Improving search functionality
  • Adding tests