ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

Add a React frontend to your Express app in 7 lines of code with Bun

Jan 17, 2025, 5:31 AM

Record data

{
  "uri": "at://did:plc:76vf7xzncfaxw3m6qemqpmj4/app.bsky.feed.post/3lfw2whpq6s26",
  "cid": "bafyreifosgavatbsmzkknxok3ah6chidcfcvg7m65aefpr35kjkj3hwrjy",
  "value": {
    "text": "Add a React frontend to your Express app in 7 lines of code with Bun",
    "$type": "app.bsky.feed.post",
    "embed": {
      "$type": "app.bsky.embed.images",
      "images": [
        {
          "alt": "mport useStatic from \"bun-use-static\";\nimport app from \"./my-express-app\";\nimport mySinglePageApp from \"./dashboard.html\";\n\n// Get the node:http Server from calling app.listen()\nconst server = app.listen(3000, () => {\n  console.log(`Example app listening on port 3000`);\n});\n\nuseStatic(server, {\n  \"/dashboard\": mySinglePageApp,\n});",
          "image": {
            "$type": "blob",
            "ref": {
              "$link": "bafkreictfop3xlcn2qycyolurosywqmosraors4p5nfhcwzivj2pyzpb4q"
            },
            "mimeType": "image/jpeg",
            "size": 748801
          },
          "aspectRatio": {
            "width": 2000,
            "height": 1461
          }
        }
      ]
    },
    "langs": [
      "en"
    ],
    "createdAt": "2025-01-17T05:31:26.794Z"
  }
}