Website for the Co-op Marketplace
  • HTML 40.7%
  • Rust 30.3%
  • CSS 23.7%
  • JavaScript 4.9%
  • Makefile 0.4%
Find a file
Emre 7d2c6bd2c8 Add AI capacity as a Stage 1 marketplace product
Reflects the "AI capacity as a Stage 1 product" requirements update
(coop-marketplace-requirements.md / Required_Update PDF).

- Products: replace the "Inference (coming soon)" placeholder with a
  live AI product (the AI Broker) at /products/ai — one OpenAI/
  OpenRouter-compatible API for LLM inference, TTS, STT, embeddings,
  and agents, billed per use. Update nav, footer, home grid, pricing.
- Settlement granularity: change "pay by the second" copy to per-hour
  (one-hour minimum) for slices, per-use for AI, per-GB for bandwidth.
- Dashboard: new AI usage console at /app/ai (endpoint, API keys,
  services, per-request usage); add it to the sidebar and create modal.
- Credits: add recurring monthly plans ($20/$50/$100) and a note that
  one balance covers AI, compute, storage, bandwidth, and gateway.
- Home products section: link to the human-powered AI Services site.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-22 21:18:44 +03:00
src Add AI capacity as a Stage 1 marketplace product 2026-06-22 21:18:44 +03:00
static Add AI capacity as a Stage 1 marketplace product 2026-06-22 21:18:44 +03:00
templates Add AI capacity as a Stage 1 marketplace product 2026-06-22 21:18:44 +03:00
.gitignore Port site onto hero_website_lib (Hero Website Framework) 2026-06-11 17:29:44 +01:00
Cargo.lock Port site onto hero_website_lib (Hero Website Framework) 2026-06-11 17:29:44 +01:00
Cargo.toml Port site onto hero_website_lib (Hero Website Framework) 2026-06-11 17:29:44 +01:00
Makefile Port site onto hero_website_lib (Hero Website Framework) 2026-06-11 17:29:44 +01:00
README.md Add AI capacity as a Stage 1 marketplace product 2026-06-22 21:18:44 +03:00
rust-toolchain.toml Port site onto hero_website_lib (Hero Website Framework) 2026-06-11 17:29:44 +01:00
service.toml Port site onto hero_website_lib (Hero Website Framework) 2026-06-11 17:29:44 +01:00

www_marketplace

Naming: www_marketplace is the repository's working name and Slice (slice.coop) is the working brand name. Both are placeholders — if the team picks different names, swap the brand in src/content.rs and templates/, and rename the repo as needed.

The capacity marketplace and revenue engine of the Co-op Cloud ecosystem. Built on the Hero Website Framework (hero_website_lib): the library provides the framework routes (admin, auth, blog, API) and request middleware, while this repo supplies the site-specific content, templates, static assets, and page handlers.

Consumer-only. This site is for buying and running capacity (GPU, compute, storage) from prepaid EUR credits. There is no "sell your node / become a provider" surface — that lives in a different portal.

Project structure (the key elements)

www_marketplace/
  Cargo.toml        # Rust project config (depends on hero_website_lib)
  service.toml      # hero service manifest (binary + Unix socket)
  Makefile          # make run / make dev (defaults to PORT=2225)
  src/
    main.rs         # wires hero_website_lib: state, router, middleware
    handlers.rs     # site-specific page handlers (marketing + /app)
    content.rs      # structured page data
  templates/        # Tera templates (base layout + pages)
    app/            # authenticated dashboard (/app/*)
    auth/           # login / register
    partials/       # shared partials (header, sidebar, modals, badges)
  static/           # css, js, images (dark mode toggle ships in js)

The admin panel, user auth, blog, and visitor analytics are provided out of the box by hero_website_lib (pulled as a git dependency from Forge); the admin panel lives at /admin. This repo only adds the site-specific pages. Templates and static/ assets are embedded into the binary at build time, so changing them requires a rebuild.

Run

make run            # http://localhost:2225
make run PORT=2300  # override the port
make dev            # debug build, faster to compile

The --port listener is for local development only. In production the binary binds a Unix socket (website_marketplace/web_public.sock) behind a reverse proxy and is managed by hero_proc via --start / --stop.

Pages

Marketing site (public)

  • / Home
  • /products/gpu GPU Slices
  • /products/compute Compute Slices
  • /products/storage Storage
  • /products/ai AI (AI Broker: inference, TTS, STT, embeddings, agents)
  • /products/ai-box AI Box
  • /pricing Pricing
  • /business For Business
  • /docs Get started (outline)

Authenticated dashboard (/app/*)

Consumer-only app shell:

  • /app Overview — balance/spend stats, recent activity
  • /app/compute Compute — running instances
  • /app/compute/new Create — launch an instance
  • /app/compute/{id} Instance detail
  • /app/ai AI — usage console, API keys, per-request usage
  • /app/storage Storage — buckets/files
  • /app/templates Templates — reusable launch configs
  • /app/billing Credits — balance, add funds, monthly plan, history
  • /app/account Account — profile, SSH keys, API keys

Login/register (templates/auth/) and the /admin panel are handled by hero_website_lib; this repo only supplies the templates.

Notes (do not publish without confirming)

All prices and specs in content.rs are illustrative placeholders. Confirm live prices, regions, and the sustainability claim before publishing. Dark mode ships by default; settlement runs on SPORE under the hood but is never surfaced to buyers (prices show in EUR and USD).