{"id":19572375,"url":"https://github.com/linjunpop/obsidian-badge","last_synced_at":"2025-04-27T03:33:01.328Z","repository":{"id":142554492,"uuid":"456350155","full_name":"linjunpop/obsidian-badge","owner":"linjunpop","description":"🟦 Render badges in Obsidian.md","archived":false,"fork":false,"pushed_at":"2022-05-06T00:15:50.000Z","size":263,"stargazers_count":31,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T21:11:11.892Z","etag":null,"topics":["badge","obsidian"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linjunpop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-02-07T03:53:56.000Z","updated_at":"2025-03-18T12:17:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"826210e5-080e-48f0-b8c7-7595e494dfea","html_url":"https://github.com/linjunpop/obsidian-badge","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":"obsidianmd/obsidian-sample-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linjunpop%2Fobsidian-badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linjunpop%2Fobsidian-badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linjunpop%2Fobsidian-badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linjunpop%2Fobsidian-badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linjunpop","download_url":"https://codeload.github.com/linjunpop/obsidian-badge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251085144,"owners_count":21533821,"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","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":["badge","obsidian"],"created_at":"2024-11-11T06:26:21.471Z","updated_at":"2025-04-27T03:33:01.314Z","avatar_url":"https://github.com/linjunpop.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Obsidian Badge Plugin\r\n\r\n![GitHub release badge](https://badgen.net/github/release/linjunpop/obsidian-badge)\r\n\r\nThis is a plugin to render badges in Obsidian (https://obsidian.md).\r\n\r\n## Usage\r\n\r\nThe `obsidian-badge` fenced code blocks will be rendered each line as a embed badge.\r\n\r\n```obsidian-badge\r\nReading - The Flat land: 11/23\r\n\r\nExercise: 77/100\r\n```\r\n\r\n```obsidian-badge\r\nMy Yearly plan: 29/40\r\n```\r\n\r\nwhich will render\r\n\r\n\u003cimg width=\"781\" alt=\"image\" src=\"https://user-images.githubusercontent.com/214616/164978149-e968feab-d43c-459f-9180-31ba6a8dce4e.png\"\u003e\r\n\r\n## Installation\r\n\r\n### Installing from the Obsidian App\r\n\r\nSearch \"Badge\" in Settings -\u003e Community plugins, you can find and install this plugin.\r\n\r\nYou can check https://help.obsidian.md/Advanced+topics/Third-party+plugins#Discover+and+install+community+plugins for an official guide.\r\n\r\n### Manually installing the plugin\r\n\r\nFind the latest release: https://github.com/linjunpop/obsidian-badge/releases, then copy over `main.js`, `manifest.json` to your vault's `.obsidian/plugins/obsidian-badge` directory (ex. `VaultFolder/.obsidian/plugins/obsidian-badge/`).\r\n\r\n## Development\r\n\r\nQuick starting guide for new plugin devs:\r\n\r\n- Make a copy of this repo as a template with the \"Use this template\" button (login to GitHub if you don't see it).\r\n- Clone your repo to a local development folder. For convenience, you can place this folder in your `.obsidian/plugins/your-plugin-name` folder.\r\n- Install NodeJS, then run `npm i` in the command line under your repo folder.\r\n- Run `npm run dev` to compile your plugin from `main.ts` to `main.js`.\r\n- Make changes to `main.ts` (or create new `.ts` files). Those changes should be automatically compiled into `main.js`.\r\n- Reload Obsidian to load the new version of your plugin.\r\n- Enable plugin in settings window.\r\n- For updates to the Obsidian API run `npm update` in the command line under your repo folder.\r\n\r\n### Releasing new releases\r\n\r\n- Update your `manifest.json` with your new version number, such as `1.0.1`, and the minimum Obsidian version required for your latest release.\r\n- Update your `versions.json` file with `\"new-plugin-version\": \"minimum-obsidian-version\"` so older versions of Obsidian can download an older version of your plugin that's compatible.\r\n- Create new GitHub release using your new version number as the \"Tag version\". Use the exact version number, don't include a prefix `v`. See here for an example: https://github.com/obsidianmd/obsidian-sample-plugin/releases\r\n- Upload the files `manifest.json`, `main.js`, `styles.css` as binary attachments. Note: The manifest.json file must be in two places, first the root path of your repository and also in the release.\r\n- Publish the release.\r\n\r\n\u003e You can simplify the version bump process by running `npm version patch`, `npm version minor` or `npm version major` after updating `minAppVersion` manually in `manifest.json`.\r\n\u003e The command will bump version in `manifest.json` and `package.json`, and add the entry for the new version to `versions.json`\r\n\r\n### Adding your plugin to the community plugin list\r\n\r\n- Check https://github.com/obsidianmd/obsidian-releases/blob/master/plugin-review.md\r\n- Publish an initial version.\r\n- Make sure you have a `README.md` file in the root of your repo.\r\n- Make a pull request at https://github.com/obsidianmd/obsidian-releases to add your plugin.\r\n\r\n### Manually installing the plugin\r\n\r\n- Copy over `main.js`, `styles.css`, `manifest.json` to your vault `VaultFolder/.obsidian/plugins/your-plugin-id/`.\r\n\r\n### Improve code quality with eslint (optional)\r\n\r\n- [ESLint](https://eslint.org/) is a tool that analyzes your code to quickly find problems. You can run ESLint against your plugin to find common bugs and ways to improve your code.\r\n- To use eslint with this project, make sure to install eslint from terminal:\r\n  - `npm install -g eslint`\r\n- To use eslint to analyze this project use this command:\r\n  - `eslint main.ts`\r\n  - eslint will then create a report with suggestions for code improvement by file and line number.\r\n- If your source code is in a folder, such as `src`, you can use eslint with this command to analyze all files in that folder:\r\n  - `eslint .\\src\\`\r\n\r\n### API Documentation\r\n\r\nSee https://github.com/obsidianmd/obsidian-api\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinjunpop%2Fobsidian-badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinjunpop%2Fobsidian-badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinjunpop%2Fobsidian-badge/lists"}