Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

matheusmongarde/pega-oferta

ProductivityBusiness tools

Self-hosted deal-group engine that collects offers, swaps in your affiliate tags, and posts to WhatsApp, Telegram, and a web storefront.

104
42
TypeScript
MIT
5 days old
+10 stars in 24h

What it does

Pega Oferta is a self-hosted engine for running affiliate deal groups. It periodically collects offers from configured sources, deduplicates them, replaces product links with your own affiliate tags, and dispatches the results to WhatsApp groups, Telegram, or a public web storefront. It supports Amazon, Mercado Livre, Shopee, AliExpress, and Awin, and keeps all data in a local SQLite database, so you run it on your own machine or VPS.

The main workflow follows a pipeline: sources or mirrored groups feed offers into a queue, where each offer is cleaned, tagged, and checked for duplicates before moving from "arrived" to "queued" to "sent." A per-group CRM-like view lets each group have its own niche, minimum discount, price range, stores, sending cadence, and connected WhatsApp number. Optional features include a coupon radar, a price monitor, VIP requests, and an agent-facing /api/v1.

Quick start

You need Node.js 22.5 or newer on macOS, Windows, or Linux; the database uses Node's built-in SQLite, so no separate database install is required.

git clone https://github.com/matheusmongarde/pega-oferta.git
cd pega-oferta
./instalar.sh        # on Windows use instalar.bat

The installer fetches panel and WhatsApp dependencies, starts the system, and opens the guided setup at http://localhost:3000/instalar guided setup. There you create an account and complete the WhatsApp QR, affiliate tags, and source steps; every step can be skipped and configured later. After setup, use npm run tudo to start everything again. The README also documents a manual path: npm install, then cd servicos/whatsapp && npm install && cd ../.., then npm run tudo.

Start in test mode: sends are recorded as simulated rather than delivered, so you can verify tags and content before going live.

Affiliate tags

Tags are entered under Contas de Afiliado. Amazon expects the tag format like seunome-20. Mercado Livre requires both matt_word and matt_tool. Shopee recommends AppID plus Secret from the Open API, or an Affiliate ID. AliExpress uses the aff_short_key from Portals, and Awin uses the Publisher ID. The system blocks sends where the link does not carry your tag for the relevant store.

Constraints and security

The panel listens only on 127.0.0.1; for remote access the README recommends a production build behind an HTTPS reverse proxy such as Caddy, and explicitly warns against npm run dev or npm run tudo on a VPS production setup. An earlier version left most panel API routes unauthenticated, so the current version requires login for all /api routes and lets /api/v1 accept Authorization: Bearer po_live_... tokens. If you previously exposed the panel, the README advises rotating Telegram, Awin, and Shopee credentials and revoking API tokens.

WhatsApp connections use QR sessions and require a machine that stays on. The README also states the risk of WhatsApp bans and places responsibility for platform rules, third-party site terms, and LGPD compliance on the operator. The project is MIT-licensed and includes terms of use that must be accepted in the panel terms.

Agent API

Create a token under Conexões → API do Sistema & Tokens, then use /api/v1 for status, groups, offers, dispatch, and coupons. This suits n8n, Make, or coding agents that need to push or trigger offers.

HotRepo's take

Pega Oferta entered HotRepo's new-project board on 2026-11-29 with 104 stars and 42 forks, adding 4 stars and 1 fork in the recorded one-hour window. That is a small sample, so it indicates early attention rather than a trend. The project is not just a landing page: the repository contains TypeScript source, a WhatsApp service, a Chrome extension, and a documented API, and the README gives concrete setup, update, and production instructions. For a self-hosting user, the main operational cost is keeping a machine online for the WhatsApp QR session and running the panel behind HTTPS when accessed remotely.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. melgarafael/DeskcommCRMSelf-hosted WhatsApp sales CRM where AI agents qualify, follow up and hand off to humans.TypeScript4,994
  2. matheusmongarde/garimpoSelf-hosted prospecting system that finds local businesses on Google Maps, builds preview pages, runs WhatsApp outreach and auto-closes deals on payment.TypeScript102
  3. pugarte7/spanish-top-tech-companiesMCP server that gives AI agents Spanish tech job listings with company salary data and lets them submit applications.JavaScript595
  4. DeskLabs-OpenSource/DeskVoiceSelf-hosted AI voice PBX that answers SIP calls, runs tools, escalates to humans and follows up after hangup.TypeScript103
  5. Raktim94/nodedr-restaurant-posA self-hosted restaurant POS that keeps billing, kitchen tickets and printing running on a local server when the internet drops.TypeScript174