Recreating notepadtab
how small can we go?
- tags
- vite
- javascript
- static_sites
Contents
I found this cool little project called notepadtab.com that lets you enter text into a box, and it will encode it in the url, which you can then bookmark, or share around, or whatever. Put it through a url shortener or what have you and the next is available to see anywhere.
I wanted to see how it worked by implementing it myself. This code is much smaller than what is at revolter/notepadtab.com, and once I figured out how to add pako compression, I figured why not also add a QR code?
Important code
|
|
index.html
:
|
|
Boilerplate junk
package.json
:
|
|
|
|
Update the base
if you are deploying it somewhere else, I'm using
github pages without a domain so it's in a subdirectory.
|
|
Deploy
|
|
|
|
Check it out
Deployed here. It takes forever because the vite build includes all of the icons for shoelace…
Previously
Next