How oceanprotocol/market works
Ocean Marketplace is a Next.js data-market frontend. Users discover assets through home and search, inspect asset details, then buy or download them; publishers use a multi-step wizard to configure metadata, services, pricing, and submit on-chain and to the metadata cache. The graph preserves profile, messaging, privacy, wallet/network, and market-data capabilities identified by the tree and README. Some branches are documented or indexed but unsampled, so those relationships are omitted rather than inferred.
Main entry points: Publish/index.tsx Publish wizard · Search/index.tsx Search results · AssetActions/index.tsx Buy and download · index.ts Aquarius client
Components 25
App routes
- Home
src/pages/index.tsx - Search route
src/pages/search.tsx - Asset route
src/pages/asset/[did]/index.tsx - Publish route
src/pages/publish/[step].tsx
Asset discovery
- Home sections
src/components/Home/SectionQueryResult.tsx - Search bar
src/components/Header/SearchBar.tsx - Search results
src/components/Search/index.tsx - Filters and sort
src/components/Search/Filters.tsx - Asset detail
src/components/Asset/index.tsx - Buy and download
src/components/Asset/AssetActions/index.tsx
Publishing
- Publish wizard
src/components/Publish/index.tsx - Wizard steps
src/components/Publish/_constants.tsx - Publish processing
src/components/Publish/_utils.ts
Accounts and wallet
- Profiles
src/components/Profile/index.tsx - Direct messages
src/@context/DirectMessages/index.tsx - Privacy center
src/pages/privacy/[slug].tsx - Wallet and networks
src/@utils/wallet/index.ts
Protocol integrations
- Market metadata
src/@context/MarketMetadata/index.tsx - Aquarius client
src/@utils/aquarius/index.ts
Other components
- Marketplace user
- Aquarius metadata cache
- Ocean chains
- Ocean provider
- Ocean blockchain contracts
- Graph data services
Connections 28
- Marketplace user → Home: opens
- Marketplace user → Search bar: enters query
src/components/Header/SearchBar.tsx - Home → Home sections: renders
- Home sections → Aquarius client: queries assets
src/components/Home/SectionQueryResult.tsx - Search route → Search results: renders
src/pages/search.tsx - Search bar → Search route: navigates
src/components/Header/SearchBar.tsx - Search results → Filters and sort: renders
src/components/Search/index.tsx - Search results → Aquarius client: requests results
src/components/Search/index.tsx - Aquarius client → Aquarius metadata cache: queries metadata
src/@utils/aquarius/index.ts - Marketplace user → Asset route: opens asset
- Asset route → Asset detail: renders
- Asset detail → Buy and download: renders
- Buy and download → Ocean blockchain contracts: purchases access
- Buy and download → Ocean provider: downloads asset
- Marketplace user → Publish route: opens publishing
- Publish route → Publish wizard: renders
- Publish wizard → Wizard steps: renders steps
src/components/Publish/index.tsx - Publish wizard → Publish processing: creates tokens and DDO
src/components/Publish/index.tsx - Publish wizard → Ocean blockchain contracts: registers NFT metadata
src/components/Publish/index.tsx - Publish processing → Ocean blockchain contracts: creates tokens and pricing
- Publish wizard → Ocean provider: encrypts DDO
- Marketplace user → Profiles: views profile
- Marketplace user → Direct messages: sends messages
- Marketplace user → Privacy center: sets privacy choices
src/pages/privacy/[slug].tsx - Marketplace user → Wallet and networks: connects wallet
- Wallet and networks → Ocean chains: selects network
src/@utils/wallet/index.ts - Market metadata → Ocean blockchain contracts: reads fees and tokens
- Market metadata → Graph data services: loads market data