Signed in as {user.profile?.handle ?? user.did}
{:else} {/if} ``` `@foxui/core` also exports `Avatar`, `Input`, and other UI primitives you can use. ### `src/routes/user/+page.svelte` (basic only) Only if the user chose `basic`. Create this file: ```svelteSigned in as {user.profile?.handle ?? user.did}
{:else}Signed in as {user.did}
{:else} {/if} ``` ### Write operations ```ts import { putRecord, deleteRecord, uploadBlob, createTID } from '$lib/atproto'; await putRecord({ collection: 'your.collection.name', rkey: createTID(), record: { text: 'hello', createdAt: new Date().toISOString() } }); await deleteRecord({ collection: 'your.collection.name', rkey: 'some-key' }); const blob = await uploadBlob({ blob: file }); ``` ### Read operations (no auth needed) ```ts import { listRecords, getRecord, getDetailedProfile } from '$lib/atproto'; const records = await listRecords({ did: 'did:plc:...', collection: 'your.collection.name' }); const profile = await getDetailedProfile({ did: 'did:plc:...' }); ```