Commit Graph
220 Commits
Author SHA1 Message Date
xixu-me 2166f02cb8 Revert "Add Kaggle platform support and path transformation"
This reverts commit 1480595fbc.
2025-08-20 22:30:06 +08:00
xixu-me 3469e3f8d6 Add Kaggle platform support and path transformation
Introduces Kaggle as a supported platform in the configuration and health check. Implements special path transformation logic for Kaggle API endpoints in transformPath, and adds comprehensive tests to verify correct path handling for various Kaggle API routes.
2025-08-20 22:17:48 +08:00
xixu-me 1c2cc32803 Fix Civitai badge URL and minor formatting in README files
Removed unused logo parameters from the Civitai badge in both English and Chinese README files. Also fixed minor whitespace formatting in code examples in the Chinese README.
2025-08-20 21:52:38 +08:00
xixu-me 87a038ea5b Add Civitai support and usage examples to README
Added Civitai badge, URL transformation instructions, and Python usage examples for the Civitai AI model platform to both English and Chinese README files. This update documents how to accelerate Civitai model downloads and API access via the Xget service.
2025-08-20 21:43:27 +08:00
xixu-me 55adac1ec5 Add Civitai platform support
Added 'civitai' to the PLATFORMS config and updated tests to include Civitai path transformations. This enables handling of Civitai URLs in the platform configuration and ensures correct path transformation logic.
2025-08-20 21:37:57 +08:00
xixu-me d16b296fe7 Update config to use environment variables
Replaced hardcoded configuration values in src/config/index.js with environment variable lookups to improve flexibility and security.
2025-08-20 13:33:35 +08:00
xixu-me e48fc017d2 Update deployment badge links in README files
Changed the badge links for Cloudflare Workers, Vercel, and Docker in both English and Chinese README files to point to their respective sections directly, improving navigation.
2025-08-19 21:51:49 +08:00
xixu-me 5884ecd883 Simplify deployment section in README files
Streamlined the deployment instructions in both English and Chinese README files by removing the manual deployment section and consolidating the headings for Cloudflare Workers, Vercel, and Docker. This makes the deployment options clearer and reduces redundancy.
2025-08-19 21:50:22 +08:00
xixu-me 58a0835213 Ignore docs and config files in CI workflow triggers
Updated the GitHub Actions workflow to ignore changes in markdown files, documentation, test, scripts, and common config files when triggering on push and pull_request events. This reduces unnecessary workflow runs for non-code changes.
2025-08-19 21:44:49 +08:00
xixu-me ef2f530a68 Add Docker deployment instructions to README
Added a new section to the README with detailed instructions for deploying using Docker, Docker Compose, and Kubernetes. Also updated badges to include Docker and made minor formatting improvements throughout the file.
2025-08-19 21:38:38 +08:00
xixu-me f2cbc870d7 Rename docker workflow to image and update labels
Renamed the workflow file from docker.yml to image.yml and updated workflow and step names to use 'Image' instead of 'Docker'. This improves clarity and generalizes the workflow for building and pushing images.
2025-08-19 21:35:43 +08:00
xixu-me a800fd9082 Fix Trivy scan to use correct image tag
Introduced a step to extract the first image tag from build outputs and use it as the image reference for the Trivy vulnerability scanner. This ensures the scanner analyzes the correct image version.
2025-08-19 21:25:23 +08:00
xixu-me 5c9c02008e Update Trivy scan to use tag instead of digest
Added debug output steps and changed the Trivy vulnerability scanner to reference the image by tag (${github.ref_name}) instead of digest. This helps with debugging and aligns the scan with the tagged image.
2025-08-19 21:21:45 +08:00
xixu-me 28b23f31bd Update Docker workflow to use image digest for Trivy scan
Adds outputs for image tags and digest in the build-and-push job and updates the Trivy scanner to reference the image by digest instead of the latest tag. This ensures the vulnerability scan is performed on the exact built image.
2025-08-19 21:11:16 +08:00
xixu-me 4fc2cc8002 Add attestations permission to Docker workflow
Grants the 'attestations: write' permission in the GitHub Actions Docker workflow to enable writing attestations. This may be required for enhanced security or provenance features.
2025-08-19 21:04:37 +08:00
xixu-me 2cc93ba0ce Fix Docker digest output reference in workflow
Updates the GitHub Actions workflow to use the correct step ID 'build-and-push' for the Docker image digest output, ensuring the provenance attestation references the correct value.
2025-08-19 21:00:48 +08:00
xixu-me f01acfa0bb Add id-token write permission to Docker workflow
Grants the workflow 'id-token: write' permission, which may be required for certain authentication steps or integrations in the Docker build and publish process.
2025-08-19 20:55:47 +08:00
xixu-me f46e89cba2 Update package-lock.json dependencies
Updated various dependencies in package-lock.json, including esbuild and related platform-specific packages, to newer versions. This ensures compatibility and includes the latest bug fixes and improvements from upstream packages.
2025-08-19 20:52:35 +08:00
xixu-me 16be610502 Add express to dependencies and improve Dockerfile
Added express as a production dependency in package.json and updated the Dockerfile to install dependencies more efficiently using npm ci when package-lock.json is present. This streamlines the build process and ensures express is available in production environments.
2025-08-19 20:41:19 +08:00
xixu-me 4d47c42084 Add Docker support and server entrypoint
Introduced Dockerfile, .dockerignore, and GitHub Actions workflow for building and publishing Docker images. Added server.js as the Express entrypoint for standalone deployment. Updated README with Docker, Docker Compose, and Kubernetes deployment instructions.
2025-08-19 20:37:29 +08:00
xixu-me 3cf924c677 Remove VERCEL_DEPLOYMENT.md reference from README
Updated both English and Chinese README files to remove the reference to VERCEL_DEPLOYMENT.md in the Vercel deployment section.
2025-08-17 17:56:13 +08:00
xixu-me 5bc82d35ea Add Vercel Edge Function support for Xget
Introduces Vercel deployment support by adding Edge Function handlers in the api directory, Vercel configuration files, and related ignore rules. Updates documentation to include Vercel one-click deployment instructions and badges. Adds Vercel-specific scripts to package.json for development and deployment workflows.
2025-08-17 17:41:34 +08:00
xixu-me 137ee66796 Update README with URL converter info
Added information about the new URL converter (xuc.xi-xu.me) to both English and Chinese README files. Also adjusted formatting for public instance mentions for consistency.
2025-08-17 17:30:17 +08:00
xixu-me 3bf33a8f3b Update Wrangler login command in README files
Replaces 'npx wrangler auth login' with 'npx wrangler login' in both English and Chinese README files to reflect the updated Wrangler CLI authentication command.
2025-08-17 11:50:16 +08:00
xixu-me f7f5ec8548 Add smart placement mode to wrangler.toml
Added a [placement] section with mode set to 'smart' in wrangler.toml to configure deployment placement strategy.
2025-08-16 14:18:51 +08:00
xixu-me 7b3fc0b8ae Update Xget OpenAI API base_url in README files
Changed the example base_url for Xget-accelerated OpenAI API from '/ip/openai' to '/ip/openai/v1' in both English and Chinese README files to reflect the correct endpoint.
2025-08-14 19:09:20 +08:00
xixu-me 5774f49f74 Revise and enhance English README for clarity and accuracy
Improved language, consistency, and technical accuracy throughout the README.en.md file. Updated terminology (e.g., 'link' to 'URL', 'conversion' to 'transformation'), clarified instructions, corrected section titles, and enhanced example explanations. Streamlined descriptions for platform support, usage scenarios, and configuration steps to provide a clearer and more professional guide for users.
2025-08-14 18:32:29 +08:00
xixu-me ca180c67db Add AI inference provider acceleration to README
Expanded the README to document support for AI inference API acceleration, including a new badge, provider table, usage examples, environment variable configuration, and performance comparisons. This update details how to use Xget to accelerate API calls to over 25 mainstream AI inference providers, with code samples and production deployment recommendations.
2025-08-14 17:30:00 +08:00
xixu-me 4b0eb5ecd3 Update AI API references and Gemini test case
Revised README to clarify 'AI 推理 API' terminology, updated Gemini API example URLs to use 'gemini-2.5-flash', and adjusted the related test case in platforms.test.js to match the new Gemini API path.
2025-08-14 17:09:58 +08:00
xixu-me 74a7ea6201 Update AI provider keys and docs for consistency
Renamed several AI provider keys and references (e.g., 'ip-google' to 'ip-gemini', 'ip-mistral' to 'ip-mistralai', etc.) in the codebase, documentation, and tests for improved clarity and alignment with provider branding. Updated README usage examples and provider tables to match the new keys.
2025-08-14 16:52:14 +08:00
xixu-me 0c23dc5966 Update README wording for acceleration experience
Replaces 'download experience' with 'acceleration experience' in both English and Chinese README files for clarity and consistency.
2025-08-14 16:27:41 +08:00
xixu-me f7cdcb8b12 Replace '链接' with 'URL' for clarity in docs
Updated documentation and templates to consistently use 'URL' instead of '链接' when referring to web addresses. This improves clarity and aligns terminology across the README, issue, and pull request templates.
2025-08-14 16:11:10 +08:00
xixu-me c20c1a2551 Add AI inference providers support and docs
Expanded README with detailed documentation and usage examples for AI inference provider acceleration, including a new badge, platform table entries, and code samples for Python and JavaScript. Updated src/config/platforms.js to use the correct Hugging Face inference API endpoint.
2025-08-14 16:05:50 +08:00
xixu-me 0e28c3e1ee Update AI inference providers list and tests
Expanded and reordered the list of AI inference providers in the platform configuration to include new providers such as ip-github, ip-nvidia, ip-braintrust, ip-jina, ip-voyageai, ip-burncloud, and ip-poe. Updated the corresponding test to match the new provider list and order.
2025-08-14 15:09:20 +08:00
xixu-me 079a7deccb Add AI inference request handling to proxy
Introduces isAIInferenceRequest to detect AI inference API requests and updates request validation, caching, and header logic to support AI endpoints. Ensures proper content type and User-Agent headers for AI requests and skips caching for these operations, similar to Git and Docker requests.
2025-08-14 14:47:13 +08:00
xixu-me b6f9589f08 Add OpenRouter to AI inference providers
Added 'ip-openrouter' with its URL to the PLATFORMS config and updated related tests to include OpenRouter as a supported AI inference provider.
2025-08-14 14:35:41 +08:00
xixu-me 932a5d413a Add AI inference providers to platform config and tests
Added major AI/ML inference providers to the PLATFORMS config. Introduced comprehensive tests to ensure all providers are defined, their paths are transformed correctly, and valid URLs are constructed.
2025-08-14 13:59:18 +08:00
xixu-me 7cf0c2c017 Add Homebrew mirror support and usage instructions
Updated README.en.md to include Homebrew badge, mirror table entries, usage examples, and detailed configuration instructions for accelerating Homebrew with Xget. Removed Homebrew performance comparison section from README.md.
2025-08-11 09:46:03 +08:00
xixu-me 88b1f9461f Add Homebrew support and tests
Added Homebrew, Homebrew API, and Homebrew Bottles platform support in the configuration. Updated the README with Homebrew usage instructions and examples. Introduced comprehensive tests for Homebrew path transformations to ensure correct behavior.
2025-08-11 09:38:17 +08:00
xixu-me 3645d42f98 Update README.en.md 2025-08-10 23:00:19 +08:00
xixu-me 1b40d96548 Update README.md 2025-08-10 22:59:01 +08:00
xixu-me 2d3a1856ff Update README.md 2025-08-10 22:58:17 +08:00
xixu-me dc30535d33 Update README.md 2025-08-10 22:57:27 +08:00
xixu-me 0ed5e351c4 Fix CTAN badge anchor links in README files
Updated the CTAN badge anchor links in both English and Chinese README files to use the correct section IDs, ensuring proper navigation.
2025-08-08 19:04:39 +08:00
xixu-me e933672dc6 Add Apache software download acceleration support
Added Apache as a supported platform in the documentation and configuration. Updated both English and Chinese README files with instructions and examples for accelerating Apache software downloads via Xget, and registered the Apache platform in the platforms.js config.
2025-08-08 18:52:00 +08:00
xixu-me 3fe0d169ce Add AOSP, CPAN, and CTAN platform support
Added support and documentation for AOSP (Android Open Source Project), CPAN (Perl), and CTAN (TeX/LaTeX) mirrors in both English and Chinese README files. Updated src/config/platforms.js to include these platforms. No functional changes to request handling logic.
2025-08-08 18:44:39 +08:00
xixu-me cd38f7fe3d Ensure Content-Length header for HEAD requests
Adds special handling for HEAD requests to guarantee the Content-Length header is present. If the initial HEAD response lacks this header, a GET request is performed to retrieve or calculate the correct Content-Length value.
2025-08-08 17:33:09 +08:00
xixu-me 65f9d32946 Remove PyTorch platform support and related tests
This commit removes all code, documentation, and tests related to the PyTorch platform. PyTorch is no longer listed as a supported platform in the configuration, README files, or test suites.
2025-08-07 14:53:47 +08:00
xixu-me 07cbfa4177 Improve PyTorch wheel index URL rewriting and tests
Refactors PyTorch path transformation logic and enhances URL rewriting for PyTorch wheel index pages to handle both absolute and relative links. Removes unnecessary cache skipping for PyTorch index pages and adds dedicated tests for PyTorch URL rewriting and path transformation.
2025-08-07 14:44:33 +08:00
xixu-me 34fbe584d7 Improve PyTorch pip index handling and caching
Added special handling for PyTorch pip index requests to skip cache and set shorter cache duration for index pages. Updated URL rewriting logic to correctly rewrite PyTorch download URLs in HTML responses. Refactored code to distinguish between npm and PyTorch URL rewriting and clarified path transformation for PyTorch in the config.
2025-08-07 14:29:42 +08:00