Description

Normalize caliber names, insert cost per round for ammo and add range log tables to your notes. Works offline.

Additional Information

Links:
Maintainers: gunsnprices
Version:0.1.0
Minimum app version:3.1
Downloads: This version:0
Last updated:2026-12-01T00:26:43Z

GunsNPrices for Joplin

Three commands for gun and ammo notes in Joplin: clean up caliber names, add cost per round to ammo lines, and insert a range log table. Write product titles the way stores write them; the plugin reads brand, model, caliber and rounds per box from them.

It runs the gunsnprices title parser, the one behind the price comparison site GunsNPrices, entirely inside Joplin. No account, no API key, and it works offline.

Commands

All three are in Tools → GunsNPrices, in the command palette (Ctrl/Cmd+Shift+P) and, for the first two, in the editor's right-click menu. They have no default shortcuts; set yours in Options → Keyboard Shortcuts.

Normalize caliber in selection

Select caliber names and run the command. Each line, table cell or comma-separated item that is only a caliber is rewritten to one standard name out of 293 calibers:

Selected Becomes
9mm Luger 9×19mm Parabellum
300 BLK .300 AAC Blackout
caliber: 6.5 CM caliber: 6.5mm Creedmoor
| 7.62x39 | 30-06 | | 7.62x39mm | .30-06 Springfield |

Text that holds more than a caliber, such as 9mm 115gr FMJ or 9mm +P, is left alone, so the command never drops words.

Insert cost per round

Select one or more ammo lines that have a price, and the command appends the cost per round to each:

Federal 9mm 115gr FMJ 50rd $18.99            →  Federal 9mm 115gr FMJ 50rd $18.99 — $0.38/rd
Winchester 9mm 1000 Round Case $289.99       →  Winchester 9mm 1000 Round Case $289.99 — $0.29/rd

The round count is read from the line (50rd, 20 rounds, box of 25, 1000 Round Case, 50/box); the price is the one with a currency symbol ($18.99, 18.99 USD, or your own symbol from the settings). Lines that already end in /rd are skipped.

With nothing selected, or a selection without a price, a small dialog asks for the price, the rounds in the box and an optional ammo name, then inserts a line such as $289.99 / 1,000 rounds = $0.29/rd at the cursor.

Range log table

Inserts a Markdown table at the cursor:

Date Firearm Caliber Ammo Rounds Distance Notes
2026-11-30

Select a firearm title first (Glock 19 Gen 5 MOS 9mm 4.02in 15rd) and the Firearm and Caliber cells are filled in (Glock 19 Gen 5 MOS, 9×19mm Parabellum); select an ammo title and Ammo, Caliber and Rounds are filled in. Add rows with Joplin's own table commands.

Settings

Options → GunsNPrices:

  • Currency symbol (default $): shown before prices and cost per round. Prices in notes are read with this symbol or with $.
  • Link calibers in range log tables (off by default): the caliber cell becomes a link to that caliber's price comparison page on gunsnprices.com.

Network use and privacy

  • The plugin makes no network requests. All parsing happens on your device with data bundled into the plugin.
  • No telemetry, no analytics, no ads, no account.
  • The only link to an outside site is the optional caliber link described above. It is off by default, and nothing is loaded until you click it.
  • It reads only the text you select and changes text only when you run a command.

Install

From Joplin: Options → Plugins, search for "GunsNPrices", install and restart Joplin.

Manually: download com.gunsnprices.joplin.jpl from the latest release and drop it onto Options → Plugins → Install from file. Needs Joplin 3.1 or later, desktop.

Size

The plugin is about 450 KB. Most of it is data: 293 calibers with their store spellings and the model dictionaries for 50 firearm brands (Glock, Sig Sauer, Smith & Wesson, Ruger, Springfield, Mossberg, Remington, Savage, CZ, Beretta, Benelli, Taurus, Kimber, Walther, HK, FN, Colt, Henry, Marlin, Tikka, Winchester and more).

Development

The project follows the layout of the official plugin generator (generator-joplin).

npm install
npm run dist     # builds dist/ and publish/com.gunsnprices.joplin.jpl
npm run lint     # type check
npm test         # node:test over the pure logic in src/core.ts, plus manifest and archive checks

To try it in Joplin, add the project directory under Options → Plugins → Advanced settings → Development plugins and restart Joplin, or run Joplin in development mode (--env dev) so your real profile stays untouched.

Links

License

MIT. The caliber and model data come from the gunsnprices package (CC BY 4.0, attribution: GunsNPrices).

Questions, corrections and missing models: open an issue or write to app@gunsnprices.com.