Skip to content
@fStats

fStats

Fabric metric system for developers

Contributors Forks Stargazers Issues MIT License LinkedIn Discord Modrinth


Logo

fStats

Fabric metric system for developers
Support · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Usage
  3. Roadmap
  4. Contributing
  5. License

About The Project

Project Page Preview

fStats is a 3rd-party metric collection library. The Main idea of is help developers to recognize their actual community based on charts

(back to top)

Usage

For user

Mod have config that allows to turn off a metric collection from server and hiding location

../config/fstats-api/config.json

{
    "enabled": true,      // Enable/Disable collection from our server
    "hideLocation": false // Mod not collect your IP, only country name 
}

For developers

The first thing that you need to do is register and create a project for get projectId

After that, you are ready for adding a library as/to dependency

Java - build.gradle
repositories {
    maven {
        url "https://api.modrinth.com/maven"
    }
}

dependencies {
    // Option 1: Include fStats API to project for it to be available within your own jar (IT'S ONLY ~9KB!)
    include(modImplementation("maven.modrinth:fstats:<version>")

    // Option 2: Depend on fStats API, but require that users install it manually
    modImplementation "maven.modrinth:fstats:<version>"
}
Kotlin - build.gradle.kts
repositories {
    maven("https://api.modrinth.com/maven")
}

dependencies {
    // Option 1: Include fStats API to project for it available within your own jar IT'S ONLY ~9KB!
    include(modImplementation("maven.modrinth", "fstats", "<version>"))

    // Option 2: Depend on fStats API, but require that users install it manually
    modImplementation("maven.modrinth", "fstats", "<version>")
}

fabric.mod.json

"suggests": {
    "fstats-api": "*"
}

Setup project

fabric.mod.json

"custom": {
    "fstats": <projectId>
}

Done, now when any server uses your mod and if they don't disable fStats, you are going to get data about that on website

Also, recommend adding the badge to your project description to notify users that you collect information.

Resize the badge to any size that you want Badge

Service also has chart image generation for webpages or markdown including

Example URL: https://img.fstats.dev/timeline/1?format=svg&mode=week&theme=light fStats Chart

(back to top)

Roadmap

mindmap
  root((Roadmap))
    Backend
      OpenAPI Documentation
      Better API routes
      Support for client side mods
    Frontend
      Minimal site
      OG Images
      Charts SVG for Markdown
    Mobile
      Charts Viewing
      Registration
      Project creation
      Favorite projects
    API
      Client Side Module
      Server Side Module
Loading

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project 2. Create your Feature Branch (git checkout -b feature/AmazingFeature) 3. Commit your Changes (git commit -m 'Add some AmazingFeature') 4. Push to the Branch (git push origin feature/AmazingFeature) 5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Pinned Loading

  1. fstats-frontend fstats-frontend Public

    Fabric stats metric collection front-end on React

    TypeScript 1

  2. fstats-backend fstats-backend Public

    Fabric stats metric collection back-end on Ktor

    Kotlin

  3. fstats-api fstats-api Public

    Fabric stats metric collection lib

    Java 3 1

  4. fstats-image-generator fstats-image-generator Public

    TypeScript

  5. fstats-image-generator-editor fstats-image-generator-editor Public

    TypeScript

Repositories

Showing 7 of 7 repositories
  • fstats-frontend Public

    Fabric stats metric collection front-end on React

    fStats/fstats-frontend’s past year of commit activity
    TypeScript 0 MIT 1 8 0 Updated Nov 4, 2024
  • fstats-mobile Public archive

    Metric in pocket

    fStats/fstats-mobile’s past year of commit activity
    Kotlin 0 MIT 0 0 0 Updated Nov 3, 2024
  • fStats/fstats-image-generator’s past year of commit activity
    TypeScript 0 0 0 0 Updated Sep 19, 2024
  • fstats-backend Public

    Fabric stats metric collection back-end on Ktor

    fStats/fstats-backend’s past year of commit activity
    Kotlin 0 MIT 0 5 0 Updated Sep 19, 2024
  • fstats-api Public

    Fabric stats metric collection lib

    fStats/fstats-api’s past year of commit activity
    Java 3 MIT 1 0 0 Updated Sep 19, 2024
  • fStats/fstats-image-generator-editor’s past year of commit activity
    TypeScript 0 0 0 0 Updated Dec 28, 2023
  • .github Public
    fStats/.github’s past year of commit activity
    0 0 0 0 Updated Nov 24, 2023

Top languages

Loading…

Most used topics

Loading…