A simple and fast redirection tool (short link) written in Rust.

Overview

๐Ÿฐ RabiJump

็ฎ€ไฝ“ไธญๆ–‡ | API Doc

RabiJump is an open source redirection service aimed for efficiency and simplicity.

๐ŸŽ† Features:

  • Built-in filesystem database.
  • Built-in web admin panel.
  • Seperate redirects for mobile phone and desktop.
  • Enable/disable parameter support (url?foo=bar).
  • Change redirection method (301, 302, 307, 308).
  • Different ports for redirect and admin.
  • Small binary size and RAM usage.
  • Visit count and log rotation.
  • API support, create your script!

Deploy

Docker is the easiest way to deploy RabiJump. Or you can clone the repository and simply run cargo run --release in server directory.

docker run -d -p 8080:8080 -p 8081:8081 -v db_path:/app/database -v log_path:/app/logs memorysafety/rabijump:0.1.0

This command will start RabiJump in Docker container with db_path and log_path mounted to the container. You can use docker logs to check the generated admin token if you didn't set it in the environment variable.

Port

  • 8080: Redirect port.
  • 8081: Admin port with web panel.

Environment variables

  • DATABASE_PATH: Path to the database. Default: database.
  • LOG_PATH: Path to the logs. Default to logs.
  • FALLBACK_TARGET: Target to redirect to if no match is found, also for index. Default is return 404.
  • ALLOW_ORIGIN: CORS Access-Control-Allow-Origin header.
  • TOKEN: Admin token, if not set, a random token will be generated and displayed in the stdout.

Performance

RabiJump is designed to be simple and fast. A new instance of RabiJump takes about 30MB RAM. A RabiJump with 10k redirects takes about 70MB RAM and 30MB disk space. Its QPS could reach 30k+.

License and Credits

RabiJump is licensed under the Apache-2.0 License. Thanks so much for the following open source projects:

You might also like...

Superkeys allow users to add short keys for websites and make search query in those sites.

Superkeys allow users to add short keys for websites and make search query in those sites.

Superkeys is a browser extension which allow users to add short keys for websites and make search query in those sites. Made with โค๏ธ @nilooy ๐Ÿง‘โ€๐Ÿ’ป Dem

Aug 17, 2022

A dad joke is a short joke, typically a pun, presented as a one-liner or a question and answer, but not a narrative

A dad joke is a short joke, typically a pun, presented as a one-liner or a question and answer, but not a narrative. Many dad jokes may be considered anti-jokes, deriving humor from an intentionally not funny punchline. daddy-jokes is an npm package that returns a dad joke when implemented.

Oct 23, 2022

Short JavaScript code snippets for all your development needs

Short JavaScript code snippets for all your development needs

30 seconds of code Short JavaScript code snippets for all your development needs Visit our website to view our snippet collection. Use the Search page

Dec 30, 2022

Short CSS code snippets for all your development needs

Short CSS code snippets for all your development needs

30 seconds of CSS Short CSS code snippets for all your development needs Visit our website to view our snippet collection. Use the Search page to find

Jan 3, 2023

A short project to automatically upload multiple pictures to pinata.cloud

Papel Mache Papel Mache is an app that uploads pictures to IPFS through pinata.cloud Requirements pinata/sdk: 1.1.14 node: 14.17.6 Node Node installat

Aug 18, 2022

๐Ÿ“ You Can Create Your Own Short Notes With The Help of Sticky-Notes Website.

Hi ๐Ÿ‘‹ , I'm Sneh Agrawal A passionate Web developer from India ๐Ÿ”ญ Iโ€™m currently working on Chatting Website Chit-Chat ๐Ÿ“ซ How to reach me on My Gmail A

Feb 23, 2022

Short JavaScript code snippets for all your development needs

Short JavaScript code snippets for all your development needs

30 seconds of code Short JavaScript code snippets for all your development needs Visit our website to view our snippet collection. Use the Search page

Dec 28, 2022

Generate short video game music, automatically, endlessly.

Generate short video game music, automatically, endlessly.

short-VGM-generator (DEMO) Generate short video game music, automatically, endlessly. It is powered by machine learning with magenta.js HOW TO PLAY Pr

Oct 28, 2022

Sharing short code samples, logs or links is now easier than ever!

Sharing short code samples, logs or links is now easier than ever!

Pastebin Sharing short code samples, logs or links is now easier than ever. Explore the docs ยป โ€ข Report Bug โ€ข Request Feature โ€ข About The Project With

Nov 26, 2022
Owner
Rui Li
Want to sleep more than 8 hours every day.
Rui Li
A TOML parsing tool written in Rust for Node.js

@daydog/toml A TOML parsing tool written in Rust for Node.js Installation @daydog/toml is available via npm. npm install @daydog/toml Usage parse You

null 5 Jul 20, 2022
A file sharing service, where you can upload files and provide a download link for anyone on the internet by sharing the link ๐Ÿ”— or via mail โœ‰๏ธ which remains active for 24hours ๐Ÿ•™.

eShare | File Sharing App A file sharing service, where you can upload files and provide a download link for anyone on the internet by sharing the lin

Akhil Bhalerao 7 Nov 20, 2022
Welcome contributersโค๏ธ๐ŸŽ‰. Just add your name, Github profile link and Linkedin link๐Ÿ”— Look at Readme for more.๐Ÿ“–

Hello Welcome Developers! Step - 1 Create a GitHub account, if you don't already have one. Step - 2 Register for Hacktoberfest: Navigate to the Hackto

Prineth Fernando 28 Oct 31, 2022
A Minecraft launcher written in Rust, with an Electron frontend.

RustMine A Minecraft launcher written in Rust, with an Electron frontend. Why? I thought it would be fun to use two of my most familiar languages, Rus

sussyimpostor 1 Oct 16, 2022
๐Ÿ‘„ My simple worker for short links

?? My simple worker for short links I wanted a quick-and-easy way to create links on my domain, so I turned to Cloudflare Workers. All routes availabl

Paul Przybyszewski 2 Apr 15, 2022
Mag๐Ÿ”ฅLit - A super fast and easy-to-use free and open source private encrypted Magnet/HTTP(s) Link Shortener

Mag ?? Lit Mag ?? Lit - A super fast and easy-to-use free and open source private encrypted Magnet/HTTP(s) Link Shortener https://maglit.ml Features โœ…

null 280 Jan 8, 2023
A tool for collecting data and access camera, microphone and location and clipboard via link.

Snow Build malicious links. A tool for collecting data and access camera, microphone and location and clipboard via link.

Msf 14 Dec 12, 2022
Seamlessly connect your web server to Rebrandly so that you can re-use your domain name for both your app and your short links

rebrandly-express Seamlessly connect your web server to Rebrandly so that you can re-use your domain name for both your app and your short links Rebra

null 3 Dec 13, 2022
Short sample and instructions for configuring a Flutter Web application to deploy-on-push to Firebase Hosting

Short sample and instructions for configuring a Flutter Web application to deploy-on-push to Firebase Hosting

Kevin Moore 18 Nov 17, 2022
Execute obsidian commands with short key sequences. For example, 'tp' for 'Toggle Preview' and 'tb' for 'Toggle Sidebar'. Easier to remember.

Key Sequence Shortcut Key Sequence Shortcut is an obsidian plugin, allow binding key sequences to an obsidian command. For example If we assume "t" st

Yu Wang 26 Dec 26, 2022