From e159e1fda8da4df15bd21b68e9ce5e691f092b49 Mon Sep 17 00:00:00 2001 From: DoktorShift Date: Sun, 25 Jan 2026 14:20:15 +0100 Subject: [PATCH 1/4] Changes to more pages --- README.md | 36 ++++++++++++++++++++++++------------ config.json | 18 ++++++++++-------- description.md | 17 ++++++++++------- 3 files changed, 44 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index f6e6436..100ab23 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,30 @@ -# Inventory Extension - [LNbits](https://github.com/lnbits/lnbits) extension + + + + LNbits + + -For more about LNbits extensions see the [LNbits Extensions guide](https://github.com/lnbits/lnbits/wiki/LNbits-Extensions). +[![License: MIT](https://img.shields.io/badge/License-MIT-success?logo=open-source-initiative&logoColor=white)](./LICENSE) +[![Built for LNbits](https://img.shields.io/badge/Built%20for-LNbits-4D4DFF?logo=lightning&logoColor=white)](https://github.com/lnbits/lnbits) -The Inventory extension provides a simple inventory manager with item metadata and stock quantities. It is designed to be used standalone or as a shared inventory source for other LNbits extensions that need to reference items and availability. +# Example Extension - [LNbits](https://github.com/lnbits/lnbits) extension -## Highlights +For more about LNBits extension check [this tutorial](https://github.com/lnbits/lnbits/wiki/LNbits-Extensions) -- Create, edit, and manage inventory items. -- Track stock quantities with quick inline updates. -- Tag items for easier filtering and organization. -- Share inventory data across extensions. +

*tagline*

+This is an example extension to help you organise and build you own. -## Screenshots +Try to include an image + -![Inventory manager overview](static/1.png) -![Inventory item details](static/2.png) -![Inventory manager table](static/3.png) +

If your extension has API endpoints, include useful ones here

+ +curl -H "Content-type: application/json" -X POST https://YOUR-LNBITS/YOUR-EXTENSION/api/v1/EXAMPLE -d '{"amount":"100","memo":"example"}' -H "X-Api-Key: YOUR_WALLET-ADMIN/INVOICE-KEY" + +## Powered by LNbits + +[LNbits](https://lnbits.com) is a free and open-source lightning accounts system. + +[![Visit LNbits Shop](https://img.shields.io/badge/Visit-LNbits%20Shop-7C3AED?logo=shopping-cart&logoColor=white&labelColor=5B21B6)](https://shop.lnbits.com/) +[![Try myLNbits SaaS](https://img.shields.io/badge/Try-myLNbits%20SaaS-2563EB?logo=lightning&logoColor=white&labelColor=1E40AF)](https://my.lnbits.com/login) diff --git a/config.json b/config.json index 73a1f24..5751341 100644 --- a/config.json +++ b/config.json @@ -1,19 +1,17 @@ { + "id": "inventory", + "version": "0.0.1-rc", "name": "Inventory", + "repo": "https://github.com/lnbits/inventory", "short_description": "Shared Inventory extension", + "description": "", "tile": "/inventory/static/inventory.png", - "min_lnbits_version": "1.4.0", - "donate": "donate@legend.lnbits.com", + "min_lnbits_version": "1.3.0", "contributors": [ { "name": "Tiago Vasconcelos", "uri": "https://github.com/talvasconcelos", "role": "Developer" - }, - { - "name": "Ben Arc", - "uri": "https://github.com/arcbtc", - "role": "Dev" } ], "images": [ @@ -29,5 +27,9 @@ ], "description_md": "https://raw.githubusercontent.com/lnbits/inventory/main/description.md", "terms_and_conditions_md": "https://raw.githubusercontent.com/lnbits/inventory/main/toc.md", - "license": "MIT" + "license": "MIT", + "paid_features": "", + "tags": ["Merchant", "Commerce"], + "donate": "", + "hidden": false } diff --git a/description.md b/description.md index fec4196..4db649f 100644 --- a/description.md +++ b/description.md @@ -1,9 +1,12 @@ -An easily clonable extension that can be used a base for building a new extension. +Manage product inventories with stock tracking, pricing, and tax configuration. -THe usual development enviroment is: +Its functions include: -- Clone the myextension repo to your own repo -- Edit the cloned repos manifest to your details -- Install into LNbits -- Delete the cloned extensions folder in your LNbits install -- Create a symbolic link to the extensions folder, from the where you have pulled your extension `ln -s /where/you/cloned/myextension /your/lnbits/installl/lnbits/lnbits/extensions/` +- Creating inventories with items, prices, and descriptions +- Tracking stock quantities and reorder thresholds +- Configuring discounts and tax rates per item +- Assigning managers to help manage inventory +- Importing and exporting item data +- Logging all inventory updates for auditing + +A comprehensive inventory management system for merchants and retailers who need to track products, pricing, and stock levels across their operations. From e77adbebfd38f0aa88ff2dbf4c595183373daeca Mon Sep 17 00:00:00 2001 From: DoktorShift Date: Tue, 27 Jan 2026 12:21:35 +0100 Subject: [PATCH 2/4] Format with prettier --- static/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/index.js b/static/js/index.js index fff9bfa..2506cb4 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -650,7 +650,7 @@ window.app = Vue.createApp({ async createManager(data) { try { const tagSelection = - data.tags === undefined ? this.inventory?.tags ?? [] : data.tags + data.tags === undefined ? (this.inventory?.tags ?? []) : data.tags const payload = { inventory_id: data.inventory_id, name: data.name, From 736f0975ceea312ebefb1fc42e9019bdc16776d5 Mon Sep 17 00:00:00 2001 From: DoktorShift <106493492+DoktorShift@users.noreply.github.com> Date: Tue, 27 Jan 2026 13:14:20 +0100 Subject: [PATCH 3/4] Revise README for Inventory extension details Updated the README to reflect the Inventory extension's features and use cases. --- README.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 100ab23..a2c28bd 100644 --- a/README.md +++ b/README.md @@ -8,19 +8,61 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-success?logo=open-source-initiative&logoColor=white)](./LICENSE) [![Built for LNbits](https://img.shields.io/badge/Built%20for-LNbits-4D4DFF?logo=lightning&logoColor=white)](https://github.com/lnbits/lnbits) -# Example Extension - [LNbits](https://github.com/lnbits/lnbits) extension +# Inventory Extension – [LNbits](https://github.com/lnbits/lnbits) extension -For more about LNBits extension check [this tutorial](https://github.com/lnbits/lnbits/wiki/LNbits-Extensions) +The **Inventory extension** provides a simple and flexible inventory manager for +tracking items, metadata, and stock quantities. -

