#Enka Embed | A very fast Genshin Card Renderer built from ground-up.

64 messages ยท Page 1 of 1 (latest)

white bolt
#

Git: https://git.dgnr.us/astral/api
Website for the Discord embedder: https://card.dgnr.us
API Docs for integration with your own projects: https://api.dgnr.us

This was made when I was bored and to solve several issues with (youtuber I work for)'s website.

  • iframeing Enka lags the stream and ratelimits badly
  • Using enka.cards face the same issue with ratelimit, resolution of the card is limited(very noticeable when it's nearly fullscreen) and it was not fast enough for on-demand rendering
  • enka.cards doesn't give a good way to tell users that an error occured

So I spent days staring at devtools and writing JSX and calculating and came up with this.

  • renders takes about 900ms average, takes ~4 seconds average to appear on Discord.
  • profile links allows you to see all characters in showcase
  • friendly error messages that returns as an image
  • by default renders 2455x1024 WebP allowing as much zooming as you want without much breaking, while still being a little below Enka's original PNG size.

I'd love any suggestions y'all have.
Plans - as of 04/14/2026:

  • Endfield card - waiting for API
  • Web-based link generator with preview
  • Add flags reference to home page
heady galleon
#

I could have increased the resolution of the browser in enka.cards yk smh

white bolt
#

I wonder if I can make a script that analyses the original card and generate code out of it

#

(bored me, again)

white bolt
#

Update:
It now accepts character name instead of ID. Fuzzy name matching is there so it will match even with spelling mistakes or partial name. This also applies to the API.

white bolt
#

Update: card is now way closer to original card after some layout fixing

#

๐ŸŽ‰๐ŸŽ‰

white bolt
#

and the card generator has been relocated from card.dgnr.us to card.astrxl.dev but the old subdomain will still remain operational with no disadvantage

white bolt
# lunar bobcat

Should work now, Project Amber character list wasn't up to date so I switched the remaining small portion that still uses it to Enka's

lunar bobcat
white bolt
#

flex layouts did me dirty again

#

๐Ÿ˜ญ

white bolt
#

what is going on

white bolt
lunar bobcat
white bolt
#

It probably is a problem with switching part of the data source from project amber to genshin

lunar bobcat
#

It doesnt exist

#

Ahh its manekin or smth yeah that explains a lot

white bolt
lunar bobcat
#

Xiangling should be double digit

white bolt
#

manekin should work fine whatsoever

lunar bobcat
white bolt
#

It's all 117????

lunar bobcat
#

Stupid hoyo broke everything with him

white bolt
#

something is terribly wrong with my character fuzzy matcher

lunar bobcat
#

And it fails on manekin

white bolt
#

it can't be looking up manekin tho

#

Oh yeah it is

#

My enka.ts tries to get information for every chars before returning it

#

i'll use the art of pretending it doesn't exist

white bolt
# lunar bobcat

if it doesn't resolve that means it's not on enka github, then how did enka resolve that

#

so I made it soft-fail to "Unknown" instead of throwing error

#

now it resolves normally

white bolt
white bolt
#

bruh.

#

oh finally the uid

lunar bobcat
#

did you not test it

white bolt
#

you didnt give me the uid

lunar bobcat
#

i did that

white bolt
#

does my showcase torture you that much

lunar bobcat
white bolt
heady galleon
white bolt
#

im never ever using grid again

#

@lunar bobcat fixed :>

lunar bobcat
heady galleon
#

grid should work fine, weird

white bolt
white bolt
white bolt
#

Server Maintenance - unexpected network speed drop is being fixed