Skip to content
K4nesPublic

About

A Windows app to run NFT work across many wallets. Your keys stay on your computer.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

314 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Velox logo

Velox

One console for NFT operations across many EVM wallets.

License: MIT Node React 19 PRs welcome

Velox is a console for running NFT operations across a set of EVM wallets without switching between tabs. It ships as a Windows installer and a Linux AppImage, and the same code runs in a browser from a Vite dev server. Mint tasks, eligibility checks, PnL tracking, portfolio scans, bulk listings, offer sales, transfers and swaps all read the same wallet list and the same provider settings.

It runs on your machine. Wallet keys live in the app's own store and signing happens locally, so there is no account, no upload and no remote backend. Some calls cannot happen in the window alone: the sign-in chain needs an upstream cookie, and the quote needs a key the bundle must not carry. In the installed app those calls run as three in-app commands, and in the web lane they stay as routes on the dev server.

Contents

Requirements

  • Windows or Linux x86_64, for the installed app. The Windows installer builds for x64; the Linux AppImage targets Ubuntu 22.04+/Debian 12+ and needs FUSE2 at runtime.
  • Node ^20.19 or >=22.12 (the engine range Vite 8 declares) and npm, for the dev server and for building.
  • Network access to OpenSea, Relay, CoinMarketCap, Alchemy and Ankr.
  • A browser with IndexedDB, for the web lane. Chromium or Firefox is fine.

Installation

git clone https://github.com/K4nes/velox.git
cd velox
npm install

There is no published npm package. Install the Windows app or the Linux AppImage from the repository's releases page, or build the platform bundle from source; see Desktop app and updates. The clone above is for the web lane and for that build.

Optionally, create .env.local to give the dev server a fallback price key:

CMC_API_KEY=your_coinmarketcap_key

.env.local is git-ignored. Stored keys are tried first; the environment key answers when none is stored or every stored key is rejected. Only the dev server reads it, so an installed copy takes its key from Settings.

Getting started

Install the app, or run the web lane:

npm run dev

