CV

TESL Decks.

Free deck builder and card database for The Elder Scrolls: Legends, with 22 page routes, 1,233 cards and an English and Russian interface. It ships as a PWA and signs players in with Discord, Google, Steam or an email code. The hard parts were reading card data out of the game client, Steam sign-in and a deck code compatible with the game.

Games & gambling

Year
2026
Personal project
My part
Sole developer
Core stack
53 technologies
Better Auth, Docker, Drizzle, Next.js

My role

I built it alone with AI-assisted workflows: I made the product and architecture decisions, agents wrote much of the code.

Full stack

Capabilities

Card browser

  • Virtualized grid and table with URL-as-state filters and word-start search that recovers from a wrong keyboard layout
  • Card pages with an alt-art picker, rules hints, related tokens and top decks using the card

Deck builder

  • Undo and redo, cookie and URL drafts, and a clipboard import offer
  • Rules validation for copy limits, attributes and deck size
  • Deck code for the game's own SP format with alt arts and an optional name suffix

Sharing and public decks

  • Private, unlisted and public saves with a catalog sorted by likes, views and quality
  • PNG export and a tall share image that lists every card

Accounts and admin

  • Sign-in with Discord, Google, Steam and an email code, plus a Discord deck-claim flow
  • Admin inbox for deck and comment reports, a users table with bans and feedback routed to GitHub issues

Offline and PWA

News and languages

  • News with RSS and comments, and a Reborn leaderboard synced daily
  • English and Russian with hreflang, a sitemap and per-page share images

Patterns and decisions

  • Card data ships as static JSON, so the browser and the offline mode need no round trip. Only user data lives in PostgreSQL on Neon, through Drizzle.
  • The API is oRPC with a contract, procedure and use-case split per feature. A check script fails if a contract imports the database client, so contracts stay safe to share with the browser.
  • A private or hidden deck shows the same not-found page as a missing one, but under HTTP 200, while an id that never existed gets a real 404. I accepted the trade-off and recorded it in the docs.
  • Agents wrote much of the code, so the rules are mechanical. Code rules, JS weight limits per route and a check on cache headers guard it, and an agent that wrote code does not review it.

Cases

Steam is OpenID. Steam sign-in is OpenID 2.0, not OAuth, so no built-in Better Auth provider fits. I had a Better Auth plugin built with login, callback and link endpoints. Steam gives no token, so the server checks the assertion in the callback URL itself (endpoint, exact return address, a 17-digit claimed id, signed fields, nonce age) and then confirms it with Steam. The nonce is claimed once through an atomic insert, so a replayed assertion fails. Steam gives no email, so the user gets an unverified placeholder address and is never merged by address. Linking to an existing account is an explicit step from a signed-in session.

Card data from a game client. The official card API was dead, so the data comes from the client. It keeps cards in Unity bundles as a .NET BinaryFormatter stream that the standard reader rejects. The card reader is a schema-guided Python reader that takes member types from the game's assembly. A step turns the client's dynamic rules-text markup into the text a card shows, a leftover bracket fails the run for that card, and a test compares every card with the client's own fields.

Names and alt arts in the deck code. The game's code has no name field, and its import reads alt-art codes but writes only base codes. The deck code codec keeps alt-art codes, adds an optional name and art suffix read at the last colon, and still reads the older form. A C# plugin restores name and banner in the Reborn client, the community revival of the game. Copy limits are applied copy by copy in the game's order.

Core stack

Screenshots