A small tool to view real-world ActivityPub objects as JSON! Enter a URL
or username from Mastodon or a similar service below, and we'll send a
request with
the right
Accept
header
to the server to view the underlying object.
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"ostatus": "http://ostatus.org#",
"atomUri": "ostatus:atomUri",
"inReplyToAtomUri": "ostatus:inReplyToAtomUri",
"conversation": "ostatus:conversation",
"sensitive": "as:sensitive",
"toot": "http://joinmastodon.org/ns#",
"votersCount": "toot:votersCount",
"blurhash": "toot:blurhash",
"focalPoint": {
"@container": "@list",
"@id": "toot:focalPoint"
},
"Hashtag": "as:Hashtag"
}
],
"id": "https://mastodon.social/users/sir_pepe/statuses/113583637104569354",
"type": "Note",
"summary": null,
"inReplyTo": null,
"published": "2024-12-02T14:12:39Z",
"url": "https://mastodon.social/@sir_pepe/113583637104569354",
"attributedTo": "https://mastodon.social/users/sir_pepe",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://mastodon.social/users/sir_pepe/followers"
],
"sensitive": false,
"atomUri": "https://mastodon.social/users/sir_pepe/statuses/113583637104569354",
"inReplyToAtomUri": null,
"conversation": "tag:mastodon.social,2024-12-02:objectId=862325242:objectType=Conversation",
"content": "<p>TIL: TypeScript's assertion signatures work for functions that only check truthyness/falsyness conditions. You don't HAVE to provide the "is Y" bit in the return type "asserts X is Y"</p><p><a href=\"https://www.typescriptlang.org/play/?#code/GYVwdgxgLglg9mABAQwM6oKYCcoAoIIAmMsCAXCmAJ4CUFamOqiBYxpSA3gFCKIzBEuAISt28MDUQ8+fKAAsscAO6IwGVQFEsSrLhoBuXogC+3M90IYIAG2RYMiGxiiJgcOPWoBtALqIAH0RUKCwYMABzQLUQGxsjbgZsPHc4Q25uVINEAHoc4NDwqKDkH18gA\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://www.</span><span class=\"ellipsis\">typescriptlang.org/play/?#code</span><span class=\"invisible\">/GYVwdgxgLglg9mABAQwM6oKYCcoAoIIAmMsCAXCmAJ4CUFamOqiBYxpSA3gFCKIzBEuAISt28MDUQ8+fKAAsscAO6IwGVQFEsSrLhoBuXogC+3M90IYIAG2RYMiGxiiJgcOPWoBtALqIAH0RUKCwYMABzQLUQGxsjbgZsPHc4Q25uVINEAHoc4NDwqKDkH18gA</span></a></p><p><a href=\"https://mastodon.social/tags/typescript\" class=\"mention hashtag\" rel=\"tag\">#<span>typescript</span></a> <a href=\"https://mastodon.social/tags/webdev\" class=\"mention hashtag\" rel=\"tag\">#<span>webdev</span></a></p>",
"contentMap": {
"en": "<p>TIL: TypeScript's assertion signatures work for functions that only check truthyness/falsyness conditions. You don't HAVE to provide the "is Y" bit in the return type "asserts X is Y"</p><p><a href=\"https://www.typescriptlang.org/play/?#code/GYVwdgxgLglg9mABAQwM6oKYCcoAoIIAmMsCAXCmAJ4CUFamOqiBYxpSA3gFCKIzBEuAISt28MDUQ8+fKAAsscAO6IwGVQFEsSrLhoBuXogC+3M90IYIAG2RYMiGxiiJgcOPWoBtALqIAH0RUKCwYMABzQLUQGxsjbgZsPHc4Q25uVINEAHoc4NDwqKDkH18gA\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://www.</span><span class=\"ellipsis\">typescriptlang.org/play/?#code</span><span class=\"invisible\">/GYVwdgxgLglg9mABAQwM6oKYCcoAoIIAmMsCAXCmAJ4CUFamOqiBYxpSA3gFCKIzBEuAISt28MDUQ8+fKAAsscAO6IwGVQFEsSrLhoBuXogC+3M90IYIAG2RYMiGxiiJgcOPWoBtALqIAH0RUKCwYMABzQLUQGxsjbgZsPHc4Q25uVINEAHoc4NDwqKDkH18gA</span></a></p><p><a href=\"https://mastodon.social/tags/typescript\" class=\"mention hashtag\" rel=\"tag\">#<span>typescript</span></a> <a href=\"https://mastodon.social/tags/webdev\" class=\"mention hashtag\" rel=\"tag\">#<span>webdev</span></a></p>"
},
"attachment": [
{
"type": "Document",
"mediaType": "image/png",
"url": "https://files.mastodon.social/media_attachments/files/113/583/624/353/400/126/original/d4f7bd2046c142fe.png",
"name": "function assert(condition: any): asserts condition {\n if (!condition) {\n throw new Error();\n }\n}\n\ndeclare let foo: any[] | string | null;\n\nassert(foo);\n\nfoo; // string | any[]",
"blurhash": "U6Ss51E3tQ_N-?xuxu%L4nRij^%N%Pt7xZkD",
"focalPoint": [
0,
0
],
"width": 590,
"height": 258
}
],
"tag": [
{
"type": "Hashtag",
"href": "https://mastodon.social/tags/code",
"name": "#code"
},
{
"type": "Hashtag",
"href": "https://mastodon.social/tags/typescript",
"name": "#typescript"
},
{
"type": "Hashtag",
"href": "https://mastodon.social/tags/webdev",
"name": "#webdev"
}
],
"replies": {
"id": "https://mastodon.social/users/sir_pepe/statuses/113583637104569354/replies",
"type": "Collection",
"first": {
"type": "CollectionPage",
"next": "https://mastodon.social/users/sir_pepe/statuses/113583637104569354/replies?only_other_accounts=true&page=true",
"partOf": "https://mastodon.social/users/sir_pepe/statuses/113583637104569354/replies",
"items": []
}
},
"likes": {
"id": "https://mastodon.social/users/sir_pepe/statuses/113583637104569354/likes",
"type": "Collection",
"totalItems": 3
},
"shares": {
"id": "https://mastodon.social/users/sir_pepe/statuses/113583637104569354/shares",
"type": "Collection",
"totalItems": 1
}
}