The dev server prints its URL (default http://localhost:5173). Two steps before the pages do anything useful:

  1. Settings — add an OpenSea API key. Most pages read OpenSea with it. Add a CoinMarketCap key and Alchemy or Ankr keys to run the price and on-chain reads on your own accounts. The installed app carries no key inside it, so CoinMarketCap is the only way it prices the PnL card.
  2. Wallet Profiles — import wallets, then pick the active chain.

A fresh install opens on /mint/tasks with an empty wallet list. The installed app starts with an empty store of its own, so export the profile in the web lane and import it in the app to carry wallets, folders, connections and PnL records across.

What you can do

Page Route What it does
Mint Tasks /mint/tasks Schedules mints for a drop. Start Mint arms a task and fires when the stage opens, timed against chain block time.
Mint Eligibility /mint/eligibility Signs each wallet in with SIWE and reads its per-stage eligibility, price and cap for a drop. Saves the result as a snapshot.
PnL Card /pnl/card Builds a shareable PNG card for a collection, priced with a live ETH/USDT quote.
Monthly PnL /pnl/monthly Per-day PnL records for a collection: spent, realized, basis, current value.
Lifetime PnL /pnl/lifetime Aggregates every stored record into one position.
Portfolio /portfolio Scans wallet holdings through OpenSea and adds OpenRarity ranks.
Bulk Sell /bulk-sell Lists NFTs held across wallets at one price, through OpenSea listings.
Instant Sell /instant-sell Takes OpenSea collection offers against held NFTs.
Transfer /transfer Moves ERC-721 and ERC-1155 tokens from many wallets to one destination.
Swap /swap Routes a swap through Relay, including WETH wrap and unwrap.
Wallet Profiles /wallet-profiles Imports and groups wallets into folders, and picks the active chain.
Settings /settings Provider connections: OpenSea and CoinMarketCap credentials, and Alchemy or Ankr RPC keys per chain. Exports and imports the wallets, folders, connections and PnL records as one JSON file.

Chains: Ethereum, Base, Robinhood Chain, ApeChain (src/config/chains.ts).

Configuration

Everything a user configures lives in Settings, not in the environment:

Item Where Notes
OpenSea API key Settings → Connections Required by every page that reads OpenSea. Multiple keys rotate.
CoinMarketCap key Settings → Connections Prices the ETH/USDT quote. Required in the installed app, optional in the web lane.
RPC keys Settings → Connections Alchemy or Ankr, per chain. The endpoint URL is the provider's own; arbitrary RPC URLs are not supported.
CMC_API_KEY .env.local Fallback for the quote on the dev server only. An installed copy never reads it.

Development

npm run dev             # dev server with the local API routes
npm run build           # tsc -b, then vite build
npm run lint            # oxlint
npm run preview         # serve dist/ with the same local API routes
npm run test:e2e        # headless browser suite, mocked lane
npm run test:e2e:live   # live lane on real wallets, drops and providers
npm run test:e2e:mint   # live lane, mint only

test:e2e starts its own Vite server on a free port and needs no setup. The two live scripts read the E2E_* values from the git-ignored .env.e2e.local. Without them the live specs skip. Changes are checked with npm run build and the suite that covers the page you touched.

How it fits together

  • Frontend. React 19, TypeScript, Vite 8, Tailwind 4. The route table is src/config/routes.tsx; src/router.tsx builds the router from it (createBrowserRouter); page files mirror the URL; everything renders inside AppLayout.

  • Domain logic. src/lib/ holds the OpenSea, Seaport, Relay, PnL, transfer and wallet code. src/hooks/ drives the long-running flows (scans, listings, mints, swaps) and their run state.

  • API calls, two lanes. server/ is a Vite plugin that mounts three routes on the dev and preview servers:

    • /api/auth/nonce — the OpenSea SIWE message for an address.
    • /api/auth/token — verifies the signed message, mints an OpenSea token scoped read:eligibility with a one-day life, exchanges it for a short-lived access token, then revokes the minted token. The long-lived credential never reaches the browser.
    • /api/price/eth-usdt — CoinMarketCap quote, cached for 60 seconds and keyed per credential.

    Each exists because it needs something the browser cannot hold: a server-side credential or an upstream cookie. Every other request goes from the browser straight to OpenSea, Relay or an RPC endpoint. src/lib/chain/transport.ts owns the choice of lane: it calls the route in the web lane and invokes the matching command (auth_nonce, auth_token, eth_usdt_price) in the installed app. Both lanes return { status, body }, so a caller never branches on which one answered.

  • Components. src/components/ui/ is the vendored shadcn and Animate UI library; src/components/layout/ is page chrome; page-specific components live next to their page under src/pages/<feature>/.

dist/ on its own is a static bundle with no /api routes. Sign-in and the ETH/USDT quote both work in the installed app, because they run through the app's own commands; the /api routes remain for npm run dev and npm run preview.

Data and security

Nothing leaves the browser except the requests a page makes and the backup the operator chooses to download. That file holds wallet private keys and provider API keys in plain text, so the Settings card asks the operator to keep it private.

Store Contents
IndexedDB velox wallets (folder, label, address, private key), folders, eligibility snapshots, PnL records, provider connections
localStorage theme, active chain, cached card images

Both belong to whichever lane you run. The web lane keeps them in the browser profile for localhost. The installed app keeps them in its own webview profile at %LOCALAPPDATA%\com.k4nes.velox, a separate copy the browser cannot see.

IndexedDB version and migrations live in src/lib/db/. PnL records carry a version field (v) on their nested breakdown; readers test that it is present, to tell the current split from the legacy invested shape.

Two things to know before you put real assets in it:

  • Private keys are stored unencrypted in IndexedDB. Anyone with access to that browser profile, or to the app's profile folder, can read them. Use a dedicated profile, and wallets you are willing to expose.
  • The dev server has no authentication. It binds to localhost; do not expose it with --host or a tunnel.

OpenSea keys go from the browser straight to OpenSea. The CoinMarketCap key goes to the app's price command, or to the local /api/price/eth-usdt route under npm run dev and npm run preview, which forwards it upstream. Both sit in the same browser database as the wallets.

Desktop app and updates

The desktop build packages the same app with Tauri. On Windows it produces an NSIS installer; on Linux it produces an AppImage:

npm run build:desktop
  • Windows: src-tauri/target/release/bundle/nsis/Velox_<version>_x64-setup.exe
  • Linux: src-tauri/target/release/bundle/appimage/Velox_<version>_amd64.AppImage

The Windows installer installs for the current user, so it needs no administrator prompt. Wallet, folder and PnL data lives in the app's IndexedDB, which survives an in-place update because the application identifier and the per-user install do not change. The desktop install keeps its own data, separate from the browser copy at localhost.

The uninstaller can delete the wallets. The Windows uninstaller offers a "delete app data" box. That box removes %LOCALAPPDATA%\com.k4nes.velox, the folder that holds the wallets and the provider connections. Export the profile from Settings first, or leave the box clear.

The unsigned warning is expected. Until an Authenticode certificate is configured, Windows SmartScreen shows "Windows protected your PC" with an unknown publisher. Choose More info, then Run anyway. With a certificate configured, the installer and Velox.exe verify and the prompt shows the publisher name from the certificate.

Linux AppImage

npm run build:desktop on Linux writes src-tauri/target/release/bundle/appimage/Velox_<version>_amd64.AppImage. Make it executable and run it directly. It needs FUSE2 on the host, or --appimage-extract-and-run when FUSE is unavailable. Its data lives in ~/.local/share/com.k4nes.velox; deleting the AppImage does not delete that folder.

A build on CachyOS/Arch is for local iteration. The portable AppImage is built on Ubuntu 22.04 in .github/workflows/release.yml, because glibc cannot be bundled and the AppImage carries the build host's WebKitGTK/GTK libraries. One baseline build runs on Ubuntu 22.04+, Debian 12+, Fedora, CachyOS and other x86_64 GUI distros; it does not run on Ubuntu 20.04/Debian 11. npm run release:linux refuses any host other than Ubuntu 22.04 or Debian 12; VELOX_ALLOW_NON_BASELINE=1 bypasses that only for a deliberate local test.

The release script signs the AppImage with the updater key, reads X-AppImage-Version from the artifact, verifies it, and writes latest-linux.json beside the AppImage. The Linux updater endpoint in tauri.linux.conf.json points at that manifest; Windows keeps latest.json. The AppImage also carries a desktop entry, AppStream metadata and hicolor icons.

The AppImage updates in place only when it runs from the AppImage file. Extract it or launch the inner binary another way and the updater cannot replace it.

Signing

Windows carries two independent signature chains; Linux carries one:

  • Authenticode signs the Windows installer and Velox.exe for the Windows prompt. It is a distribution convenience and can be absent; Linux has no Authenticode chain.
  • The updater key signs the artifact for the in-app update on both platforms. The installed app checks that signature before it runs an installer or replaces the AppImage, and the signature binds the version the manifest announces to the artifact. A manifest whose version disagrees with the signed version is refused.

A signed update does not remove the Windows SmartScreen warning, and an Authenticode certificate does not let the app accept an unsigned update. Configure each chain on its own.

The updater key pair lives outside the repository:

Item Location
Private key %USERPROFILE%\.velox\velox-updater.key on Windows; the TAURI_SIGNING_PRIVATE_KEY secret in CI
Backup A second location, never the repository
Public key plugins.updater.pubkey in src-tauri/tauri.conf.json

Only the public key is committed. Never copy, print or commit the private key; .gitignore blocks *.key and *.key.pub as a last line of defence.

Cutting a release

  1. Move the ## [Unreleased] entries in CHANGELOG.md into a ## [x.y.z] - YYYY-MM-DD section and bump package.json. The version and the notes are read from those two files.
  2. Merge the change to main, tag the merged commit with an annotated vX.Y.Z tag, and push the tag. .github/workflows/release.yml builds the Windows installer, signs it, writes latest.json, and opens a draft release. The Linux job then builds the portable AppImage on ubuntu-22.04, signs it, writes latest-linux.json, and uploads those three files to the same draft. The tag must equal v plus the package version, because both manifests point at releases/download/v<version>/.
  3. Publish the draft once the Windows and Linux assets are attached. A draft is not served by releases/latest/download, so no installed copy sees the version before this step.
  4. Check the installed update once per release that changes it (see below).

To build a release on your own machine instead:

  • Windows: set TAURI_SIGNING_PRIVATE_KEY to the path of the private key or to its contents, and VELOX_WIN_CERT_THUMBPRINT (plus VELOX_WIN_TIMESTAMP_URL if the default timestamp server does not suit) to sign with Authenticode. Then run npm run release:desktop. It writes the same three files into src-tauri/target/release/bundle/nsis/ and prints the commands that tag, push and open the draft. Add -- --draft to open that draft from the script instead, or -- --dry-run to see its command before anything builds.
  • Linux: run npm run release:linux on Ubuntu 22.04 or Debian 12 with TAURI_SIGNING_PRIVATE_KEY set. It writes the AppImage, its .sig and latest-linux.json into src-tauri/target/release/bundle/appimage/ and prints the upload command. Add -- --dry-run to print the paths and endpoint without building. On any other host the script refuses before compiling; VELOX_ALLOW_NON_BASELINE=1 is only for a deliberate local test.

npm run release:verify repeats the Windows checks on the existing artifacts without rebuilding. It verifies the signature against the installer bytes, then refuses a latest.json whose version, signed version, file name or URL disagree with them.

The workflow reads these repository secrets:

Secret Use
TAURI_SIGNING_PRIVATE_KEY The updater key. Required by both the Windows and Linux jobs.
UPDATER_KEY_PASSWORD That key's password, when it has one.
WINDOWS_CERTIFICATE The Authenticode certificate as base64 .pfx. Optional; Windows only.
WINDOWS_CERTIFICATE_PASSWORD That certificate's password. Required with it; Windows only.

Make the base64 value with [Convert]::ToBase64String([IO.File]::ReadAllBytes('cert.pfx')).

The Windows job fails when the updater key is missing, when the certificate is set without its password, and when an import does not produce a thumbprint, so a half-configured run cannot ship unsigned artifacts. Set the repository variable VELOX_REQUIRE_AUTHENTICODE to true once a certificate identity is chosen: the job then also fails when WINDOWS_CERTIFICATE is absent. The Linux job fails when the updater key is missing, the tag disagrees with package.json, or the build host is not Ubuntu 22.04 or Debian 12; a failed Linux job leaves the Windows draft unpublished.

An installed copy checks its endpoint on launch. Windows uses releases/latest/download/latest.json from tauri.conf.json; Linux uses releases/latest/download/latest-linux.json from tauri.linux.conf.json. When a newer version is published it offers the update once, downloads it, installs it in place and relaunches. A build without TAURI_SIGNING_PRIVATE_KEY (npm run build:desktop) still produces a working installer or AppImage, but it carries no updater signature and no manifest.

Update smoke test

The update runs only inside an installed copy. On Windows, build, install and persistence checks have their own repeatable check, scripts/desktop-check.mjs --phase drive then --phase restart, run against the installed app. The updater itself needs a newer published release, so run this loop by hand on a release that changes it:

  1. Install the previous version and add a wallet, a folder and a PnL record.
  2. Publish the next version as a draft release with its installer, .sig and latest.json, then publish it.
  3. Launch the older installed copy, accept the offer, and wait for the relaunch.
  4. Check the version of the new build and that the wallet, the folder and the PnL record are still there.

On Linux the same loop uses the previous AppImage and latest-linux.json:

  1. Run the previous Velox_<version>_amd64.AppImage and add a wallet, a folder and a PnL record.
  2. Publish the next release with its AppImage, .sig and latest-linux.json.
  3. Run the older AppImage again, accept the offer, and wait for the relaunch.
  4. Check the version and that the wallet, the folder and the PnL record are still there.

The first Linux release cannot run this loop yet; it becomes testable from the second Linux release onward. An extracted AppImage or its inner binary cannot update itself.

Contributing

Issues and pull requests are welcome. Before opening one:

  • Read RULES.md — component, routing, layout and UI conventions. It is binding, and it lists the deliberate exceptions that should not be normalised.
  • Follow COMMIT.md for commit messages (Conventional Commits, English, imperative).
  • Keep a change checkable: npm run build must pass, and the affected page must run.
  • Do not claim verification you did not run. Reviews follow REVIEW.md.

For changes to a page layout, include a screenshot in the pull request. The pages target 1024px and wider; below that only the chrome collapses.

Changelog

Release notes live in CHANGELOG.md. The version is declared in package.json, and each release is tagged vX.Y.Z on main.

Maintainers

@K4nes.

License

MIT © 2026 K4nes

Third-party work keeps its own license: the packages in package-lock.json, and the Inter and Geist fonts, which ship under the SIL Open Font License 1.1 (OFL-1.1) — Inter vendored under public/fonts/, Geist through @fontsource-variable/geist.

About

A Windows app to run NFT work across many wallets. Your keys stay on your computer.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages