Bazar is a browser-only marketplace for one-unit Arweave assets. Wallets own assets directly, offers and transfers execute in their Arweave-scheduled processes, and purchases settle in native AR.
There is no marketplace backend, identity intermediary, hosted order book, or legacy AO message service. The application reads immutable collection indexes from Arweave and computes live asset state through any HyperBEAM gateway.
A tradable process uses:
device: ~process@1.0execution-device: token@1.0swap-device: arweave-swap@1.0scheduler-device: arweave-scheduler@1.0scheduler-mode: alltotal-supply: 1initial-holder: <wallet address>
New assets are atomic at creation: the process transaction body is the primary
media itself, while its process configuration, ANS-110 discoverability fields,
and optional UDL terms are transaction tags. The asset/process ID is therefore
also the media transaction ID. Optional album artwork for audio is an ancillary
transaction referenced by asset-artwork, matching Bazar Studio's cover-art
model. Older assets with a separate asset-data transaction remain readable.
Interactive web artworks use content-type: text/html and must reference a
permanent lightweight card image with both asset-preview: <transaction ID>
and asset-preview-content-type: <image MIME type>. Bazar renders that image
in catalogue cards and loads the primary HTML transaction only on its asset
detail page, inside an opaque-origin iframe sandbox that permits scripts and
pointer interaction without same-origin, popup, form, or top-navigation access.
The write API is deliberately small:
transfermake-offercancel-orderregister-interest, followed by a native AR payment bearing theorder-id
New listings set minimum-fee: 0: there is no seller-imposed reservation
fee. Reserving still requires a transaction, its normal Arweave network reward,
and the one-winston scheduler quantity; seller payments have their own network
reward. Existing orders retain their on-chain fee terms (and the purchase safety
cap); cancel and relist to remove an older order's fee. Saved listing recoveries
are verified against their original signed fee rather than the new default.
Collections are process@1.0 processes executed by carrier@1.0. Each process
starts with an immutable JSON manifest and lets its holder publish a signed
set pointing at a later manifest when assets are added. Carrier names are discovered directly from Arweave
GraphQL and paged in the browser.
All GraphQL searches use POST https://arweave.net/graphql by default, including
collection discovery, asset search, wallet candidates, profiles, and activity,
independent of the serving gateway, VITE_ARWEAVE_GATEWAY, arweave-node, and
AO compute peers. A deployment that runs or trusts another index sets
VITE_GRAPHQL_ENDPOINTS to an ordered, comma-separated list; reads that fail on
one index then try the next. No third-party index is used by default, so when
arweave.net's index is unavailable those reads are retried and then reported as
unavailable.
#/my-assets discovers a wallet's possible assets with one paginated,
aliased Arweave GraphQL query. It combines initial holdings, signed market
actions, and incoming transfers, then computes only those candidates through
the selected AO transport with bounded concurrency. GraphQL is never
treated as ownership or listing truth.
Results appear progressively in Owned and Listed for sale groups. Changing
the connected wallet, AO transport, or AO peer pool aborts the previous resolution. The
page is read-only and never requests a signature.
Collection pages can retain their manifest order or sort by recent on-chain activity. The live-listings filter discovers offer candidates and verifies their current order state without computing every asset in the collection.
Each collection also exposes a backend-free activity view. It queries recent signed market actions scoped to that collection's process IDs and links each event to its permanent transaction. Activity and price history do not run background purchase verification. Registrations remain submissions rather than being inferred as completed sales. The activity feed is historical context; ownership, availability, and the order book still come exclusively from live process state.
Asset pages render the current one-unit order book and any UDL/license fields present in the process state. Missing license metadata is shown as absent rather than inferred.
npm install
npm run startVite serves the application on http://127.0.0.1:3000 by default. When the PermawebOS
wallet is connected in Bazar, Bazar uses its injected window.aoFetch singleton
by default, sharing AO.js peer and rate-limit state with other applications.
The AO Core control in the header can disable that transport and use Bazar's own
AO.js client instead. Bazar routes AO requests to root-relative paths on the
origin serving the app by default. In local development, Vite proxies those
same-origin AO requests to https://mystical.computer, a stock HyperBEAM v0.11.1
node, by default. To use another AO-Core node, such as https://arweave.net, set
its origin when starting Vite:
AO_CORE_PROXY_TARGET=http://127.0.0.1:3101 npm run startYou can also set AO_CORE_PROXY_TARGET in .env.local. Use the HTTP or HTTPS
origin of your AO-Core node. Leave VITE_COMPUTE_GATEWAY and the node query
parameter unset to use the proxy. Those settings still let the browser connect
directly to one or more AO-Core nodes:
http://127.0.0.1:3000/?node=https://alpha.example,https://charlie.example#/asset/…
Bazar tries the listed nodes in order, and the first node answers every read. A read moves to the next node on an error, a not-found, or no headers within 1.5 seconds. Process-state reads also move on an HTML answer or an answer without state. List the fastest correct node first.
The published site is built with VITE_COMPUTE_GATEWAY=https://arweave.net (see the deploy
workflow). bazar.arweave.net serves the app through an Arweave name and does not compute
AO process state itself, so reads go straight to arweave.net rather than trying the serving
origin first.
Applying the header control persists the peer list and transport selection in the page URL. Bazar does not silently switch to its local fallback after a request has been sent through PermawebOS; local AO.js is selected only when PermawebOS is unavailable, its wallet is not connected in Bazar, or the user disables it. The routing toggle retains its preference while disconnected or using another wallet; public collections use Bazar's configured peers until PermawebOS connects.
Arweave content and non-GraphQL API requests use the gateway serving the site. During local development
they fall back to https://arweave.net; set VITE_ARWEAVE_GATEWAY or append the advanced
arweave-node query parameter when another Arweave gateway is required:
http://127.0.0.1:3000/?arweave-node=http://127.0.0.1:1984#/asset/…
The AO peer pool and Arweave gateway selection are independent. Transactions are signed by the connected wallet and submitted through the selected Arweave gateway.
After a listing, cancellation, transfer or fungible-token transaction is submitted, Bazar
confirms it with several Arweave observers: the selected gateway, plus Arweave's own nodes
(tip-1–tip-4 and chain-1–chain-3 at arweave.xyz, port 1984). Those nodes serve plain
HTTP only, so an HTTPS page reaches them through an AO-Core node that runs ~relay@1.0: the first
AO peer, or the node named in VITE_ARWEAVE_OBSERVER_RELAY. The deploy workflow
sets it to https://mystical.computer until arweave.net serves ~relay@1.0; remove it then. Set VITE_ARWEAVE_OBSERVER_NODES to a
comma-separated list of origins to observe other nodes. A confirmation needs at least two
reachable observers; when fewer stay reachable for 15 seconds (for example, no relay-capable
peer), Bazar says it cannot verify the transaction from here instead of waiting, and the signed
transaction stays saved for a later resume. Purchases and the upload activity panel use the same
observers but do not yet report a shortfall.
Builds and the dev server load no analytics script by default. To include one,
set VITE_ANALYTICS_SRC to its HTTPS URL when building, or in .env.local:
VITE_ANALYTICS_SRC='https://stats.forward.computer/~analytics@1.0/script?key=0IQ2BPbwAoLoHaNyABbfLClzA4siDxLEOkOpcol_Jg4' npm run buildVite then adds it to index.html as an async script at the end of <body>.
The published token@1.0 implementation is
TmTc-Tjo8WWrp6Th8Kgqs7azjIKHgyNIcvZ6NW-zvps. A standard
feat/name-token node should pin it together with the devices it composes:
{
"trusted-devices": {
"process-outbox@1.0": "HOcPV7wxMHYb3rSQ3EfykQhHx_b8waRWhXolhcBNgHo",
"reference@1.0": "dRkm83Whq0qNE6We0oekl9Ngymgb7y3Otr-Smlatn54",
"security@1.0": "ARgymad5oYZcWPpxuV-A9hoSgmm4ElgPIvxMwmeh674",
"token@1.0": "TmTc-Tjo8WWrp6Th8Kgqs7azjIKHgyNIcvZ6NW-zvps"
}
}npm run build
npm test
git diff --checkThe purchase workflow stores signed transactions and deterministic recovery metadata locally until live process state proves completion. Reloading does not sign or pay twice.
Build and publish the static application with a JSON Arweave key in
DEPLOY_KEY:
DEPLOY_KEY="$(jq -c . /path/to/key.json)" npm run deploy:mainThe deployment command prints the immutable Arweave manifest ID. No service is deployed because the build is entirely static.
Bazar can place every immutable deployment behind one ~reference@1.0
address. Initialize the reference once after an immutable deployment:
DEPLOY_KEY="$(jq -c . /path/to/key.json)" npm run reference:initThis creates a permanent, wallet-controlled reference whose public ID is saved
in the ignored .run-data/site-reference.json. Back up that public reference
ID. On another machine, provide it as BAZAR_REFERENCE_ID; the wallet remains
the authority and must never be committed.
The normal npm run deploy:main workflow is unchanged: it publishes an
immutable manifest and does not move any reference or name. For reference
testing, npm run deploy:reference uploads the immutable manifest and then
updates the test reference exactly once. Preview a signed reference item
without posting it:
DEPLOY_KEY="$(jq -c . /path/to/key.json)" npm run reference:set -- --dry-runReference updates are permanent public ANS-104 items sent directly to the
Mystical HyperBEAM bundler with bundler-subject: body; they do not use Turbo.
The test reference does not update bazar.arweave.net. The stable URL can take
several minutes to reflect a newly accepted target.
The repository includes deterministic generation and publication scripts for
two 100-piece PNG collections. Generated data, test wallets, and publication
ledgers live under the ignored .run-data/ directory; private keys are never
committed.
python scripts/generate_test_collections.py
node scripts/publish_collection_media.mjs
node scripts/publish_asset_processes.mjs
node scripts/fund_test_parties.mjsPublication scripts read ~/src/Documents/hyperbeam-key.json by default. Set
BAZAR_TEST_WALLET to use a different local key file.
The legacy test-publication scripts still describe their historical two-step media/process fixtures. Assets created through the application use the atomic single-transaction layout described above.
ISC