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

mundus-meus

v0.1.2

Published

Leaflet.js & Angular.js mapping tool for finding entities based on your location.

Readme

Mundus Meus 0.1.0

Description

Mundus Meus allows you to plot the locations of entities. It then allows the end user to specify their location (with optional auto-detection), and it then maps places of interest close to them.

In the example we're using Tescos. If you specify your location, the application will notify you of Tescos within close proximity to you.

The REALLY good thing about Mundus Meus is that it's written for developers to extend! It's written in beautiful OOP – PHP5 and AngularJS, and therefore is crying out to be extended in any way a developer sees fit. However, for those wanting to get started quickly, all you need to do is clone the example and style as necessary.

API

Mundus Meus defines two API routes:

  • api/Geolocate/Nottingham – Discovers the latitude/longitude for Nottingham;
  • api/Search/52.95385025/-1.1698803748747/10 – Searches for entities around the lat/long – optional radius in miles.

Please note: the aforementioned routes require MOD_REWRITE to be enabled – AllowOverride also needs to be set to All in order for the routes to resolve correctly.

Technologies

  • Angular.js: Utilised for the front-end example and API;
  • Nominatim API: For resolving places to latitude/longitude values;
  • PHP Router: Laravel inspired PHP router;
  • LESS: Preprocessor for more organised stylesheets;
  • Leaflet.js: For all of the mapping functionality;
  • Grunt.js: Build process for the JavaScript/LESS/HTML;

Getting Started

Installing Mundus Meus' dependencies requires npm – running npm install will install all dependencies as taken from the package.json file.

If you wish to create a build yourself then you'll need to install Grunt.js – you can create a build by issuing the grunt command.

Adding a Service

As you're probably not wanting to map Tescos stores, Mundus Meus allows you to add your very own services very easily. Please follow the step-by-step guide:

  • Create a new service class in api/Service – call it Service_Halfords;
  • Change the $_map property to map the properties from the API to name, latitude, longitude, et cetera...;
  • Modify the API_URL constant to the Halfords store location URL (database interface coming shortly);
  • Implement the _parseData hook which allows you to parse the idiosyncratic response from the API;
  • Open Default.php and change the getService method to the name (without prefix) of your new service – Halfords;

Mundus Meus uses the template method pattern and therefore if you're overwriting methods from the abstract and then calling super, you're doing something wrong.

Etymology

You're probably wondering, so we'll spill the beans! Mundus Meus is Latin for My World. We considered calling it Meus Mundus Parvus (My Little World), but frankly, that's a little too long for comfort.