#Uploading small code snippets to the Internet

79 messages · Page 1 of 1 (latest)

left verge
graceful thicket
#

techstacks?

analog pasture
#

Nice!

#

Will it integrate with a code formatter so that Alfon don't need prettier anymore

left verge
left verge
#

It’s possible

#

Don’t want to make it a full scaled editor though, it’s just a normal <textarea> behind the scenes currently

#

I’ll add the feature if I find myself in need of it

#

Other features could include exporting as image

#

File name maybe

#

Multiple files

#

Download button

latent scaffold
#

this looks great!

#

I am loving these usage examples of glassmorphic design in your website

left verge
#

thanks!

atomic flame
#

Dang i thought the og:image is going to show part of the content 🤣

#

cool project nonetheless

somber fulcrum
#

cool project i see tho

somber fulcrum
#

also kinda fancy feature, but line number selection like github might be cool 🙂

left verge
#

will try to find a way to do that

#

but it's surprisingly hard to get shiki to run well in the edge runtime

left verge
left verge
somber fulcrum
left verge
#

shiki takes surprisingly long to load. 2 seconds for the example code above

somber fulcrum
#

random question, but does the page use ppr for extra load speed?

left verge
#

no

#

hmm another good idea

#

the ppr skeleton would be the unformatted code

#

ok this is the best idea thus far

somber fulcrum
#

👀

atomic flame
#

isnt that going to blow up the size of the edge static cdn :v

#

since ppr shells are stored there

somber fulcrum
#

its not like the site will be that much used

atomic flame
#

broo 💀

left verge
#

lmao

left verge
atomic flame
#

why do you need to change theme per code? its not like the whole website is not already full of glassmorphism theme xD

left verge
#

no i dont intend to change theme per code but i may somehow want to switch the theme in the future

atomic flame
#

ahh mb

left verge
#

one day you no longer love your gf and she becomes your ex, something like that

#

but idt that day would happen anytime soon so who cares XD

atomic flame
#

such poetry

#

i am touched

left verge
somber fulcrum
#

wait i meant step 0... as first is actually 0th 🙂

somber fulcrum
#

the ji makes it extra good?

analog pasture
#

A rewrite

left verge
#

running shiki(ji) when node_modules is available (build time) is so easy and simple

#

but when i need to run it on-demand everything blows up in flames

analog pasture
#

Serverless runtime is good enough, you can make it client-side rendering too

left verge
#

refactor completed, /p/:slug is now literally dynamic at the speed of static

#

never spent this much effort optimising the load speed of a page before

#

rendering pages are back to static or edge now

#

nodejs is only used for server actions

somber fulcrum
#

nice pagespeed score

#

running on new url was better speed... maybe things got cached near google's cdn

analog pasture
#

That’s insane, but does it also mean iterating it will be difficult in order to keep it on edge runtime

left verge
#

I just save the html directly in the database

#

So shiki(ji) isn’t even imported to this page

#

It just reads from the database and renders html directly

#

Thankfully drizzle supports the edge runtime (somehow) so everything can be done on the edge

analog pasture
#

Cool approach

left verge
#

neon

somber fulcrum
#

nice

dire sable