π 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
π¦ Installation
Install the package from npm:
npm install @olism/bd-geo
Or with Yarn:
yarn add @olism/bd-geo
π 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.