An open API service indexing awesome lists of open source software.

https://github.com/jpenilla/squaremap

squaremap is a minimalistic and lightweight world map viewer for Minecraft servers, using the vanilla map rendering style
https://github.com/jpenilla/squaremap

fabric-mod map minecraft-mod minecraft-plugin neoforge-mod paper-plugin sponge-plugin squaremap

Last synced: 20 days ago
JSON representation

squaremap is a minimalistic and lightweight world map viewer for Minecraft servers, using the vanilla map rendering style

Awesome Lists containing this project

README

        

# squaremap

[![License](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/jpenilla/squaremap/build.yml?branch=master)](https://github.com/jpenilla/squaremap/actions)
[![Discord](https://img.shields.io/discord/390942438061113344?color=8C9CFE&label=discord&logo=discord&logoColor=white)](https://discord.gg/PHpuzZS)

## What is squaremap

squaremap is a minimalistic and lightweight live world map viewer for Minecraft servers.

squaremap hooks into your Minecraft server as a plugin or mod on a [supported platform](#supported-platforms), then generates and manages a live map of your server, viewable in any web browser.

## Features

* Ultra fast render times. Get your map rendered today, not next week.
* Simple vanilla-like top down 2D view, designed for navigation.
* Player markers showing yaw rotation, health, and armor.
* Easy to [setup](https://github.com/jpenilla/squaremap/wiki/Installation) and [configure](https://github.com/jpenilla/squaremap/wiki/Default-config.yml).
* Up to date Leaflet front-end.
* [Addons and integrations](https://github.com/jpenilla/squaremap/wiki/Addons) for many popular plugins.

## Supported platforms

- [Paper](https://papermc.io/)
- [Fabric](https://fabricmc.net/) (requires [Fabric API](https://modrinth.com/mod/fabric-api))
- [NeoForge](https://neoforged.net/)
- [Sponge](https://www.spongepowered.org/)

## Downloads

Downloads can be obtained from the [releases](https://github.com/jpenilla/squaremap/releases) section.

Development builds

> Development builds are available at https://jenkins.jpenilla.xyz/job/squaremap/

## Demo

Official squaremap demo: https://squaremap-demo.jpenilla.xyz/

## License

This project is licensed under the [MIT license](https://github.com/jpenilla/squaremap/blob/master/LICENSE)

Leaflet (the web ui frontend) is licensed under [2-clause BSD License](https://github.com/Leaflet/Leaflet/blob/master/LICENSE)

## API

squaremap provides simple APIs to draw markers, shapes, icons, and etc. on rendered maps. Javadocs are hosted on the maven repository alongside the binaries, and should be automatically downloaded by your IDE.

### Dependency Information

Releases are published to Maven Central

Using snapshot builds

> Snapshot builds are available on the Sonatype snapshots maven repository: `https://s01.oss.sonatype.org/content/repositories/snapshots/`
>
> Consult your build tool's documentation for details on adding maven repositories to your project.

Maven
```xml

xyz.jpenilla
squaremap-api
1.3.5
provided

```

Gradle
```kotlin
repositories {
mavenCentral()
}

dependencies {
compileOnly("xyz.jpenilla", "squaremap-api", "1.3.5")
}
```

## Develop

### Prerequisites and setup
- An up-to date JDK (i.e. Java 21 or later)
- [Bun](https://bun.sh/) installed for building the web UI
- Run `bun install` in the `web` directory to install the web UI dependencies

### Plugin

Build squaremap by invoking the `build` task with Gradle.

```
./gradlew build
```

### Web UI

The web UI will be automatically built and included in the plugin jar by Gradle when building the plugin.

When using the various run tasks (i.e. `:squaremap-paper:runServer`), Gradle will pass the
`squaremap.devFrontend=true` and `squaremap.frontendPath=` system properties to
the server. When these properties are present, the plugin will attempt to run the Vite dev server and
proxy requests to it. This allows hot module reloading to work when developing the web UI.

## bStats

Usage stats for the Paper platform

[![bStats Graph Data](https://bstats.org/signatures/bukkit/squaremap.svg)](https://bstats.org/plugin/bukkit/squaremap/13571)