ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

Day 12 — send custom types across the network boundary in SvelteKit, whether it's a class containing reactive state, a class used by your database ORM library, or whatever. Just export a `transport` object from your `hooks.js` šŸŽ docs svelte.dev/docs/kit/hoo... šŸŽ demo stackblitz.com/edit/sveltej...

Dec 12, 2024, 4:00 PM

Record data

{
  "uri": "at://did:plc:b6gbde64ngpelprsvnphc2l2/app.bsky.feed.post/3ld4ncjryfs2g",
  "cid": "bafyreig6gfg6xytrmjaagymop6cxqyspttryupa5abrs5uurqxgzo5xi4u",
  "value": {
    "text": "Day 12 — send custom types across the network boundary in SvelteKit, whether it's a class containing reactive state, a class used by your database ORM library, or whatever. Just export a `transport` object from your `hooks.js`\n\nšŸŽ docs svelte.dev/docs/kit/hoo...\nšŸŽ demo stackblitz.com/edit/sveltej...",
    "$type": "app.bsky.feed.post",
    "embed": {
      "$type": "app.bsky.embed.images",
      "images": [
        {
          "alt": "screenshot of a stackblitz app showing the new custom type transport feature in sveltekit",
          "image": {
            "$type": "blob",
            "ref": {
              "$link": "bafkreiaywhb6axlzxzli32opzm3ew3kxsboju7xl7qlswy6bvozdvg6yri"
            },
            "mimeType": "image/jpeg",
            "size": 932268
          },
          "aspectRatio": {
            "width": 2000,
            "height": 1036
          }
        }
      ]
    },
    "langs": [
      "en"
    ],
    "reply": {
      "root": {
        "cid": "bafyreieay7byr4wjm7fybgxcjbsa7b6v36dc3jmrv3gwtoxlffk3lh33ve",
        "uri": "at://did:plc:b6gbde64ngpelprsvnphc2l2/app.bsky.feed.post/3lcavobxn7c2k"
      },
      "parent": {
        "cid": "bafyreigwi42un5o5ubl56jcowlfc6sx2bj7pvhdmgnnjmkhzku5yuag2me",
        "uri": "at://did:plc:b6gbde64ngpelprsvnphc2l2/app.bsky.feed.post/3ld27t33mlc2q"
      }
    },
    "facets": [
      {
        "index": {
          "byteEnd": 266,
          "byteStart": 240
        },
        "features": [
          {
            "uri": "https://svelte.dev/docs/kit/hooks#Universal-hooks-transport",
            "$type": "app.bsky.richtext.facet#link"
          }
        ]
      },
      {
        "index": {
          "byteEnd": 307,
          "byteStart": 277
        },
        "features": [
          {
            "uri": "https://stackblitz.com/edit/sveltejs-kit-template-default-b5zbxomg?file=src%2Fhooks.js",
            "$type": "app.bsky.richtext.facet#link"
          }
        ]
      }
    ],
    "createdAt": "2024-12-12T16:00:42.512Z"
  }
}