a Page to view some global statistics about Modrinth modrinth-statistics.tobinio.dev
TypeScript 74%
Vue 24%
Nix 1%
CSS <1%
Just <1%
<1%

README.md

Modrinth statistics #

a Page to view some global statistics about Modrinth

Deployment via Nix #

flake.nix #

inputs = {
  ...
  modrinth-statistics.url =
    "git+https://tangled.org/tobinio.dev/modrinth-statistics?ref=refs/tags/<current_version>";
  ...
};

configuration.nix #

systemd.services.modrinth-statistics = {
  description = "Modrinth Statistics";
  after = [ "network.target", "postgresql.service" ];
  wantedBy = [ "multi-user.target" ];

  serviceConfig = {
    ExecStart = "${pkgs.nodejs_24}/bin/node ${inputs.modrinth-statistics.packages.${pkgs.system}.default}/server/index.mjs";

    WorkingDirectory = "${inputs.modrinth-statistics.packages.${pkgs.system}.default}";
  };
};

.env #

# example .env
NUXT_DB_URL="postgresql://app:password@localhost:5432/app"

NUXT_NO_DB_WRITE=false
NUXT_METADATA_BASE=".data"