![]() |
|
[Source] Link Shortener by Nodes (v0.0.1) - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Source] Link Shortener by Nodes (v0.0.1) (/showthread.php?tid=6244920) |
Link Shortener by Nodes (v0.0.1) - Hackers - Jun 25, 2023 Hi all, this program will take your URL and give you 4 free "short" URLs that redirect to it. This will let you easily have unique links to use on social media, emails, etc, so you are not falsely detected for spam/etc using the same link each time for a reputable cause! :) Demo video: https://ipfs.io/ipfs/bafybeiel62jjgsckcis6rjrevubuo3a7ajp5ejaui7ay3dr7a2m2m5q2yi Demo mirror : https://bafybeiel62jjgsckcis6rjrevubuo3a7ajp5ejaui7ay3dr7a2m2m5q2yi.ipfs.nftstorage.link/ I was looking for inspiration so I googled for free APIs, and found this Github that has a list of free link shorteners ( https://github.com/public-apis/public-apis#url-shorteners ). I implemented 4 of the APIs that don't require oauth or API keys. this is a quick Electron starter app that I built off of for a URL shortener. Just enter any URL, press the button, and voila - you will have 4 new URLs that you can use. You can also go on to run the same URLs more than once. This may be helpful if you are in marketing and need unique URLs for different purposes. I hope this is helpful for someone. I am including the source so anyone can build off of it. It uses Electron Builder to package as .exe installer, but you can run with just normal Electron (unpackaged) too. Also, if you are on a Mac it'll build (npm run dist) as an iOS app instead of for Windows, and same if you run dist on a Linux OS. It always builds the distributable to work on whatever platform you're on. Windows (.exe) installer: https://www.mediafire.com/file/mchbo6rgcg9jkcn/LinkShortenerByNodes_Setup_0.0.1.exe/file Electron app / source code: https://www.mediafire.com/file/zgpqjwhxjde55dz/LinkShortenerByNodes-Electron-Source.zip/file Once you have it unpacked, you'll need to make sure you have access to things like Node, npm, etc - core deps basically. Once you are all setup just get started with normal install: Code npm installHow to run dev mode: Code npm run startHow to build a dist (for OS you are on): Code npm run distPlease note that the installer exe includes necessary packages so it is a larger file (~70mb) and the source has package.json/etc (which is just the package names, not the source) so the sourcecode overall is much smaller (~8KB). This is because it's Electron, so it uses Chromium behind the scenes. RE: Link Shortener by Nodes (v0.0.1) - SIM-3750641 - Jun 25, 2023 Sounds good my man, will give it a try RE: Link Shortener by Nodes (v0.0.1) - theeoverseer - Jul 6, 2023 This looks nice mate! But i would like to customize my URL a bit after its shortened to avoid being labeled as spam by potential customers. If you could assist that would be great! RE: Link Shortener by Nodes (v0.0.1) - raney - Jul 7, 2023 Sounds good my man, will give it a try RE: Link Shortener by Nodes (v0.0.1) - Hackers - Jul 7, 2023 (Jul 6, 2023 05:43 PM)theeoverseer Wrote: This looks nice mate! At least 1 of these URL shorteners allows you to request a custom link, but you'd have to do that yourself in the code. RE: Link Shortener by Nodes (v0.0.1) - FW888 - Jul 11, 2023 thanks for sharing, let's see RE: Link Shortener by Nodes (v0.0.1) - Hackers - Jul 24, 2023 (Jul 11, 2023 08:08 PM)FW888 Wrote: thanks for sharing, let's see No problem, did it work okay for you? If anyone wants to customize the Link shortener it's very easy to make changes :) |