barbarcode>

Barbarcode

Turn your phone into a barcode scanner for your computer, instantly.

Server Startup

barbarcode — bash

        

Installation

Get started with Barbarcode quickly. You can install it globally using npm or run it directly with npx.

Install Globally:

npm install -g barbarcode

Then, you can run barbarcode from anywhere in your terminal.

Or use npx (no installation needed):

npx barbarcode -p 8080 -s inventory_input

This is great for trying it out or for occasional use.

The npm package is automatically built and published using GitHub Actions for every release.

Flexible Configuration

Easily define keystroke mappings in a simple config.toml file. Tailor Barbarcode to your exact workflow.


[sessions]
# Press Enter after the barcode
inventory_input = "{barcode}{enter}"

# Press F4, then type barcode, then Enter
price_check = "{key:F4}{barcode}{enter}"

# Type SKU:, the barcode, Tab, then Quantity:
data_entry = "SKU:{barcode}{tab}Quantity:"

# Wait 500ms, press F5, type barcode, Tab, 1, Enter
complex_input = "{delay:500}{key:F5}{barcode}{tab}1{enter}"
                

Supports special keys, delays, and custom text for ultimate control.

Scan with Your Mobile

Scan the QR code displayed by the server with your mobile device. No app installation needed!

Mobile scanning QR code

Your phone becomes a powerful barcode scanner, seamlessly sending data to your computer.