Skip to content

creeperkatze/modfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

256 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Generate fast, beautiful and consistent embeddable cards and badges for Modrinth, CurseForge, Hangar and Spigot content.

Better Stack Badge GitHub Issues GitHub Pull Requests GitHub Repo stars

Quick Start

Use the Website to visually configure and preview your embeds. The api docs can be found at here.

Examples:

Mod Menu GeckoLib SimpleVoiceChat LuckPerms

Endpoints

Base URL: https://modfolio.creeperkatze.de

Pattern: /<platform>/<entity-type>/<identifier>?<option>=<value>

Cards

Rich cards showing stats, versions, projects, and activity sparklines.

Modrinth

Card Type Path Example
Project /modrinth/project/<slug> Mod Menu
User /modrinth/user/<username> Prospector
Organization /modrinth/organization/<slug> CaffeineMC
Collection /modrinth/collection/<id> Featured - Vol. 38

CurseForge

Card Type Path Example
Project /curseforge/project/<id> GeckoLib
User /curseforge/user/<id> Gecko

Hangar

Card Type Path Example
Project /hangar/project/<slug> SimpleVoiceChat
User /hangar/user/<username> henkelmax

Spigot

Card Type Path Example
Resource /spigot/resource/<id> LuckPerms
Author /spigot/author/<id> Luck

Card Options

Parameter Description Default
color Accent color (hex) Platform default
backgroundColor Background color (hex) transparent
showProjects Show top projects section true
showVersions Show versions section true
maxProjects Max projects to display (1-10) 5
maxVersions Max versions to display (1-10) 5
relativeTime Show relative time for dates true
showSparklines Display activity sparklines true

Platform defaults: Modrinth #1bd96a | CurseForge #F16436 | Hangar #3371ED | Spigot #E8A838

Badges

Pattern: /<platform>/<entity-type>/<identifier>/<metric>?<option>=<value>

Compact badges showing a single metric.

Modrinth

Badge Path Example
Downloads /modrinth/<type>/<id>/downloads Mod Menu
Followers /modrinth/<type>/<id>/followers Mod Menu
Versions /modrinth/<type>/<id>/versions Mod Menu
Projects /modrinth/<type>/<id>/projects Prospector

CurseForge

Badge Path Example
Downloads /curseforge/<type>/<id>/downloads GeckoLib
Rank /curseforge/project/<id>/rank GeckoLib
Files /curseforge/project/<id>/versions GeckoLib
Projects /curseforge/user/<id>/projects Gecko
Followers /curseforge/user/<id>/followers Gecko

Hangar

Badge Path Example
Downloads /hangar/<type>/<id>/downloads SimpleVoiceChat
Stars /hangar/project/<id>/stars henkelmax
Versions /hangar/project/<id>/versions SimpleVoiceChat
Views /hangar/project/<id>/views SimpleVoiceChat
Projects /hangar/user/<id>/projects henkelmax

Spigot

Badge Path Example
Downloads /spigot/<type>/<id>/downloads LuckPerms
Likes /spigot/<type>/<id>/likes LuckPerms
Rating /spigot/<type>/<id>/rating LuckPerms
Versions /spigot/project/<id>/versions LuckPerms
Resources /spigot/author/<id>/resources Luck

Badge Options

Parameter Description Default
color Accent color (hex) Platform default
backgroundColor Background color (hex) transparent
format Output format (svg / png) svg

Platform Defaults

Platform Accent color (hex)
Modrinth #1bd96a
CurseForge #F16436
Hangar #3371ED
Spigot #E8A838

Development

Prequisites

  • Node.js
  • pnpm

Installation

# Clone the repository
git clone https://github.com/creeperkatze/modrinth-embeds.git
cd modrinth-embeds

# Install dependencies
pnpm install

# Start development server
pnpm dev

Environment Variables

Copy the .env.example file and rename it to .env.

Contributing

Contributions are always welcome!

Please ensure you run pnpm lint before opening a pull request.

License

AGPL-3.0