Hive dapp idea: Decentralized link shortener

in HiveDevs15 days 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.iomc, by which the shortened link will be https://hivelink.io/@shorten/mc 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 ), 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. 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).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
  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

YourlsThe #DBuzz ecosystem used to have a link shortener https://myhive.li/ (which is a fork of the FOSS software ) 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:  

I like the idea in theory. The main problem I foresee is the domain. You could bake some code so earnings from the dapp pay for the domain but you still have to have an abuse email for the whois listing and that can get yucky. The fact is that the old web cannot comply with the new. I really think we need to stop imagining it ever will and actually build something new that blocks the incumbents already at play on the net. Good idea though. :)

There are Web3 domain names that are both easy to remember and create as well as censorship-resistant, where such disadvantage of domain names can be minimized. 🤓 They need more adoption though. 😅

Oh nice! I wasnt aware of that! Well spoken then!

Even when Web2 and Web3 major and minor changes happen, a decentralized link shortener would !INDEED remain useful. 🤓

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
$LOLZ on behalf of rzc24-nftbbg

(3/10)
Delegate Hive Tokens to Farm $LOLZ and earn 110% Rewards. Learn more.@savvyplayer, I sent you an

If you are Superman, then what is your "yellow sun" (where the Superman can recharge)? 🦸😆😅

Anyway, don't forget to mine !HBIT today! 🤗 !INDEED !HOPE !DIY

🦸🦸🦸

(2/1) You mined .9 HBIT and the user you replied to received .1 HBIT on your behalf. You can receive 100% of the HBIT by replying to one of your own posts or comments. When you mine HBIT, you're also playing the Wusang: Isle of Blaq game. 🏴‍☠️

Sorry, but you didn't find a bonus treasure token today. Try again tomorrow...they're out there! You can see your random number generated in the Discordtools | wallet | discord | community | daily <><

There is a treasure chest of bitcoin sats hidden in Wusang: Isle of Blaq. Happy treasure hunting! 😃

Check for bonus treasure tokens by entering your username at a block explorer explorer A, explorer B, or take a look at your wallet. Read about Hivebits (HBIT) or read the story of Wusang: Isle of Blaq.Success! @savvyplayer server, #hbit-wusang-log channel. |

Hive is my "yellow sun."

!LOLZ

I forgot how to use !HBIT.

(4/1) You mined .9 HBIT and the user you replied to received .1 HBIT on your behalf. You can receive 100% of the HBIT by replying to one of your own posts or comments. When you mine HBIT, you're also playing the Wusang: Isle of Blaq game. 🏴‍☠️ | tools | wallet | discord | community | daily <><

What's more, you found a Blaq gold coin (BLAQGOLD) as a bonus treasure token!



There is a treasure chest of bitcoin sats hidden in Wusang: Isle of Blaq. Happy treasure hunting! 😃

You can see your random number generated in the Discordexplorer A, explorer B, or take a look at your wallet. Read about Hivebits (HBIT) or read the story of Wusang: Isle of Blaq.Success! @rzc24-nftbbg server, #hbit-wusang-log channel. Check for bonus treasure tokens by entering your username at a block explorer

A taxi driver was getting flirty with a woman in a bar.
At the end of the night he took her back to her place.

Credit: reddit
$LOLZ on behalf of rzc24-nftbbg

(1/10)
Farm LOLZ tokens when you Delegate Hive or Hive Tokens.
Click to delegate: 10 - 20 - 50 - 100 HP@savvyplayer, I sent you an

I thought you would say "InLeo" becauses its interface is yellow (in daylight theme). 😆🤯

It's different if you say you forgot how to mine HBIT rather than simply forgot to mine the token. 🤨😆

!LOLZ
!DIY

I went to the doctor the other day and he said you’ve got hypochondria.
I said oh god not that as well!

Credit: reddit
$LOLZ on behalf of savvyplayer

(6/10)

PLAY & EARN $DOOM

@rzc24-nftbbg, I sent you an

Don't be shy - share some DIY!

You can query your personal balance by !DIYSTATS

@savvyplayer just sent you a DIY token as a little appreciation for your comment dear @rzc24-nftbbg! Feel free to multiply it by sending someone else !DIY in a comment :) You can do that x times a day depending on your balance so:

Don't be shy - share some DIY!

You can query your personal balance by !DIYSTATS

@savvyplayer just sent you a DIY token as a little appreciation for your comment dear @rzc24-nftbbg! Feel free to multiply it by sending someone else !DIY in a comment :) You can do that x times a day depending on your balance so:

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
$LOLZ on behalf of jmis101

(1/6)

PLAY & EARN $DOOM

@savvyplayer, I sent you an

You don't need to finish reading a post if it is too technical for you. 🤗 At least, you tried reading it. 🧘‍♂️🤓 !HOPE !INDEED !DIY

I really tried 😂😂
Thank you very much 😊
!LOL
!INDEED
!PIMP

I wonder though how far you were able to read through my post before finally stopping. 🤯😆

!WEIRD !HOPE !LUV !DIY

I read all even when I wasn't following 😂😂😂😂😂
!WEIRD
!LOL

That means you read a lot and understand a little. 🤔 That's okay! 🤗 !HOPE you improve your understanding of technological articles soon! 🤓 !INDEED !DIY

