DEV Community

Md. Oliullah Sarder
Md. Oliullah Sarder

Posted on

πŸ‡§πŸ‡© Introducing @olism/bd-geo β€” Bangladesh Geographic Data for JavaScript & TypeScript

πŸš€ I'm excited to share my new open-source npm package: @olism/bd-geo.

@olism/bd-geo is a JavaScript/TypeScript package that provides structured geographical data for Bangladesh, including divisions, districts, upazilas/thanas, areas, and villages.

The goal is simple: make it easier for developers to work with Bangladesh's geographical hierarchy without having to maintain their own datasets.

✨ What is @olism/bd-geo?

When building applications that need Bangladesh-specific location data, developers often have to find, clean, structure, and maintain geographical datasets themselves.

This package provides that data in a developer-friendly structure that can be used directly in JavaScript and TypeScript projects.

πŸ—ΊοΈ What's Included?

The package currently provides geographical data such as:

  • πŸ‡§πŸ‡© Divisions
  • πŸ“ Districts
  • 🏘️ Upazilas / Thanas
  • πŸ“Œ Areas
  • 🏑 Villages

This makes it suitable for applications that need hierarchical location data.

πŸ’‘ Potential Use Cases

@olism/bd-geo can be useful for many types of applications, including:

  • πŸ“ Address and location forms
  • πŸ›’ E-commerce and delivery systems
  • 🏠 Real-estate applications
  • πŸ—ΊοΈ Location-based applications
  • πŸ—„οΈ Database seeding
  • πŸ“Š Data visualization
  • πŸ”Ž Location search and filtering

For example, an address form could use the geographical hierarchy to let users select:

Division
   ↓
District
   ↓
Upazila / Thana
   ↓
Area / Village
Enter fullscreen mode Exit fullscreen mode

πŸ“¦ Installation

Install the package from npm:

npm install @olism/bd-geo
Enter fullscreen mode Exit fullscreen mode

Or with Yarn:

yarn add @olism/bd-geo
Enter fullscreen mode Exit fullscreen mode

πŸš€ Why I Built It

I wanted to make Bangladesh geographical data easier to consume for developers building real-world applications.

Instead of every project maintaining its own copy of Bangladesh's location data, a reusable package can provide a common structure that developers can work with directly.

There is still plenty of room to improve the dataset, APIs, documentation, and developer experience β€” and that's where community feedback can make a big difference.

πŸ”— Links

πŸ“¦ NPM: https://www.npmjs.com/package/@olism/bd-geo

πŸ’» GitHub: https://github.com/mohammad-oliullah/bd-geo

🀝 Contributions & Feedback

The project is open source, and I'd love to hear your feedback, suggestions, bug reports, and ideas for improvement.

If you work with Bangladesh-specific applications and have ideas for useful geographical features or datasets, feel free to contribute or open an issue.

Every contribution and suggestion is welcome. πŸ™Œ


If you find the package useful, consider ⭐ starring the repository on GitHub and sharing it with other developers working on Bangladesh-focused applications.

Top comments (0)