emo-link
database-js
emo-link | database-js | |
---|---|---|
5 | 4 | |
13 | 1,152 | |
- | -0.6% | |
7.2 | 7.6 | |
9 months ago | 23 days ago | |
TypeScript | TypeScript | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
emo-link
-
Text Post
A few weeks back, I learned that there is an internationalized version of URL called IRI that supports the entire Unicode set.\n\nSo, for fun, I made an emoji-based URL shortener based on URL-safe encoding of a UUID using emoji, which takes it from 32 => \~10 chars! As a bonus, the ID generation can be done client side, so this is a zero-backend lift! \n\nBehold! An Example!\n\nhttps://emol.ink/π»π©πΏ\u200dπ€\u200dπ¨πΎππΎπ΄π©πΎ\u200dπ¨ποΈπ€·π»\u200dβπ§π»\u200dπ¨π§Ήπβπ½\n\nFun Surprises\n\n* Emoji links (aka IRIs) work almost everywhere (but not Twitter π)\n* Client-side unique ID generation is awesome. It's backendless and offline-capable while still being collision-free\n* Infinite address space = less stress about bad actors.\n\nLinks and Stuff\n\nπ Try it out: https://emol.ink/ \nπ How it works: https://ericbaer.com/blog/emo-link \nπ§ The Code: https://github.com/baer/emo-link\n\n \nThis is my first time posting a project to Reddit, so please upvote or share if you liked it I guess.\n\nFeature requests, comments, and PRs welcome!
-
Show Reddit: A Novel(?) URL Shortener Using Emoji-Encoded UUIDs
Sooooooo, since I posted to Reddit, I used Cloudflare's Turnstile to do bot mitigation and to protect e from having to pay tens of dollars for a KV store (I'm on the free tier). So, yes, technically, there is a function that acts as the backend.
- Show HN: EmoLink β Novel(?) URL Shortener Using Emoji-Encoded UUIDs
-
Introducing EmoLink - A novel(?) emoji-only URL Shortener!
π§ The Code: https://github.com/baer/emo-link
database-js
- What practices do you recommend for a startup using Next.js, fullstack with tRPC vs seperate backend with express?
-
Postgres over WebSocket
That I understand.
But of course for the user of the driver it might be fine if that is 2 or more HTTP requests. I expect that is how PlanetScale does it in their transaction implementation, https://github.com/planetscale/database-js#transactions, and I know that is how Prisma Data Proxy handles it - the transaction is identified with an ID which is returned to the Client and then included in further requests for the same transaction.
It's valid tradeoff to make to prefer a persistent connection to keep the overhead for multiple queries in a transaction as low as possible - which seems what Neon has done here.
-
Typesafe Database Queries on the Edge
The PlanetScale team recently released their database driver which lets your query your PlanetScale database using the Fetch API. This means you can use this library to query your database in edge environments which is HUGE.
-
The PlanetScale serverless driver for JavaScript
> what happens if the company goes down?
It's open-source. What's your concern now?
https://github.com/planetscale/database-js
What are some alternatives?
cf-worker-redirect - π URL redirection running at the edge with Cloudflare Workers and Worker KV
Knex - A query builder for PostgreSQL, MySQL, CockroachDB, SQL Server, SQLite3 and Oracle, designed to be flexible, portable, and fun to use.