Macros
Nutrition and food tracker for your notes. Log meals, calories, macros and micronutrients. Search foods by name or barcode via FatSecret, USDA & Open Food Facts. Chart your diet & weight loss.
The above warnings are based on limited information and might not always be accurate.
Data
| ID | macros |
| Author | jamescliffordspratt |
| Funding | Support the Author |
| Minimum Obsidian Version | 1.5.7 |
| Official Release Date | 2025-04-17 |
| Last update | 2026-06-30 |
Last Refresh
Obsidian Stats last refreshed the data behind this page on Jul 13, 2026.
| Community plugin snapshot | Jul 13, 2026 |
| Repository clone | last successful checkout Jul 6, 2026 |
| Release acquisition | release metadata checked Jul 6, 2026; latest main.js acquired |
Quick Links
- GitHub Repo
- View in Obsidian
- View on Obsidian Community
- View on the Obsidian Hub
- Author Website
- Support the Author
Changes
| Date | Changed Property | Old Value | New Value |
|---|---|---|---|
| 2025-04-17 | Plugin Added | ||
| 2025-04-17 | description | Advanced nutrition tracking with dynamic macros blocks, FatSecret integration, and pie chart visualizations. | Advanced nutrition tracking with dynamic macros blocks and pie chart visualizations. |
| 2025-04-17 | repo | JamesCliffordSpratt/obsidian-macros-plugin | JamesCliffordSpratt/macros |
| 2025-04-17 | description | Advanced nutrition tracking with dynamic macros blocks and pie chart visualizations. | Advanced nutrition tracking with dynamic macros blocks and pie chart visualizations. |
| 2025-04-17 | description | Advanced nutrition tracking with dynamic macros blocks and pie chart visualizations. | Advanced nutrition tracking with dynamic macros blocks and pie chart visualizations. |
| 2025-05-21 | author | JamesCliffordSpratt | James Clifford Spratt |
| 2025-05-21 | description | Advanced nutrition tracking with dynamic macros blocks and pie chart visualizations. | Track and visualize your daily macros, meals and nutrition inside your notes. |
| 2025-06-04 | Plugin Removed | ||
| 2025-06-16 | Plugin Re-Added | ||
| 2026-05-12 | author | James Clifford Spratt | jamescliffordspratt |
| 2026-05-12 | repo | JamesCliffordSpratt/macros | jamescliffordspratt/macros |
| 2026-06-30 | description | Track and visualize your daily macros, meals and nutrition inside your notes. | Nutrition and food tracker for your notes. Log meals, calories, macros and micronutrients. Search foods by name or barcode via FatSecret, USDA & Open Food Facts. Chart your diet & weight loss. |
Repository Data
| License | MIT in package.json MIT in LICENSE file |
| Package Manager | npm |
| Uses Typescript | Yes |
| Installed Bundlers | esbuild |
| Installed Testing Frameworks | Jest |
| Has Test Files | No |
Latest Release main.js Size | 1.20 MB |
| Detected ES Version | ES2018 |
| Probably Minified | Yes |
| main.js API Findings | 4 disclosures |
| Uses BRAT beta releases | No |
| Dependencies | @zxing/browser, @zxing/library, chart.js, fuse.js |
| Dev Dependencies | @testing-library/dom, @types/jest, @types/node, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, esbuild, eslint, eslint-config-prettier, eslint-plugin-obsidianmd, eslint-plugin-prettier, eslint-plugin-unused-imports, jest, jest-environment-jsdom, obsidian, prettier, standard-version, ts-jest, tslib, typescript |
main.js API Findings
These conservative findings come from static analysis of the latest release main.js. The table includes warnings and high-confidence informational findings; lower-confidence informational findings are omitted to reduce false positives. Warnings indicate usage of potentially risky APIs, but such APIs can be used safely if handled with care.
| Disclosure | Detected From |
|---|---|
| Full Vault Access | Enumerates vault files |
| Global Handlers Or Timers | Registers events, DOM handlers, or intervals |
| Permission Sensitive Browser Api | Uses permission-sensitive browser APIs |
| Vault File Write | Writes vault files |
| Finding | Type | Confidence | Evidence |
|---|---|---|---|
| Uses permission-sensitive browser APIs | Warning | High | navigator.mediaDevices.getUserMedia (7) |
| Registers events, DOM handlers, or intervals | Info | High | setTimeout (8), this.registerDomEvent (4) |
| References URLs or constructs URL objects | Info | High | http:// (4), https:// (28), URLSearchParams (5) |
| Persists plugin settings or data | Info | High | this.loadData (5), this.saveData (1) |
| Registers plugin settings UI | Info | High | Setting (68), obsidian.Setting (68) |
| Accesses Obsidian vault APIs | Info | High | app.vault (10) |
| Accesses vault folders | Info | High | app.vault.getFolderByPath (1), app.vault.getRoot (1) |
| Enumerates vault files | Info | High | app.vault.getFiles (4) |
| Writes vault files | Info | High | app.vault.create (1), app.vault.createFolder (1) |
The above data may not be accurate and contain errors. For more information refer to the page about data collection.
Lines of Code
The plugin has a total of 26340 lines of code. The following chart shows the lines of code split by programming language.
Downloads
The following chart shows the total number of downloads of the plugin over time. The second chart shows the delta of downloads per week, which is the number of new downloads per week. New version releases are marked with vertical lines.
Version History
| Version | Release Date | Note |
|---|---|---|
| 1.0.0 | 2025-04-17 | None |
| 2.0.0 | 2025-05-21 | None |
| 2.0.3 | 2025-06-19 | None |
| 2.0.5 | 2025-06-22 | None |
| 2.0.6 | 2025-06-24 | None |
| 2.0.9 | 2025-06-25 | None |
| 2.0.10 | 2025-06-25 | None |
| 2.1.1 | 2025-07-06 | None |
| 2.2.0 | 2025-07-09 | None |
| 2.2.1 | 2025-07-10 | None |
| 2.3.0 | 2025-07-14 | None |
| 2.3.1 | 2025-07-17 | None |
| 2.4.0 | 2025-10-18 | None |
| 2.5.0 | 2026-06-12 | None |
| 2.5.1 | 2026-06-13 | None |
| 2.6.0 | 2026-06-20 | None |
| 2.6.1 | 2026-06-28 | None |
| 2.6.2 | 2026-06-29 | None |
| 2.6.3 | 2026-06-30 | None |