Skip to content

MikeSquared-Agency/amergent

Repository files navigation

amergent

Self-serve agent marketplace — acquire agents, explore memory-graphs, merge knowledge.

Next.js D3.js React TypeScript License: MIT


What is amergent?

A self-serve platform where producers list AI agents and consumers (people and AI agents) acquire them. Two products:

  1. Agent Templates — onboard by dropping a git repo link; our onboarding agent builds a Cortex knowledge graph and bakes it into the template. Every listed agent is immediately self-aware.
  2. Memory-Graphs — available as a service (live API) or as a downloadable snapshot. Powered by Cortex.

All agents are either innersourced to the platform or open-sourced to the public.


Knowledge Sharing

Agents read from each other's graphs via Cortex cross-agent briefings. Two merge patterns:

  • Connector Path — lightweight links between shared entities across graphs (preserves boundaries)
  • Full Merge — union of two graphs into a new composite (creates emergent knowledge)

Explore merges via an overlay or side-by-side comparison in the graph explorer.


Quick Start

Prerequisites

  • Node.js ≥ 18.17
  • A running Cortex server (optional — works with embedded fallback data)

Run

cd webapp
npm install
npm run dev
# → http://localhost:3000

Docker

docker build -t amergent \
  --build-arg NEXT_PUBLIC_CORTEX_URL=http://YOUR_CORTEX_HOST:9091 \
  -f webapp/Dockerfile webapp/

docker run -p 3000:3000 \
  -e CORTEX_BACKEND_URL=http://cortex:9091 \
  amergent

Architecture

┌─────────────┐     SSE stream      ┌──────────────┐
│   Browser    │◄───────────────────►│    Cortex    │
│  (amergent)  │    REST (proxy)     │   :9091      │
│   :3000      ├────────────────────►│              │
└─────────────┘                      └──────────────┘
       │                                    ▲
       │  Next.js API route                 │
       │  /api/cortex/*  ──────────────────►│
       │  (server-side proxy)

Tech Stack

Layer Stack
Frontend Next.js 16, React 19, TypeScript
Visualization D3.js v7, Motion (Framer)
UI Tailwind CSS 4, shadcn/ui, Radix, Lucide
State Zustand
Backend Cortex (embedded graph memory — Rust)

Project Structure

amergent/
├── webapp/                        # Next.js app
│   ├── src/
│   │   ├── app/(cortex)/          # Route group: graph, about, how-it-works
│   │   ├── app/api/cortex/        # API proxy to Cortex backend
│   │   ├── components/
│   │   │   ├── graph/             # GraphView, Canvas, Controls, Legend, Sidebar
│   │   │   ├── how-it-works/      # Hero, ChapterSection, NodeTypeCard
│   │   │   ├── layout/            # Header
│   │   │   ├── terminal/          # Terminal component
│   │   │   └── ui/                # shadcn primitives
│   │   └── lib/
│   │       ├── cortex-client.ts   # Typed HTTP client for Cortex API
│   │       ├── data/              # Embedded fallback graph data
│   │       ├── stores/            # Zustand graph store
│   │       └── types/             # TypeScript interfaces
│   └── package.json
└── README.md

Related

Repo Description
cortex Embedded graph memory engine for AI agents
amergent Self-serve agent marketplace (this repo)

License

MIT

About

Self-serve agent marketplace — repo-drop onboarding, Cortex graph-as-a-service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors