{"id":16157228,"url":"https://github.com/hans5958/premid-mts","last_synced_at":"2026-05-17T15:40:59.921Z","repository":{"id":107951238,"uuid":"263650262","full_name":"Hans5958/PreMiD-MTS","owner":"Hans5958","description":":heavy_check_mark: PreMiD Presence Metadata Test Suite, a tool for testing \"metadata.json\" files on https://github.com/PreMiD/Presences.","archived":false,"fork":false,"pushed_at":"2020-07-12T06:12:44.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T01:28:24.552Z","etag":null,"topics":["bash","bash-script","cli","cli-app","cli-tool","cli-utilities","premid","script","shell","shell-script","tool","utility"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hans5958.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-05-13T14:15:55.000Z","updated_at":"2020-07-12T06:04:48.000Z","dependencies_parsed_at":"2023-03-30T12:20:34.718Z","dependency_job_id":null,"html_url":"https://github.com/Hans5958/PreMiD-MTS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hans5958/PreMiD-MTS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hans5958%2FPreMiD-MTS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hans5958%2FPreMiD-MTS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hans5958%2FPreMiD-MTS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hans5958%2FPreMiD-MTS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hans5958","download_url":"https://codeload.github.com/Hans5958/PreMiD-MTS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hans5958%2FPreMiD-MTS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278343072,"owners_count":25971399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","bash-script","cli","cli-app","cli-tool","cli-utilities","premid","script","shell","shell-script","tool","utility"],"created_at":"2024-10-10T01:48:54.173Z","updated_at":"2025-10-04T16:41:30.011Z","avatar_url":"https://github.com/Hans5958.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PreMiD Presence Metadata Test Suite\n\nPreMiD Presence Metadata Test Suite (PreMiD-MTS) is a script/tool that is developed to test a presence's metadata (``metadata.json``) on [PreMiD/Presences](https://github.com/PreMiD/Presences). The ``metadata.json`` files consist various information related to a presence.\n\nThe motive behind this project is some unfortunate events on PreMiD that is caused by human error. One example is a presence developer made a mistake on their metadata. This, for some reason, crashes the whole store. Another one is when I developed [my own presence stats dashboard thing](https://mini.hans5958.me/premid-presence-stats). It is occassional to see either someone typed the wrong category (``others`` instead of ``other``), the wrong language (``ja`` instead of ``ja_JP``), etc.\n\nWith that reasoning, I developed this test suite so developers can mitigate such events, and for make the staff team's jobs easier.\n\nThis is also a PoC that it is possible to integrate metadata checking by using continuous integration (Travis CI, GitHub Actions, etc), and my first attempt to develop a software (well, it's just a script, but...) using shell/bash/*nix script and a proper version control.\n\n## Requirements\n\n- A Linux/*nix enviroment.  \n  I use WSL (the Ubuntu one) to developing this tool, so any Linux enviroment should work. This has not been tested in native Linux enviroment, however.\n- [jq](https://stedolan.github.io/jq), for reading JSON files.\n\n## Installation\n\nJust download the latest release [here](https://github.com/Hans5958/PreMiD-MTS/releases). \n\nThe ``.sh`` file includes the **main** variant of the program, and the ``.zip`` files includes the **main** and [**TAP**](https://en.wikipedia.org/wiki/Test_Anything_Protocol) variants.\n\nOnly use the [TAP](https://en.wikipedia.org/wiki/Test_Anything_Protocol) variant if you know what you are doing.\n\n## Usage\n\n```\nUsage: premid-mts.sh [-hovrn] [--help] [--offline] [--verbose] [--results] [--no-ansi] path\n\npath                Path to the presence folder OR the metadata.json file.\n-h/--help           Print this help text.\n-o/--offline        Use offline mode.\n-v/--verbose        Print the logs with more information.\n-r/--results        Print only the results.\n-n/--no-ansi        Print the logs without ANSI codes for viewing in text editors. Slower.\n```\n### Examples\n```bash\n$ bash premid-mts.sh GitHub\n$ bash premid-mts.sh --offline Twitch/dist/metadata.json\n$ bash premid-mts.sh --results websites/Y/YouTube\n$ bash premid-mts.sh -ov DeviantArt\n```\n\n\n## License\n\nPreMiD Presence Metadata Test Suite (PreMiD-MTS) is licensed under the terms of [Mozila Public License 2.0](https://github.com/Hans5958/PreMiD-MTS/blob/master/LICENSE.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhans5958%2Fpremid-mts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhans5958%2Fpremid-mts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhans5958%2Fpremid-mts/lists"}