ccbikai / sink Goto Github PK
View Code? Open in Web Editor NEW⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
Home Page: https://sink.cool
License: GNU Affero General Public License v3.0
⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
Home Page: https://sink.cool
License: GNU Affero General Public License v3.0
Hello,
Is it planned to support password-protecting the links?
I mean "someone follows the link, it asks for a password and redirects if it's correct".
Thanks
not support the api ?
example :
a url request the api then return a shorturl .
I have been using this project with my domain and it works perfect, it allows me to create shortened links and it's great, just one question, in cloudflare configure the slug to be 4 digits maximum, when using it via UI it works and generates the 4 digits slug, but via API is not like that, is there a way to specify via API that I want the slug to be 4 digits?
add variable NUXT_DATASET in part Depolyment '6.iii' so that the ANALYTICS would work.
I think you need to detail more the steps of the implementation in cloudflare, I tried to deploy by myself it seemed that everything worked but it does not work to create the short links, I think I did something wrong, several steps did not come in the documentation.
I think it would be great a “For Dummies” documentation, explaining every little step and detail, even a step by step video how to deploy from scratch.
dashboard.short.link
I use some hacking in url, make it soooo long and use shortening app to make it shorter to remember.
Example: in smol site, all data of the webpage contain in url only
But your constaint in 2048 characters make it impossible to use this hacking
Hello,
Your project is definitly the best thing that i found on github, amazing performance and very easy to use,
In some cases, I need the shortlink to pass params to the target page for example :
original link :
https://example.com/xxxx/yyyyy/dynamicParam
or
https://example.com/xxxx/yyyyy?param=dynamicParam
Generate shortlink can only redirect to the same static link
if would be great if we can pass a param in the shortlink, something like this :
https://mySinkInstance.com/mySlug/dynamicParam1/dynamicParam2/dynamicParam3
the dynamic params format get preserved as they are and added to the target link
https://targetlink.com/xxxx/yyyyy/dynamicParam1/dynamicParam2/dynamicParam3
I think the easiest way to integrate this, is to extract whatever is written after the slug, and add it to the target URL
Since CF can be used for free and indefinitely, as well as stored, and can also be used to store APIs through reverse git, such a great resource expert can change it into a password manager, encrypt and store passwords, and never lose them for a lifetime. It's much better than setting up a paid one and forgetting to renew it one day, and worrying about poisoning and leakage when storing it locally. Haha, I hope the expert can consider it
Do I only need to sync the fork and redeploy on Cloudflare?
Since CF can be used for free and indefinitely, as well as stored, and can also be used to store APIs through reverse git, such a great resource expert can change it into a password manager, encrypt and store passwords, and never lose them for a lifetime. It's much better than setting up a paid one and forgetting to renew it one day, and worrying about poisoning and leakage when storing it locally. Haha, I hope the expert can consider it
Does it have the function or option to connect Auth0 or other login service? So we know who created the short links in the small team
The latest version of the deployment reports errors. I have used the Nuxt.js
as the preset.
this is the error logs:
> [email protected] postinstall /opt/buildhome/repo
--
23:31:18.182 | ▲ > npm run build:map && nuxt prepare
23:31:18.590 | ▲ > [email protected] build:map
23:31:18.590 | ▲ > node scripts/build-map.js
23:31:20.566 | ▲ [info] [nuxt:tailwindcss] Using Tailwind CSS from ~/assets/css/tailwind.css
23:31:21.409 | ▲ [success] Types generated in .nuxt
23:31:21.454 | ▲ Done in 7.3s
23:31:21.508 | ▲ Warning: Could not identify Next.js version, ensure it is defined as a project dependency.
23:31:21.512 | ▲ Error: No Next.js version could be detected in your project. Make sure `"next"` is installed in "dependencies" or "devDependencies"
23:31:21.596 |
23:31:21.596 | ⚡️ The Vercel build (`npx vercel build`) command failed. For more details see the Vercel logs above.
23:31:21.596 | ⚡️ If you need help solving the issue, refer to the Vercel or Next.js documentation or their repositories.
23:31:21.597 |
23:31:21.630 | Failed: Error while executing user command. Exited with error code: 1
23:31:21.644 | Failed: build command exited with code: 1
23:31:26.165 | Failed: error occurred while running build command
I cannot open Analytics.
The error says "too many requests."
What might be missing?
cacheTtl is a parameter that defines the length of time in seconds that a KV result is cached in the global network location it is accessed from.
Defining the length of time in seconds is useful for reducing cold read latency on keys that are read relatively infrequently. cacheTtl is useful if your data is write-once or write-rarely.
https://developers.cloudflare.com/kv/api/read-key-value-pairs/#cachettl-parameter
Data created through the API will take dozens of seconds to be accessed normally.
Suppose I create a new one through the api now. I use the returned data to request immediately and the result is 404. I can only access it normally after waiting for tens of seconds and seeing its existence on the web page.
After setting this up to test, I got a huge traffic surge to the site. 209,476 requests in a couple hours. So much that I've exceeded the Cloudflare "workers and pages" free plan. The traffic is all from the US, but I can't tell any more about the traffic or what's happening. Could there be a exploit here?
Hello, thanks for the great project. To improve it further, I would like to suggest a feature that I think will not take a long time to develop, but will contribute a lot.
Ability to specify separate links for Android, iOS and web. Thus, the user can be directed to different links depending on the device the user entered through a single link.
Good day!
Thanks for developing the cool project. I am a super fan of this kind of "golink" thing, and I used to use https://github.com/tailscale/golink/ as an easy and quick way to navigating through all of my links.
The current project works pretty well, but it would be even cooler if you can add a live fuzzy search
function for filtering the results similar to the image showing below
Hello i love your project, i hope you can add to Change Destination Url.
thanks
String must contain at most 2048 character(s)
First, thanks to the author for their effort in creating sink.
I suggest adding Time-based One-Time Password (TOTP) as an optional login method to enhance the security of user accounts.
Some of the better known short linking platforms have this feature, so I'm hoping that sink will support this.
Consider adding an import feature? From Shlink for example.
Thanks!
Hi, I spent all day today installing sink.
I tried to install it on cloudflare but when I get to the dashboard page it throws too many requests, so I reached my cloudflare daily request limit.
I tried to install it on my server, I'm trying to get a build with nuxt but 4gb ram is not enough for that.
When I installed it on my computer it was running fast with npm run dev but when I ran it on my server with npm run dev it was very slow, I had to get a build.
When I was trying to get a build on my Windows computer, I kept getting errors because of nuxthub, so I uninstalled nuxthub.
Note: nuxthub saves the build to dist folder, not .output.
I managed to get the build!!! but again too many requests are thrown in the dashboard, so I'm back to square one.
Note: I've been using react and next.js for 2 years but I've never had as much difficulty as with nuxt, it's very slow and it's a bit hard to resolve bugs.
I tried ubuntu, windows and macos. I will post here if I can solve the too many request problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.