Skip to content

creeperkatze/modfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

315 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 Branch Check Runs GitHub Issues GitHub Pull Requests GitHub Repo stars Crowdin

πŸš€ 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
showDownloadBars Display download bars true
showBorder Show card border true
showSummary Show description/bio text false
animations Enable animations true
format Output format (svg / png) svg
projectType Filter projects by type (Modrinth: mod, plugin, datapack, etc. CurseForge: class ID) null

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
Versions /hangar/project/<id>/versions SimpleVoiceChat
Views /hangar/project/<id>/views SimpleVoiceChat
Stars /hangar/user/<username>/stars henkelmax
Projects /hangar/user/<username>/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
Rating /spigot/author/<id>/rating Luck

Badge Options

Parameter Description Default
color Accent color (hex) Platform default
backgroundColor Background color (hex) transparent
showIcon Show the platform icon true
showBorder Show badge border true
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/modfolio.git
cd modfolio

# Install dependencies
pnpm install

# Start development server
pnpm dev

Environment Variables

Copy apps/backend/.env.example and rename it to apps/backend/.env.

🌐 Translating

Translations are managed on Crowdin. You can contribute without any technical knowledge, just pick your language and start translating.

New translations are automatically pulled every Monday.

Contributors ❀️

Language Translators
Italian emanuelplaysofficial

🀝 Contributing

Contributions are always welcome!

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

πŸ“œ License

AGPL-3.0