<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/coding-a-trading-card-game-on-atprotocol-zdxjllxka" -->

---
title: Coding a trading card game on ATProtocol | daily.dev
description: ATProtocol, the open protocol behind Bluesky, enables decentralized data storage and identity management that developers can build applications on. The...
canonical: https://daily.dev/posts/coding-a-trading-card-game-on-atprotocol-zdxjllxka
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Coding a trading card game on ATProtocol | daily.dev
og:description: ATProtocol, the open protocol behind Bluesky, enables decentralized data storage and identity management that developers can build applications on. The...
og:url: https://daily.dev/posts/coding-a-trading-card-game-on-atprotocol-zdxjllxka
og:image: https://api.daily.dev/og/posts/zdXJLlXKa.png
og:image:alt: Coding a trading card game on ATProtocol
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Coding a trading card game on ATProtocol

**[marmelab](https://daily.dev/sources/Marmelab)** · 6 min read · 2 upvotes · 0 comments

## Summary

ATProtocol, the open protocol behind Bluesky, enables decentralized data storage and identity management that developers can build applications on. The protocol uses DIDs (Distributed IDs) for identity, repositories for data storage, Personal Data Servers (PDS) for hosting, and relays with firehose streams for data discovery. A practical demonstration shows how to build a trading card game using Next.js and the @atproto/api library, covering authentication with JWT tokens, creating custom collections, uploading images as blobs, and reading records from repositories. The implementation proves straightforward, requiring minimal code to create custom data structures without complex schemas or approval processes.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://marmelab.com/blog/2026/01/30/coding-a-trading-card-game-on-atproto.html>

## Similar posts on daily.dev

- [AI agents speed up development — data access slows them down](https://daily.dev/posts/ai-agents-speed-up-development-data-access-slows-them-down-mrpac8kdv) · The New Stack · 0 upvotes · 0 comments
- [Unlocking the Codex harness: how we built the App Server](https://daily.dev/posts/unlocking-the-codex-harness-how-we-built-the-app-server-rkxkl8m8d) · OpenAI · 1 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#nextjs](https://daily.dev/tags/nextjs), [#decentralization](https://daily.dev/tags/decentralization)

[View this post on daily.dev](https://daily.dev/posts/coding-a-trading-card-game-on-atprotocol-zdxjllxka)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Coding a trading card game on ATProtocol","url":"https://daily.dev/posts/coding-a-trading-card-game-on-atprotocol-zdxjllxka","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/coding-a-trading-card-game-on-atprotocol-zdxjllxka"},"datePublished":"2026-01-30T10:37:05.709Z","dateModified":"2026-01-30T10:37:27.108Z","description":"ATProtocol, the open protocol behind Bluesky, enables decentralized data storage and identity management that developers can build applications on. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/87e73f3913b89b9321c6ed1b26c3d9b1?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/87e73f3913b89b9321c6ed1b26c3d9b1?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"marmelab","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"marmelab","logo":"https://media.daily.dev/image/upload/s--AeMXoaI9--/f_auto/v1716621144/logos/Marmelab","url":"https://daily.dev/sources/Marmelab"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/coding-a-trading-card-game-on-atprotocol-zdxjllxka","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,nextjs,decentralization","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"marmelab","item":"https://daily.dev/sources/Marmelab"},{"@type":"ListItem","position":3,"name":"Coding a trading card game on ATProtocol"}]}
```

