openvibers/openvibe.markets README.md

README.md

main 2.4 KB · 44 lines · markdown

1# OpenVibe.Markets
2
3Every marketplace, one search: **https://openvibe.markets** (plan §L.1).
4
5**Run it:** `npm ci && npm start` (Node 22 or newer) · **Tests:** `npm test` · **Port:** 5294 · **Service id:** `markets`
6
7## What it does today (v0.2)
8
9- **One search box.** Words in; results from OpenVibe Deals' offers first (Deals keeps the one product graph: no second
10 catalogue here). Each result says its store and its source, and its price **as of** when it was seen, never "now";
11 a price before, when one was stated; "Can I afford it?" opens OpenVibe Finance's what-if with that price.
12- **Every other marketplace, one tap away.** eBay, Amazon, Walmart, Best Buy, Target, Newegg, Etsy, Facebook
13 Marketplace, OfferUp, Mercari, Poshmark, Back Market, Swappa and Reverb open their own search with the words already
14 in, in a new tab. Markets fetches nothing from them and never sees what happens there. As a permitted API or a
15 licensed feed comes for one (eBay's Browse API, Best Buy's catalogue, affiliate feeds), its listings join the results.
16- **Search by photo.** A photo of the thing (shrunk to 1024 px in the browser, its camera data not carried over) goes
17 once to OpenVibe Vision, which names it as a short shopping search with Markets' own token (Network #1118:
18 `vision.image.ask`); those words are searched. Neither keeps the photo. Ten an hour per address, a daily total.
19- **Neutral and private.** A commission never raises a result. Searching needs no account; the words are not kept.
20- `GET /api/v1/search?q=` answers `{ q, deals: { ok, total, results }, elsewhere: [{ name, kind, url }] }`.
21
22Next (plan §L.1's order): eBay and Best Buy through their APIs (keys), affiliate feeds, Compare
23and Reviews, Watch alerts, then sellers and sessions through Link.
24
25## Running
26
27| Variable | What |
28|---|---|
29| `PORT` | 5294 |
30| `HOST` | 127.0.0.1 |
31| `DEALS_URL` | Deals over loopback, `http://127.0.0.1:4840` (`GET /api/v1/search`, Deals #380) |
32| `DEALS_TIMEOUT_MS` | 5000 |
33| `OV_OAUTH_CLIENT_ID`, `OV_OAUTH_CLIENT_SECRET` | the `markets` service principal (search by photo; off without the secret) |
34| `OV_NETWORK_INTERNAL_URL`, `VISION_URL` | `http://127.0.0.1:4000`, `http://127.0.0.1:5130` |
35
36Production: `/opt/openvibe.markets`, unit `openvibe-markets.service`, env `/etc/openvibe/markets.env`, vhost
37`deploy/nginx/openvibe.markets.conf`; deployed with `ovhost deploy markets`.
38
39License: AGPL-3.0-only.
40
41<!-- versions:start -->
42- openvibe-shared: v4.359.0
43<!-- versions:end -->
44