README.md
August 21, 2024 ยท View on GitHub
Language: :us:
:cn:
๐ Sink Short URL Extension
This is a Chrome extension that allows for quick generation and preview of short links using Sink.
โจ Features
- Instantly shorten the current webpage URL into a Sink short link.
- Customizable short link suffix.
- Preview shortened links with quick copy functionality.
- Log in to your Sink account to manage generated short links.
โ๏ธ Screenshots
- Popup Page

- QRCode Page

- Setting Page

- Setting Page - Login

๐ Development and Debugging
- Clone the repository to your local machine
git clone https://github.com/zhuzhuyule/sink-extension.git
- Enter the project directory
cd sink-extension
- Install dependencies
pnpm install
- Start the development server
pnpm dev
# or
pnpm build
- Open Chrome browser and navigate to the Extensions page (chrome://extensions/).
- Enable Developer mode.
- Click the
Load unpacked extensionbutton. - Select the root directory of the extension
./sink-tool.
๐ฆ Manual Installation
You can install the extension using the following steps:
- Download the sink-tool.zip file.
- Extract the zip file.
- Open Chrome browser and navigate to the Extensions page (chrome://extensions/).
- Enable Developer mode.
- Click the
Load unpacked extensionbutton. - Select the root directory of the extension
sink-tool.
๐ Usage
- Install Sink service: refer to https://github.com/ccbikai/Sink
- Install the extension into the Chrome browser.
- Navigate to the webpage you want to shorten.
- Click the extension icon, customize the short link suffix (optional).
- Click the generate button, preview, and copy the short link.
๐ ๏ธ Tech Stack
- Preact: Lightweight UI library for building user interfaces.
- TypeScript: Adds type checking for better readability and maintainability.
- Vite: Fast development server and build tool.
- Tailwind CSS: Utility-first CSS framework for building modern interfaces.
- ESLint: Code style checker to ensure code quality.
- Prettier: Code formatter to maintain consistent style.
- Jest: JavaScript testing framework for unit and integration tests.
- Chrome Extension Manifest Version 3: The latest version of Chrome Extension spec.
๐ค Contributing
Feel free to submit issues and pull requests!
๐ License
Distributed under the MIT License.