1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>co/core</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
<style>
pre.out:empty { display: none; }
pre.out { white-space: pre-wrap; word-break: break-all; max-height: 30rem; overflow: auto; }
form { margin-bottom: 2rem; }
</style>
<script type="importmap">
{
"imports": {
"@atproto/oauth-client-browser": "https://esm.sh/@atproto/oauth-client-browser@0.5.14",
"atlibs/": "./atlibs/"
}
}
</script>
<script type="module" src="./main.js"></script>
</head>
<body>
<main class="container">
<h1>co/core</h1>
<p>The <a href="https://cocore.dev">cocore.dev</a> AI cooperative, as atlibs modules: each action runs in this page as you, held to its own module's scope.</p>
<form id="login" hidden>
<input name="handle" placeholder="you.bsky.social" autocomplete="username" required>
<button>Sign in</button>
<small id="login-error"></small>
</form>
<section id="signed-in" hidden>
<p>Signed in as <code id="who"></code> <a href="#" id="logout">Sign out</a></p>
<p><small>Inference runs as you, authorized by a service-auth token this page mints from your session (no API key). It needs a co/core account: connect at <a href="https://cocore.dev">cocore.dev</a> once.</small></p>
<div id="actions"></div>
</section>
</main>
</body>
</html>