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.
- A MacNext runs on your computer. Keep it on and awake while it watches.
- Node.js 22+Free from nodejs.org.
- An eBay seller accountWith the listings you want to keep in stock.
- eBay developer keysFree at developer.ebay.com. Yours stay on your Mac.
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:localsetup: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.
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.
Start Next and add a listing
Start the app and the worker that watches for sales:
npm run build
npm run start:localLeave that Terminal window open and go to 127.0.0.1:3000/tool .
- Choose Add a listing and paste the eBay item number.
- Choose Sync eBay. If the listing has variations, pick the one you're restocking.
- Choose Line up copies.
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.
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.
Set the pace
Click any copy on the line to set its price and when it goes up.
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.
NEXTINSTOCK_POLL_SECONDS). Your Mac must stay on and online for restocks to happen.Discord alerts
Get a message when something sells, restocks, or needs your OK. No bot or developer account needed, just a webhook.
- In Discord, open Server Settings → Integrations → Webhooks, make a webhook for a channel, and copy its URL. No server yet? Use the server template .
- In Next, open Settings → Discord and paste the URL.
- Pick which alerts you want: sales, restocks, and copies that need you.
- 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.
Updating
Stop Next, then from the project folder run:
git pull
npm ci
npm run build
npm run start:localYour 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 .