*tagline*

-This is an example extension to help you organise and build you own. +It is designed to work **standalone** or as a **shared inventory source** for other +LNbits extensions that need to reference products, prices, or availability +(for example PoS-style extensions). -Try to include an image - +## Overview -

If your extension has API endpoints, include useful ones here

+Inventory offers a centralized way to manage products inside LNbits while keeping +the data reusable across multiple extensions. -curl -H "Content-type: application/json" -X POST https://YOUR-LNBITS/YOUR-EXTENSION/api/v1/EXAMPLE -d '{"amount":"100","memo":"example"}' -H "X-Api-Key: YOUR_WALLET-ADMIN/INVOICE-KEY" +Instead of each extension maintaining its own product list, Inventory can act as +a single source of truth for item data and stock levels. + +## Highlights + +- Create, edit, and manage inventory items +- Track stock quantities with quick inline updates +- Store item metadata such as names, descriptions, and tags +- Tag items for easier filtering and organization +- Share inventory data across multiple LNbits extensions + +## Typical Use Cases + +- Managing products for point-of-sale or checkout extensions +- Reusing item data across multiple LNbits extensions +- Tracking availability and stock changes over time +- Keeping product information centralized and consistent + +## Standalone and Integrations + +The Inventory extension can be used on its own as a lightweight inventory manager. + +When used alongside other LNbits extensions, it can provide: +- Shared access to item definitions +- Centralized stock tracking +- Consistent product metadata across different workflows + +This makes it especially useful for PoS-style setups and other extensions that +depend on structured product data. + +## Screenshots + +![Inventory manager overview](static/1.png) +![Inventory item details](static/2.png) +![Inventory manager table](static/3.png) + +## Notes + +- Inventory focuses on item management and availability, not payments. +- Extensions that integrate with Inventory remain responsible for their own + payment logic and workflows. ## Powered by LNbits From 04c134292dccb739b66016113013cf0459848285 Mon Sep 17 00:00:00 2001 From: DoktorShift <106493492+DoktorShift@users.noreply.github.com> Date: Tue, 27 Jan 2026 13:15:51 +0100 Subject: [PATCH 4/4] Update version to 0.1.0 in config.json --- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.json b/config.json index 5751341..5722743 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "id": "inventory", - "version": "0.0.1-rc", + "version": "0.1.0", "name": "Inventory", "repo": "https://github.com/lnbits/inventory", "short_description": "Shared Inventory extension",