this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add Library page

modamo-gh 3ae5294e bdb25b06

+67 -1
+5
app/library/page.tsx
··· 1 + const Library = () => { 2 + return <div></div> 3 + } 4 + 5 + export default Library;
+3 -1
app/page.tsx
··· 5 5 const Home = async () => { 6 6 const session = await getSession(); 7 7 8 - if (session) { 8 + console.log(!!session) 9 + 10 + if (!session) { 9 11 return ( 10 12 <main className="bg-amber-100 grid grid-cols-3 h-screen p-4 w-screen"> 11 13 <section className="flex col-span-1 items-center justify-center ">
+17
lib/atp/agent.ts
··· 1 + import { getOAuthClient } from "../auth/client"; 2 + import { getDID } from "../auth/session"; 3 + 4 + export const getAgent = async () => { 5 + const did = await getDID(); 6 + 7 + if(!did){ 8 + return null; 9 + } 10 + 11 + const client = await getOAuthClient(); 12 + const oAuthSession = await client.restore(did); 13 + 14 + if(!oAuthSession){ 15 + return null; 16 + } 17 + };
+41
package-lock.json
··· 8 8 "name": "bambu", 9 9 "version": "0.1.0", 10 10 "dependencies": { 11 + "@atproto/api": "^0.18.20", 11 12 "@atproto/oauth-client-node": "^0.3.16", 12 13 "better-sqlite3": "^12.6.2", 13 14 "kysely": "^0.28.11", ··· 159 160 "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", 160 161 "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", 161 162 "license": "ISC" 163 + }, 164 + "node_modules/@atproto/api": { 165 + "version": "0.18.20", 166 + "resolved": "https://registry.npmjs.org/@atproto/api/-/api-0.18.20.tgz", 167 + "integrity": "sha512-BZYZkh2VJIFCXEnc/vzKwAwWjAQQTgbNJ8FBxpBK+z+KYh99O0uPCsRYKoCQsRrnkgrhzdU9+g2G+7zanTIGbw==", 168 + "license": "MIT", 169 + "dependencies": { 170 + "@atproto/common-web": "^0.4.15", 171 + "@atproto/lexicon": "^0.6.1", 172 + "@atproto/syntax": "^0.4.3", 173 + "@atproto/xrpc": "^0.7.7", 174 + "await-lock": "^2.2.2", 175 + "multiformats": "^9.9.0", 176 + "tlds": "^1.234.0", 177 + "zod": "^3.23.8" 178 + } 179 + }, 180 + "node_modules/@atproto/api/node_modules/zod": { 181 + "version": "3.25.76", 182 + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", 183 + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", 184 + "license": "MIT", 185 + "funding": { 186 + "url": "https://github.com/sponsors/colinhacks" 187 + } 162 188 }, 163 189 "node_modules/@atproto/common-web": { 164 190 "version": "0.4.15", ··· 2742 2768 "funding": { 2743 2769 "url": "https://github.com/sponsors/ljharb" 2744 2770 } 2771 + }, 2772 + "node_modules/await-lock": { 2773 + "version": "2.2.2", 2774 + "resolved": "https://registry.npmjs.org/await-lock/-/await-lock-2.2.2.tgz", 2775 + "integrity": "sha512-aDczADvlvTGajTDjcjpJMqRkOF6Qdz3YbPZm/PyW6tKPkx2hlYBzxMhEywM/tU72HrVZjgl5VCdRuMlA7pZ8Gw==", 2776 + "license": "MIT" 2745 2777 }, 2746 2778 "node_modules/axe-core": { 2747 2779 "version": "4.11.1", ··· 6906 6938 }, 6907 6939 "funding": { 6908 6940 "url": "https://github.com/sponsors/jonschlinkert" 6941 + } 6942 + }, 6943 + "node_modules/tlds": { 6944 + "version": "1.261.0", 6945 + "resolved": "https://registry.npmjs.org/tlds/-/tlds-1.261.0.tgz", 6946 + "integrity": "sha512-QXqwfEl9ddlGBaRFXIvNKK6OhipSiLXuRuLJX5DErz0o0Q0rYxulWLdFryTkV5PkdZct5iMInwYEGe/eR++1AA==", 6947 + "license": "MIT", 6948 + "bin": { 6949 + "tlds": "bin.js" 6909 6950 } 6910 6951 }, 6911 6952 "node_modules/to-regex-range": {
+1
package.json
··· 9 9 "lint": "eslint" 10 10 }, 11 11 "dependencies": { 12 + "@atproto/api": "^0.18.20", 12 13 "@atproto/oauth-client-node": "^0.3.16", 13 14 "better-sqlite3": "^12.6.2", 14 15 "kysely": "^0.28.11",