refactor: perf improvements + new card features - #1
Open
NFToby wants to merge 11 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Performance Benchmark
Rendering stack comparison
V2: Bun + Satori
V1: Node + Puppeteer
This also reduces cold start time and removes the need for a headless browser.
Screenshots
Standard card
http://localhost:3000/?projectName=Lido&filetype=png&theme=dark&metricName=Total+Value+Locked&metricValue=%2427.336b&diff=4.8%25&projectLogo=https%3A%2F%2Ficons.llamao.fi%2Ficons%2Fprotocols%2Flido%3Fw%3D48%26h%3D48Standard card with bar chart

http://localhost:3000/?projectName=Lido&filetype=png&theme=dark&metricName=Total+Value+Locked&metricValue=%2427.336b&diff=4.8%25&projectLogo=https%3A%2F%2Ficons.llamao.fi%2Ficons%2Fprotocols%2Flido%3Fw%3D48%26h%3D48&barData=10,2,20,22,18,28,38Double card

http://localhost:3000/?projectName=Lido&filetype=png&theme=dark&metricName=Total+Value+Locked&metricValue=%2427.336b&diff=4.8%25&projectLogo=https%3A%2F%2Ficons.llamao.fi%2Ficons%2Fprotocols%2Flido%3Fw%3D48%26h%3D48&metricName2=Fees%20(24hr)&metricValue2=$1.98mDouble card with bar charts

http://localhost:3000/?projectName=Lido&filetype=png&theme=dark&metricName=Total+Value+Locked&metricValue=%2427.336b&diff=4.8%25&projectLogo=https%3A%2F%2Ficons.llamao.fi%2Ficons%2Fprotocols%2Flido%3Fw%3D48%26h%3D48&metricName2=Fees%20(24hr)&metricValue2=$1.98m&barData=10,2,20,22,18,28,38&barData2=5,12,8,22,18,28,70Standard card with different metric (light mode)

http://localhost:3000/?projectName=Lido&filetype=png&theme=light&metricName=Next+Unlock+%7C+%24129%2C745&metricValue=in+6+hours&projectLogo=https%3A%2F%2Ficons.llamao.fi%2Ficons%2Fprotocols%2Flido%3Fw%3D48%26h%3D48Standard card for homepage

http://localhost:3000/?metricName=Total%20Value%20Locked%20in%20DeFi&metricValue=$119.042b&diff=-1.16%25&projectLogo=https%3A%2F%2Ficons.llamao.fi%2Ficons%2Fprotocols%2Flido%3Fw%3D48%26h%3D48