Skip to content

profullstack/b1dz.com

Repository files navigation

b1dz

Multi-source profit monitor. One pipeline, many sources: live auctions (dealdash, ebay), travel pricing, dropshipping, deals pages, crypto exchanges. Each source plugs into the same Source interface and emits normalized Opportunity records that the dashboard, CLI, and API all read from a shared store.

Layout

apps/
  web/                Next.js 16 + Tailwind 4 dashboard (PWA-installable)
  cli/                CLI / daemon (will host the lifted ink TUI)
packages/
  core/               Shared types, profit math, storage interface, alert bus, runner
  storage-json/       JSON file storage adapter (Supabase adapter coming)
  source-dealdash/    DealDash source (lift from ~/src/dealdash)
data/                 JSON storage root (gitignored)

Plugin Store

b1dz is evolving into a plugin platform. DEX connectors and trading strategies ship as plugins against a stable contract (packages/core/src/plugins.ts), with a catalog rendered at /store in the web app. Execution is signals-only — strategy authors emit normalized Signal objects and b1dz's engine owns signing, risk, and approvals, so third-party code never touches user keys.

See docs/prd-plugins-v0.md for the one-day scope and the full architectural call.

Stack

  • pnpm 10 workspaces + Turbo
  • Next.js 16 (App Router, RSC), React 19, Tailwind 4
  • TypeScript strict, ESM only
  • Storage: JSON files now → Supabase later (same Storage interface)
  • PWA: manifest + minimal service worker in apps/web/public

Setup

cd ~/src/b1dz.com
pnpm install
pnpm dev:web   # Next.js dashboard
pnpm dev:cli   # daemon

TUI Chart

The crypto TUI now includes a realtime OHLC chart pane backed by exchange websocket data plus public candle bootstrap.

Controls:

  • 1 = 1m
  • 2 = 5m
  • 3 = 15m
  • 4 = 1h
  • 5 = 4h
  • 6 = 1d
  • 7 = 1w
  • , / . = previous / next chart pair

Module usage example:

<RealtimeOHLCChartContainer
  pair="BTC-USD"
  exchange="kraken"
  timeframe="5m"
  positions={positions}
  closedTrades={closedTrades}
/>

Migration plan (lifting dealdash)

  1. Move ~/src/dealdash/dealdash.ts API helpers into packages/source-dealdash/src/api.ts
  2. Lift profit math (profitability, getResaleValue, nonPackEntryFloor) into evaluate()
  3. Lift bookBid / cancelBidBuddy / exchangeWinForBids into act()
  4. Lift the ink TUI from dealdash-ink.tsx into apps/cli/src/tui/
  5. Wire the runner so the TUI just renders state from the same Storage
  6. Once the CLI works end-to-end, point apps/web at the same data
  7. Add source-ebay to validate the abstraction
  8. Swap storage-json for a storage-supabase package

The whole project lives at ~/src/b1dz.com.

Crypto TODO

  • Inventory-aware spot scanner: alert only when the user already has token inventory on the sell venue and stable balance on the buy venue.
  • Per-token thresholds for small accounts: net edge after fees, min notional, and size caps.
  • Inventory rebalance guidance: flag when one venue has become cash-heavy or token-heavy after repeated arb rounds.
  • Executable depth sizing: use real order book depth, not only top-of-book price, before auto-firing cross-exchange spot arb.
  • Per-exchange market-rule normalization: cache and enforce lot size, min notional, quantity increments, and price tick rules across Binance, Kraken, and Coinbase before order placement.

About

Multi-source profit monitor. One pipeline, many sources: live auctions (dealdash, ebay), travel pricing, dropshipping, deals pages, crypto exchanges

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors