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. Structure
  4. Roadmap
  5. Contributing
  6. 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 and hiding location

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

v2
{
  "version": 2,  // Config version
  "mode": "ALL", // Data collecting mode [ ALL | WITHOUT_LOCATION | NOTHING ]
  "messages": {
    "infos": true,
    "warnings": true,
    "errors": true
  }
}
v1
{
    "enabled": true,      // Enable/Disable collection from our server
    "hideLocation": false // Mod not collect your IP, only country name 
}

For developers

Up-to-date guide can be found here: https://fstats.dev/getting-started

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

fStats also has Image Generator for webpages or markdown including and UI editor for it

fStats Chart

(back to top)

Structure

%%{
  init: {
    'theme': 'dark',
    'themeVariables': {
      'primaryColor': '#20242d',
      'primaryTextColor': '#ffffff',
      'primaryBorderColor': '#58a6ff',
      'lineColor': '#7d8590',
      'secondaryColor': '#20242d',
      'tertiaryColor': '#20242d'
    }
  }
}%%
graph TD
    subgraph " "
        direction LR
        subgraph "User Related"
            Frontend("Frontend")
            Minecraft("Minecraft Client")
        end

        subgraph "Core Infrastructure"
            Backend("Backend")
        end

        subgraph "Data & Caching"
            direction TB
            Kafka("Kafka")
            ClickHouse("ClickHouse")
            PostgreSQL("PostgreSQL")
            Dragonfly("Dragonfly (Redis cache)")
            ImageGenerator("Image Generator")
        end
    end


    %% Connections
    Frontend -- "REST API" <--> Backend;
    Minecraft -- "Metric POST" --> Backend;

    Backend -- "Metric POST" --> Kafka;
    Backend -- "Primary Database" <--> PostgreSQL;
    Backend -- "Metric REST" --> ClickHouse;

    Kafka -- "Kafka Engine" --> ClickHouse;

    Backend -- "REST" --> ImageGenerator;
    ImageGenerator -- "Cache" <--> Dragonfly;

    %% Styling
    style Frontend fill:#161b22,stroke:#30363d,stroke-width:2px;
    style Minecraft fill:#161b22,stroke:#30363d,stroke-width:2px;
    style Backend fill:#161b22,stroke:#58a6ff,stroke-width:2px;

    classDef data fill:#161b22,stroke:#30363d,stroke-width:2px;
    class Kafka,ClickHouse,PostgreSQL,Dragonfly,ImageGenerator data;
Loading

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

(back to top)

Roadmap

You can find the roadmap and related here: https://github.com/orgs/fStats/projects/1

(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

Localization

fStats has many modules and all of them have different ways to localize, so check the table below to find the right guide.

Module Guide
Frontend Link
Backend Unsupported
Image Generator Unsupported
Image Generator Editor Link
Minecraft API Link

(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

  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 4 1

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

    TypeScript 1

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

    TypeScript

Repositories

Showing 7 of 7 repositories

Top languages

Loading…

Most used topics

Loading…