Skip to content
MHCommunityPublic

About

MouseHunt Guides, Tools, and Resources - https://mouse.rip

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

MouseHunt Guides, Tools, and Resources - mouse.rip

MIT License Build Status Discord

About

This is the repository powering mouse.rip.

Getting started

First, clone the project locally:

  git clone https://github.com/MHCommunity/mouse.rip.git mouse-rip

Next, change to the project directory:

  cd mouse-rip

Install the dependencies with Bun:

  bun install

Finally, run the development server:

  bun run dev

The site runs at http://localhost:3000 and reloads when you make changes.

When you're finished, run lint, formatting, and TypeScript checks:

  bun run check

Use bun run format to apply formatting and bun run build to verify production page generation.

Mouse, item, group, location, and tool pages link to a social card that /og/card draws on request. The site signs those links and the route only draws signed ones, so a production build needs OG_CARD_SECRET set to a long random string, both when the pages are built and in the deployed Worker. An .env.local covers both when you deploy from your own machine. Without it everything still works: those pages use the site-wide card, and bun run dev signs with a stand-in key.

Then open a pull request.

Updating the content

The site's data comes from the src/data directory.

Run bun run update:data to refresh the generated game data. The updater validates the responses before replacing the existing snapshots. Item contents, drop rates, and mouse attraction and map data are included in the generated pages; marketplace prices are fetched live in the browser.

Images are served from i.mouse.rip. bun run update:images adds any the data uses that aren't there yet, and needs access to it. bun run update refreshes the data first, then updates the images.

Discussion and feedback

To suggest a change, open an issue or a pull request. For questions, or if you'd rather not use GitHub, ask in the #community-tools channel on the MouseHunt Community Discord server.

License

This project is licensed under the MIT License.

About

MouseHunt Guides, Tools, and Resources - https://mouse.rip

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages