This project provides a web application to convert GitHub raw file links to various CDN formats. The app supports predefined CDN templates and allows users to add custom CDN templates.
- Convert GitHub raw file links to multiple CDN formats
- Add and manage custom CDN templates
- Copy generated CDN links to clipboard
- Tooltips for better user experience
https://cdn.jsdelivr.net/gh/{user}/{repo}@{branch}/{path}
https://rawcdn.githack.com/{user}/{repo}/{commit}/{path}
https://cdn.statically.io/gh/{user}/{repo}/{branch}/{path}
https://mirror.ghproxy.com/raw.githubusercontent.com/{user}/{repo}/{branch}/{path}
https://ghproxy.net/https://raw.githubusercontent.com/{user}/{repo}/{branch}/{path}
https://fastly.jsdelivr.net/gh/{user}/{repo}@{branch}/{path}
You can easily deploy this application to Vercel by clicking the button below:
- Node.js
- npm or yarn
-
Clone the repository:
git clone https://github.com/cikichen/github-cdn-converter.git cd github-cdn-converter
-
Install dependencies:
npm install # or yarn install
Start the development server:
npm run dev
# or
yarn dev
Open your browser and go to http://localhost:3000
to see the app in action.
- Enter your GitHub raw link in the input field.
- The app will automatically generate the corresponding CDN links.
- Add custom CDN templates if needed.
- Copy the generated CDN links by clicking on them.
- Enter the custom CDN template in the provided input field. Use placeholders
{user}
,{repo}
,{branch}
,{commit}
, and{path}
. - Click the "Add" button to save the custom template.
- The custom template will be used along with the predefined templates to generate CDN links.
Contributions are welcome! Please open an issue or submit a pull request if you have any improvements or new features to add.
This project is licensed under the MIT License. See the LICENSE file for details.