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

mizanur-bd-geo-selector

v1.0.2

Published

Get all 8 divisions, 64 districts, and upazilas/thanas of Bangladesh for dynamic dropdowns.

Readme

🇧🇩 mizanur-bd-geo-selector


✨ Features

  • 🚀 Zero Dependencies — Lightweight and extremely fast.
  • 📦 Offline First — All data is bundled locally. No API calls required.
  • 🌐 Bilingual Support — Includes both English and Bangla (বাংলা) names.
  • 🗺️ Complete Bangladesh Geography
    • 8 Divisions
    • 64 Districts
    • All Upazilas and Thanas
  • Framework Agnostic — Works with React, Next.js, Vue, Angular, and Vanilla JavaScript.
  • 🧩 Perfect for Cascading Dropdowns — Ideal for forms and address selectors.
  • 🔒 Reliable Static Data — Consistent and predictable results.

📦 Installation

Install via npm:

npm install mizanur-bd-geo-selector

Or using Yarn:

yarn add mizanur-bd-geo-selector

Or using pnpm:

pnpm add mizanur-bd-geo-selector
🚀 Quick Start
import {
  getAllDivisions,
  getDistrictsByDivision,
  getUpazilasByDistrict,
} from 'mizanur-bd-geo-selector';

// Get all divisions
const divisions = getAllDivisions();

// Get all districts in Dhaka Division
const districts = getDistrictsByDivision("1");

// Get all upazilas/thanas in Dhaka District
const upazilas = getUpazilasByDistrict("101");
📚 API Reference
getAllDivisions()

Returns an array containing all 8 divisions of Bangladesh.

import { getAllDivisions } from 'mizanur-bd-geo-selector';

const divisions = getAllDivisions();

console.log(divisions);
/*
[
  {
    id: "1",
    name: "Dhaka",
    bn_name: "ঢাকা"
  },
  {
    id: "2",
    name: "Chattogram",
    bn_name: "চট্টগ্রাম"
  }
]
*/
getDistrictsByDivision(divisionId)

Returns all districts under a specific division.

Parameters
Parameter	Type	Description
divisionId	string	The ID of the division
Example
import { getDistrictsByDivision } from 'mizanur-bd-geo-selector';

const districts = getDistrictsByDivision("1"); // Dhaka Division

console.log(districts);
/*
[
  {
    id: "101",
    division_id: "1",
    name: "Dhaka",
    bn_name: "ঢাকা"
  },
  {
    id: "102",
    division_id: "1",
    name: "Gazipur",
    bn_name: "গাজীপুর"
  }
]
*/
getUpazilasByDistrict(districtId)

Returns all upazilas and thanas under a specific district.

Parameters
Parameter	Type	Description
districtId	string	The ID of the district
Example
import { getUpazilasByDistrict } from 'mizanur-bd-geo-selector';

const upazilas = getUpazilasByDistrict("101"); // Dhaka District

console.log(upazilas);
/*
[
  {
    id: "1001",
    district_id: "101",
    name: "Mirpur",
    bn_name: "মিরপুর"
  },
  {
    id: "1002",
    district_id: "101",
    name: "Uttara",
    bn_name: "উত্তরা"
  }
]
*/
🧱 Data Structure
Division
{
  id: string,
  name: string,
  bn_name: string
}
District
{
  id: string,
  division_id: string,
  name: string,
  bn_name: string
}
Upazila / Thana
{
  id: string,
  district_id: string,
  name: string,
  bn_name: string
}
💡 Use Cases
Registration Forms
Checkout Address Selectors
Delivery Applications
Government Portals
CRM Systems
School Management Software
Contact Forms
⚛️ Framework Compatibility
✅ React
✅ Next.js
✅ Vue.js
✅ Nuxt.js
✅ Angular
✅ Svelte
✅ Vanilla JavaScript
✅ Node.js
📈 Why Choose mizanur-bd-geo-selector?
No external API dependency
Instant data access
Works offline
Supports Bangla and English
Minimal package size
Easy to integrate
Production ready
🤝 Contributing

Contributions are welcome!

Fork the repository
Create your feature branch
Commit your changes
Push to your branch
Open a Pull Request
📄 License

Licensed under the MIT License.

👨‍💻 Author

Mizanur Rahman

Made with ❤️ in Bangladesh 🇧🇩