Hive dapp idea: Decentralized link shortener

in HiveDevs16 hours ago

I suggest the development of a Hive dapp that works as a link shortener (for links within the Hive ecosystem as well as whitelisted external websites).

It is important to note that a "dapp" means decentralized application, which means as many people as possible should be able to use, inspect, and modify the code to such software, such that being FOSS (Free and Open-Source) should be an obvious requirement for dapps.

I have published a brief summary of this idea on a comment 3 years ago. Here's the long post to describe the specifics.

The specifics

  1. Let's say that a link shortener Hive dapp has a domain name hivelink.io and that a Hive account named @shorten wants to use the dapp to shorten https://peakd.com/hive-167922/@savvyplayer/re-magnacarta-4k32en. The dapp should ask the user whether to have their own name for the link supplied (such as mc, by which the shortened link will be https://hivelink.io/@shorten/mc), or a random name (that is easy to remember and type) to be generated. The list of shortened links by the user should be available at https://hivelink.io/@shorten.
  2. Any shortened link by a user should also be accessible by its number as an alternative to its name. For example, if https://hivelink.io/@shorten/mc is the first shortened link on the list, then it should also be accessible by at https://hivelink.io/@shorten/1).
  3. Each user of the link shortener gets to publish a post (with rewards burnt or declined) on the Hive blockchain (which will also help promote such dapp), or on a comment on a post which is dedicated to link shortening. Every time the user wants to add, edit, or remove a link, that post (or comment) will simply be edited to reflect changes.
  4. It would be helpful to create a human-readable format on the post with formatting similar to [shortened link] -> [target original link]. For example, https://hivelink.io/@shorten/mc will be listed together with https://peakd.com/hive-167922/@savvyplayer/re-magnacarta-4k32en.
  5. It would also help to add a machine-readable list on the bottom of the page (better use the <sub></sub> tags to decrease the size of text) with a format similar to [ID of link], [name of link], [target link] to help other Hive dapps process links more easily. For example, https://hivelink.io/@shorten/mc as the first shortened link will be saved as 1, mc, https://peakd.com/hive-167922/@savvyplayer/re-magnacarta-4k32en.
  6. People without Hive accounts (or those who don't want to use their Hive accounts) should still be able to use the dapp, though only with restrictions such as links pointing only to popular Hive frontends and no custom names for links, and those links will be saved only on the particular instance which they used just like Web2.

Advantages

  1. The code being FOSS means that any Hive user with enough technical knowledge can launch (and make minor modifications to) their own decentralized link shortener on Hive.
  2. Minor useful modification suggestions include shortening links for only whitelisted domains (such as for Hive blogging frontends like #PeakD or #Ecency) to avoid using the link shortener for unsafe purposes. While any shortened link is already on the Hive blockchain, using an instance of the decentralized link shortener for a non-whitelisted domain on any instance of the dapp would simply not be redirected (so users can either choose another available instance or launch their own instance).
  3. Even if there is no instance of such dapp being accessible, whatever links have already been shortened on the dapp can still be accessible on any Hive blogging frontend (or Hive block explorer).
  4. The dapp takes advantage of the security and censorship-resistance of the Hive blockchain (if used with a Hive account).
  5. It may encourage people not yet on Hive to create their own Hive accounts to use the dapp, thus help onboard more users.
  6. It can be marketed as a Hive's Web3/decentralized link shortener.

Possible disadvantages

  1. Writing code for such link shortener dapp will take a lot of time and effort, and keeping the code up-to-date is also an ongoing task which will take even more time and effort. This disadvantage can be mitigated by publishing posts about the development of such dapp whose rewards will do to the development team, or by asking for funding from the Hive DHF.
  2. Such dapp can be used for malicious purposes, so operators of instances of the dapp should try to moderate unsafe links on their respective instance.

Other

Hyperlink image from Pixabay to serve as cover image

The #DBuzz ecosystem used to have a link shortener https://myhive.li/ (which is a fork of the FOSS software Yourls) and https://dbuzz.link/, both of which are currently inaccessible. This is

Tagging some Hive users who recently replied (within the past 6 days) under my previous posts. @rzc24-nftbbg @pepetoken @kenny-crane @tydynrain @borniet @jmis101 @iceledy @caelum1infernum @astramar @svanbo @crrdlx @slothlydoesit

The author is committed to replying to every kind human comment. If you want to give feedback for this post, please reply under this post and you will receive a reply within a few days, usually within 24 hours.

Sort:  

If I am Superman, code is my kryptonite. 😅

!LOLZ

!PIZZA

I can always tell if someone is lying just by looking at them.
I can also tell if they’re standing.

Credit: reddit
@savvyplayer, I sent you an $LOLZ on behalf of rzc24-nftbbg

(3/10)
Delegate Hive Tokens to Farm $LOLZ and earn 110% Rewards. Learn more.

Coding 😂😅
I got confused at some point but it's fine because technology has a bit minus on me.
!Lol
!INDEED
!DIY
!ALIVE

My friend Phillip had his lip removed last week
now we just call him Phil.

Credit: reddit
@savvyplayer, I sent you an $LOLZ on behalf of jmis101

(1/6)

PLAY & EARN $DOOM

(1/20)
@savvyplayer!
You Are Alive so I just staked 0.1 ALIVE to your account on behalf of @jmis101.

Alive Banner

Interesting idea, it would be cool to have a way to shorten some posts, although authors could also just change them whilst making the post. It wouldn't quite have the same effect but would make links more readable.

Maybe a dev will pick up the idea and make it work. Keep them ideas coming! !SLOTH and steady Hive will get better! !BBH !Hug

May be a good idea. May suggest a report by the account of (recent) short links for the account to build its own Hive Power. May be good for such to think as an (open ) business. This way to reward developers and posts / authors for using the service. Such can add value and help increase usage. While possibly having (some) funds for needed development as FOSS can be(come) unmanned sometimes, thus losing updates for example. !BBH !DOOK !INDEED