I wanted to read to the end and maybe understand but it is what it is 😂😂😂
Yes.....!HOPE
!DIY

Don't be shy - share some DIY!

You can query your personal balance by !DIYSTATS

@jmis101 just sent you a DIY token as a little appreciation for your comment dear @savvyplayer! Feel free to multiply it by sending someone else !DIY in a comment :) You can do that x times a day depending on your balance so:

Don't be shy - share some DIY!

You can query your personal balance by !DIYSTATS

@savvyplayer just sent you a DIY token as a little appreciation for your comment dear @jmis101! Feel free to multiply it by sending someone else !DIY in a comment :) You can do that x times a day depending on your balance so:

Don't be shy - share some DIY!

You can query your personal balance by !DIYSTATS

@savvyplayer just sent you a DIY token as a little appreciation for your comment dear @jmis101! Feel free to multiply it by sending someone else !DIY in a comment :) You can do that x times a day depending on your balance so:

Don't be shy - share some DIY!

You can query your personal balance by !DIYSTATS

@savvyplayer just sent you a DIY token as a little appreciation for your comment dear @jmis101! Feel free to multiply it by sending someone else !DIY in a comment :) You can do that x times a day depending on your balance so:

(1/20)

You Are Alive so I just staked 0.1 ALIVE@savvyplayer! 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

Some Hive users forget to change the permlinkpermlink at all. 🤔 That's one of the situations where having a (decentralized) link shortener would be great. 🤓 !WEIRD !HOPE !INDEED !DIY of their posts into a shorter one, and some Hive blogging frontends such as #Ecency don't allow changing the

Don't be shy - share some DIY!

You can query your personal balance by !DIYSTATS

@savvyplayer just sent you a DIY token as a little appreciation for your comment dear @slothlydoesit! Feel free to multiply it by sending someone else !DIY in a comment :) You can do that x times a day depending on your balance so:

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

The users getting paid to simply use the decentralized link shortener is a great idea, but it needs to be planned well. 🤯 The good thing with FOSS is that anyone else can pick up at the status where its last developer left it. 🤓 !WEIRD !HOPE !INDEED !DIY

Yes of course. Then maybe using such (paid) tokens to customize links. !WEIRD !INDEED !DIY

A Hive dapp that serves as a git would help a lot, but I don't think I can easily create a suggestion post such as that of the decentralized link shortener. 🤯😅 !PIZZA !WEIRD !INDEED !DIY

Don't be shy - share some DIY!

You can query your personal balance by !DIYSTATS

@savvyplayer just sent you a DIY token as a little appreciation for your comment dear @pepetoken! Feel free to multiply it by sending someone else !DIY in a comment :) You can do that x times a day depending on your balance so:

Don't be shy - share some DIY!

You can query your personal balance by !DIYSTATS

@pepetoken just sent you a DIY token as a little appreciation for your comment dear @savvyplayer! Feel free to multiply it by sending someone else !DIY in a comment :) You can do that x times a day depending on your balance so:

Don't be shy - share some DIY!

You can query your personal balance by !DIYSTATS

@savvyplayer just sent you a DIY token as a little appreciation for your comment dear @pepetoken! Feel free to multiply it by sending someone else !DIY in a comment :) You can do that x times a day depending on your balance so:

Congratulations @savvyplayer! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You got more than 15500 replies.
Your next target is to reach 16000 replies.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Thanks! I think it can be useful for Hive
!LOLZ
!INDEED

Thanks for agreeing with my Hive suggestion! 😀 Someone needs to actually build such dapp though before we can finally use one. 🤯😅
!INDEED !HOPE !WEIRD !DIY

!HOPE
!INDEED
!LOLZ

Why should you never play poker in the jungle?
Too many cheetahs.

Credit: marshmellowman
$LOLZ on behalf of iceledy

(4/8)
Delegate Hive Tokens to Farm $LOLZ and earn 110% Rewards. Learn more.@savvyplayer, I sent you an

I also think that you would it too occasionally. 🤓
!DIY
!LOLZ

Sundays are always a little sad
but the day before is a sadder day.

Credit: reddit
$LOLZ on behalf of savvyplayer

(7/10)

PLAY & EARN $DOOM

@iceledy, I sent you an

Unfortunately😂😂😅, I wish I could, but I can't do anything like that😪
!HOPE
!INDEED
!LOLZ

The developers should make such dapp as easy to use as possible for its end-users. 🧘‍♂️🤓

!HOPE
!INDEED
!DIY

Yes, I would like to, I !HOPE
!INDEED
!LOLZ

Don't be shy - share some DIY!

You can query your personal balance by !DIYSTATS

@savvyplayer just sent you a DIY token as a little appreciation for your comment dear @iceledy! Feel free to multiply it by sending someone else !DIY in a comment :) You can do that x times a day depending on your balance so:

Don't be shy - share some DIY!

You can query your personal balance by !DIYSTATS

@savvyplayer just sent you a DIY token as a little appreciation for your comment dear @iceledy! Feel free to multiply it by sending someone else !DIY in a comment :) You can do that x times a day depending on your balance so:

Don't be shy - share some DIY!

You can query your personal balance by !DIYSTATS

@savvyplayer just sent you a DIY token as a little appreciation for your comment dear @iceledy! Feel free to multiply it by sending someone else !DIY in a comment :) You can do that x times a day depending on your balance so: