Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/INTEGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ Public, read-only, no keys. Any website can call these from the browser.
| `GET /api/streams/sender/{address}` | IDs of streams an address pays |
| `GET /api/streams/recipient/{address}` | IDs of streams an address receives |
| `GET /api/daos/{admin}` | An organisation by its admin address |
| `GET /api/organisations` | Every registered organisation, newest first, with the total from the contract |
| `GET /api/stats` | Total streams and organisations |
| `GET /api/blocks/current` | Current Stacks block height |

Expand Down
14 changes: 14 additions & 0 deletions frontend/src/app/api/organisations/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { jsonResponse, errorResponse } from "@/lib/openclaw-server";
import { getOrganisationDirectory } from "@/lib/organisations";

export const dynamic = "force-dynamic";

// GET /api/organisations: every organisation registered on stream-factory,
// newest first, with the authoritative total from get-dao-count.
export async function GET() {
try {
return jsonResponse(await getOrganisationDirectory());
} catch (err) {
return errorResponse(err);
}
}
19 changes: 19 additions & 0 deletions frontend/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,22 @@ body {
background: #f97316;
animation: float-up 2s ease-out infinite;
}

/* ============================================================================
Entrance (organisations directory). Off for users who ask for less motion.
============================================================================ */

@keyframes fade-up {
0% { opacity: 0; transform: translateY(12px); }
100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
.animate-fade-up {
animation: none;
}
}
Loading
Loading