Setup guide · Mac

Set up Next

From a fresh install to your first automatic restock. Plan on about 20 minutes, most of it on the eBay developer site.

Step 1

Install

Open Terminal, pick a folder you'll keep, and run:

git clone https://github.com/beenhad/Nextinstock.git
cd Nextinstock
npm ci
npm run setup:local

setup:local creates a private .env.local file for your keys. Your listings, photos and history live in ~/Library/Application Support/Nextinstock, outside the project folder, so updates never touch them.

Step 2

Connect eBay

Create an app at developer.ebay.com and copy its production keys into .env.local. Type them on your Mac only. Never paste them into a chat or commit them.

EBAY_APP_IDYour App ID (Client ID).
EBAY_CERT_IDYour Cert ID (Client Secret).
EBAY_REDIRECT_RU_NAMEThe RuName eBay gives you for sign-in.

In the eBay developer portal, set that RuName's accepted URL to https://<your-host>/api/ebay/auth/callback. eBay needs a stable https address here, so this is the one fiddly part of setup.

Start Next (step 3), open Settings and choose Connect eBay. Once Next can read your listings, the same button becomes Allow listing updates. You need that grant before Next can restock for real.

Step 3

Start Next and add a listing

Start the app and the worker that watches for sales:

npm run build
npm run start:local

Leave that Terminal window open and go to 127.0.0.1:3000/tool .

  1. Choose Add a listing and paste the eBay item number.
  2. Choose Sync eBay. If the listing has variations, pick the one you're restocking.
  3. Choose Line up copies.
Use an active fixed-price, Good 'Til Cancelled listing with Out-of-Stock Control turned on in your eBay selling preferences. That keeps the listing alive at zero, so the next copy goes up on the same item number with its sold count intact.
Step 4

Line up your copies

The release line shows the copy on eBay now, then everything waiting behind it. Press + at the end of the line to add more.

A different copyIts own photos, condition, price and note. Use it when each copy is unique, like a used game with its own wear. Buyers see exactly this one.
Another of the sameReuses the listing's current photos. Use it for identical stock and add as many as you have in one go.

Drag copies to change the order. For a variation, Next restocks that option's quantity and price; its eBay photos stay as they are.

Give each queued copy your own SKU or reference in the dashboard. That label stays in Next and never changes the eBay SKU or an order that already sold. A single-item copy's condition note goes to eBay when its handoff runs; an identical copy can leave it blank to keep the current note. Variation notes stay in Next.

Step 5

Set the pace

Click any copy on the line to set its price and when it goes up.

Right awayGoes up about a minute after the previous copy sells.
After a waitHolds for the time you pick, from minutes to a week.
When I say soWaits for your OK. Approve it in Next or from the Discord alert.
Change per copyOn a stack of the same, raises each copy's price by a set amount over the one before.
Step 6

Test, then go live

Next starts in Test mode (NEXTINSTOCK_EBAY_WRITE_MODE=dry-run). It watches your real listing and logs what it would do, without changing anything on eBay. Let a sale or two go through and check the history.

When you're happy, set NEXTINSTOCK_EBAY_WRITE_MODE=live in .env.local and restart npm run start:local. If anything is blocking live restocks, Settings says exactly what.

The worker checks eBay every 30 seconds (NEXTINSTOCK_POLL_SECONDS). Your Mac must stay on and online for restocks to happen.
Optional

Discord alerts

Get a message when something sells, restocks, or needs your OK. No bot or developer account needed, just a webhook.

  1. In Discord, open Server Settings → Integrations → Webhooks, make a webhook for a channel, and copy its URL. No server yet? Use the server template .
  2. In Next, open Settings → Discord and paste the URL.
  3. Pick which alerts you want: sales, restocks, and copies that need you.
  4. Choose Send a test, then Preview every alert to see each kind. Previews never touch eBay.

Alerts for a When I say so copy include a Put it up link. It opens Next on this Mac. To use it from your phone, set NEXTINSTOCK_PUBLIC_URL to an address that reaches this Mac. Treat the webhook URL like a password.

Later

Updating

Stop Next, then from the project folder run:

git pull
npm ci
npm run build
npm run start:local

Your keys in .env.local and your data folder are left alone. If a restock stops, check Settings for what's blocking it and the listing's history for the last result. Questions or bugs go to GitHub issues .