npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@receeco/pos-agent

v1.0.5

Published

Receeco POS Integration Middleware Agent

Readme

Receeco POS Agent

A lightweight middleware service that integrates with Point-of-Sale systems to generate instant digital receipts.

Features

  • Real-time Integration: Captures transaction data instantly from POS terminals
  • QR Code Generation: Creates unique QR codes for each transaction
  • Offline Support: Queues transactions when backend is unavailable
  • Short Code Generation: 6-digit codes for manual entry
  • Zero Downtime: Maintains existing paper receipt workflows

Quick Start

1. Installation

npm install -g @receeco/pos-agent

2. Initialize Configuration

receeco-pos init --merchant-id=YOUR_MERCHANT_ID --api-key=YOUR_API_KEY

3. Start the Service

receeco-pos start

4. Test Integration

# Quick CLI test (built-in command)
receeco-pos test

# Visual browser-based testing
receeco-pos emulator

API Endpoints

POST /transactions

Process a new transaction and generate digital receipt.

Request Body:

{
  "merchantId": "merchant_123",
  "merchantName": "Test Store",
  "items": [
    {
      "name": "Rice (5kg)",
      "quantity": 1,
      "unitPrice": 85.0,
      "totalPrice": 85.0
    }
  ],
  "totalAmount": 85.0,
  "currency": "NGN",
  "paymentMethod": "card",
  "timestamp": "2024-01-15T14:30:00Z"
}

Response:

{
  "receiptId": "rcpt_abc123",
  "receiptUrl": "https://receeco.com/receipt/rcpt_abc123",
  "qrCodeUrl": "data:image/png;base64...",
  "qrCodeSvg": "<svg>...</svg>",
  "shortCode": "ABC123",
  "deepLinkUrl": "https://receeco.com/receipt/rcpt_abc123",
  "status": "success",
  "timestamp": "2024-01-15T14:30:00Z"
}

GET /health

Check service health status.

GET /queue/status

Check offline queue status.

Configuration

Create a .env file with your configuration:

MERCHANT_ID=your_merchant_id
RECEECO_API_KEY=your_api_key
RECEECO_API_URL=https://receeco.com/api
RECEECO_WEB_URL=https://receeco.com
PORT=3001
LOG_LEVEL=info

NODE_ENV=production

POS Integration Examples

Quickteller POS

Configure your POS to send transaction data to:

POST http://localhost:3001/transactions

Phoenix POS

Use webhook integration:

// In your POS system
fetch("http://localhost:3001/transactions", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify(transactionData),
});

CLI Commands

Basic Commands

  • receeco-pos init - Initialize configuration
  • receeco-pos start - Start the service
  • receeco-pos status - Check service status
  • receeco-pos test - Test with sample transaction
  • receeco-pos emulator - Open visual browser-based testing tool
  • receeco-pos clear-queue - Clear failed transactions from queue

Windows Service Management

  • receeco-pos install-service - Install as Windows service
  • receeco-pos start-service - Start Windows service
  • receeco-pos stop-service - Stop Windows service
  • receeco-pos uninstall-service - Remove Windows service

Support

For integration support, contact the Receeco team or visit our documentation at https://docs.receeco.com