Commit Graph
753 Commits
Author SHA1 Message Date
xixu-me 2104ffa96e Reformat config files to use spaces and single quotes
Updated tsconfig.json and vitest.config.js to use consistent 2-space indentation and single quotes for strings, improving code style and readability.
2025-07-25 12:05:35 +08:00
xixu-me 78ebc49a4b Refactor ESLint config for improved readability
Reformatted the ESLint configuration file to use consistent array/object formatting and removed unnecessary quotes from rule names. No functional changes were made; this improves maintainability and clarity. Other config files had only minor formatting updates.
2025-07-25 12:01:29 +08:00
xixu-me 782fb3492d Merge branch 'main' of https://github.com/xixu-me/Xget 2025-07-25 09:36:06 +08:00
xixu-me b147ea7052 Add npm registry URL rewriting and improve formatting
Introduces logic to rewrite npm registry tarball URLs in JSON responses to route through the proxy endpoint, ensuring package names are preserved. Also improves code formatting and consistency across source and test files, and adds related test cases for npm URL rewriting.
2025-07-25 09:36:03 +08:00
xixu-me b93bfa4434 Update README.md 2025-07-25 08:40:45 +08:00
xixu-me 31e25a1c6f Update multi-platform integration section in README
Simplified and unified the description of multi-platform integration features in the README. The new wording emphasizes one-stop mirroring, intelligent recognition, and a consistent acceleration experience across platforms.
2025-07-24 22:40:48 +08:00
xixu-me b264c9d713 Update documentation for clarity and formatting
Improved wording, formatting, and badge order in README.md to better highlight Xget's features and advantages. Fixed spacing and link formatting in CONTRIBUTING.md and test/README.md for consistency and readability.
2025-07-24 22:24:31 +08:00
xixu-me f252782cca Merge pull request #3 from xixu-me/dependabot/npm_and_yarn/npm_and_yarn-b315956786
Bump the npm_and_yarn group across 1 directory with 2 updates
2025-07-24 21:56:46 +08:00
dependabot[bot] 51ea334452 Bump the npm_and_yarn group across 1 directory with 2 updates
---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.25.5
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: wrangler
  dependency-version: 4.26.0
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-24 13:54:50 +00:00
xixu-me 38833f4c3a Update documentation to use '存储库' instead of '项目'
Replaced occurrences of '项目' (project) with '存储库' (repository) across issue templates, contributing guide, and README for consistency and clarity. Updated badges, usage examples, and contribution instructions to reflect this terminology change. No functional code changes were made.
2025-07-24 21:53:48 +08:00
xixu-me da0b518900 Update test tooling and scripts, add tsconfig.json
Modernizes test and lint scripts in package.json to use Vitest, Prettier, and ESLint directly. Updates devDependencies to latest versions. Adds a tsconfig.json for type checking and editor support. Improves test mocking in performance.test.js and updates documentation in README.md to reflect new test commands. Cleans up unused options in vitest.config.js.
2025-07-24 21:28:47 +08:00
xixu-me b34e490e6c Migrate issue templates to YAML and add contribution docs
Replaced Markdown issue templates with structured YAML templates for bug reports, feature requests, performance issues, deployment help, and platform support. Added .prettierrc.json and .prettierignore for code formatting, a detailed CONTRIBUTING.md, and a pull request template. Updated CODE_OF_CONDUCT.md and README.md to reference new contribution guidelines. Added ESLint config, test scripts, and initial test files to improve project maintainability and onboarding.
2025-07-24 21:05:13 +08:00
xixu-me 8ad628aafd Remove Dependabot and deploy workflow configs
Deleted .github/dependabot.yml and .github/workflows/deploy.yml to disable automated dependency updates and deployment to Cloudflare Workers.
2025-07-24 20:06:12 +08:00
xixu-me 6d30820daa Prioritize specific platform paths in detection logic
Platforms are now sorted by path length in descending order before matching, ensuring that more specific paths (e.g., conda/community) are matched before general ones (e.g., conda). This prevents incorrect platform detection when similar prefixes exist.
2025-07-24 20:04:21 +08:00
xixu-me dc40cacf81 Redirect invalid platforms to GitHub repo
Requests to the root path or with invalid/missing platforms now redirect to the GitHub repository instead of returning a 400 error. This improves user experience by guiding users to the project homepage for more information.
2025-07-24 19:50:36 +08:00
xixu-me cef0e26ed8 Add PyPI files proxy support and URL rewriting
Introduces a new 'pypi-files' platform configuration for proxying files from files.pythonhosted.org. Updates platform detection logic for better flexibility and rewrites PyPI simple index HTML responses to route file URLs through the proxy.
2025-07-24 19:27:28 +08:00
xixu-me 57c02eb179 Create SECURITY.md 2025-07-24 15:33:17 +08:00
xixu-me 4115f931a3 Update PyPI URLs to use pypi.org domain
Changed all references from files.pythonhosted.org to pypi.org in both the README and the PyPI platform configuration. This aligns documentation and configuration with the current official PyPI domain.
2025-07-24 15:32:47 +08:00
xixu-me 0cb8351f9a Refactor and streamline README usage instructions
Updated the conda mirror table to include both default and community channels. Removed redundant direct download and batch download code examples for npm, PyPI, and conda, consolidating usage instructions. Moved and streamlined CI/CD and Docker integration examples, and clarified configuration steps for npm, pip, and conda mirrors. This makes the README more concise and focused on configuration and integration.
2025-07-24 15:12:17 +08:00
xixu-me 11076bb7ea Refactor conda channel support and update docs
Added explicit support for conda community channels in platform config and request handling. Updated README with improved conda usage instructions, new .condarc and environment.yml examples, and clarified download/configuration steps. Removed Vitest test dependencies and test files from the project.
2025-07-24 14:49:21 +08:00
xixu-me 613253c1ad Add conda platform support and update documentation
Added conda registry configuration to the platforms config and updated the README to document conda support, including usage examples, URL conversion, and configuration for conda and mamba. This enhances the service by enabling accelerated downloads and proxying for Anaconda and Miniconda packages.
2025-07-24 11:56:49 +08:00
xixu-me 5296a2c4b9 Add PyPI support to documentation and platform config
Extended the README with instructions and examples for accelerating PyPI (Python package) downloads and pip configuration. Added PyPI platform configuration to src/config/platforms.js to enable proxying of files.pythonhosted.org URLs.
2025-07-24 11:51:01 +08:00
xixu-me 535f07a993 Add npm registry support and documentation
Added npm registry as a supported platform in the codebase and updated the README with usage instructions, examples, and configuration details for npm package acceleration. This enhances the tool's capabilities to accelerate npm package downloads and metadata retrieval.
2025-07-24 11:46:47 +08:00
xixu-me a2fe270445 Redirect root path to GitHub repository
Replaces serving the homepage for the root path with a 302 redirect to the project's GitHub repository. Simplifies the logic and improves user navigation.
2025-07-23 16:59:17 +08:00
xixu-me fc95a5128b Update homepage URL in request handler
Changed the HOME_PAGE_URL from the GitHub Pages site to the main GitHub repository URL in the root path handler.
2025-07-23 16:32:43 +08:00
xixu-me 9f119f21c3 Serve external homepage and remove local homepage
Replaces the local homepage HTML with a redirect to an external static homepage at https://xixu-me.github.io/Xget-page/. Removes the now-unused homepage.js file and updates tests to reflect the new homepage behavior.
2025-07-22 21:49:06 +08:00
xixu-me 8581195d4d Refactor config and update homepage styles
Refactored src/config/index.js to export a structured CONFIG object with application and security settings, and moved platform definitions to a separate import. Updated src/homepage.js to improve and align styles, enhance section structure, and synchronize UI/UX with the new config and design direction.
2025-07-22 19:56:00 +08:00
xixu-me 8b94068fdf Add modern homepage HTML generator for Xget
Replaces previous config export with a new `generateHomepage` function that returns a complete, modern, Chinese-language HTML homepage for Xget. The page includes sections for features, supported platforms, usage examples, a URL converter, and responsive design, with embedded CSS and JavaScript for interactivity.
2025-07-22 19:54:56 +08:00
xixu-me a1ff8750d8 Add modern homepage and serve it at root path
Introduces a new `generateHomepage` function in `src/homepage.js` that returns a modern HTML homepage for Xget, featuring a URL converter and platform information. Updates the root path handler in `src/index.js` to serve this homepage directly instead of redirecting to an external site. Adjusts tests in `test/index.spec.js` to validate the new homepage content and response headers.
2025-07-22 19:33:33 +08:00
xixu-me 404d1051e4 Update VSCode download link and section heading in README
Changed the VSCode download URL from a .deb file to a .zip archive and updated the section heading from '环境变量' to '配置参数' for clarity.
2025-07-22 19:05:10 +08:00
xixu-me 2f55456ea3 Update Hugging Face mirror usage example in README
Expanded the Hugging Face mirror example to use AutoModelForCausalLM, added explanatory comments, and provided a sample inference snippet. This improves clarity for users on how to load models and tokenizers via the Xget mirror.
2025-07-22 18:56:52 +08:00
xixu-me 78086a8db7 Update README with improved Xget usage examples
Replaces outdated VSCode download link with the latest archive link and clarifies usage of Xget acceleration in code. Adds explicit examples for specifying the Xget mirror directly in model loading functions.
2025-07-22 14:06:04 +08:00
xixu-me 01c61490de Update example URLs in README for clarity
Replaced hardcoded repository and file names in example commands with placeholders to improve clarity and generality. This helps users understand where to substitute their own project-specific information when using the documented commands.
2025-07-22 13:30:27 +08:00
xixu-me 713c370cae Update accelerated link formats in README table
Revised the accelerated link format examples for GitHub, GitLab, and Hugging Face in the documentation table to use '...' instead of '[路径]' for consistency and clarity.
2025-07-22 12:57:35 +08:00
xixu-me bf287467e4 Update link format section in README
Replaced the plain text description of link conversion formats with a markdown table for better clarity and readability. Added specific examples for GitHub, GitLab, and Hugging Face platforms.
2025-07-22 12:54:17 +08:00
xixu-me 6ca96490c3 Improve Git protocol request and header handling
Expanded detection of Git requests by checking for Git-specific content types and improved user agent checks. Updated header handling to copy all headers for Git operations, ensuring better protocol compliance, and preserved all upstream response headers for Git requests. Also fixed parsing of platform from URL and improved body handling for POST requests.
2025-07-22 12:32:37 +08:00
xixu-me ef54e4e6cc Improve Git request handling and error responses
Refactors Git request processing to set the correct Content-Type and include the Git-Protocol header. Enhances retry logic by avoiding retries on client errors (4xx), adds security headers to error responses, and improves error handling for timeouts and upstream server errors.
2025-07-22 12:19:54 +08:00
xixu-me b01bbd04ed Update dataset links in README
Replaced wikitext dataset links with SQuAD dataset links in the README to reflect the new data source.
2025-07-22 12:03:40 +08:00
xixu-me d11c6fd505 Update README examples for Hugging Face datasets
Replaced Hugging Face dataset example links from SQuAD to Wikitext-103 in both usage examples and CI instructions. Also simplified section headings for GitHub, GitLab, and Hugging Face examples.
2025-07-22 12:01:41 +08:00
xixu-me 0f681fe7d1 Expand and clarify usage instructions in README
The README now provides detailed link conversion rules, platform-specific examples, and comprehensive integration guides for Git, wget, curl, aria2, Python, CI/CD pipelines, Docker, and IDEs. These enhancements aim to help users quickly adopt Xget in various development and deployment scenarios.
2025-07-22 11:57:13 +08:00
xixu-me d35194141f Update example URLs and platform table in README
Replaces placeholder URLs with real repository and model examples for GitHub, GitLab, and Hugging Face in the usage instructions. Updates the supported platforms table to use actual project names, improving clarity and usability for users.
2025-07-22 09:32:29 +08:00
xixu-me e121fe8891 Update README with retry, cache, and troubleshooting info
Clarified retry strategy as linear delay, specified cache duration in seconds, and improved configuration comments for clarity. Added performance tuning suggestions and a new troubleshooting section covering common issues, performance metrics, and debugging tips.
2025-07-21 20:20:37 +08:00
xixu-me e52c4d6936 Update project description in README
Removed reference to Cloudflare Workers in the project description to better reflect the current scope of the proxy service.
2025-07-21 20:17:06 +08:00
xixu-me 3fc0b1d5e7 Update Chromium Extension badge link in README
Changed the Chromium Extension badge link to point to the ecosystem integration section instead of the browser extension section.
2025-07-21 20:16:22 +08:00
xixu-me 7732252cb4 Expand and reorganize feature documentation in README
The README now provides more detailed and structured descriptions of Xget's features, including global edge distribution, platform integration, enterprise security, modern architecture, Git protocol compatibility, and ecosystem integration. Redundant sections on browser extension, performance, and security were removed or merged for clarity. Example URLs and usage instructions were also updated for better guidance.
2025-07-21 20:15:49 +08:00
xixu-me 54e0b91263 Update README wording for repository references
Replaced occurrences of '仓库' with '存储库' and updated related instructions for consistency and clarity in the deployment and usage sections.
2025-07-21 19:54:32 +08:00
xixu-me 2974180f53 Update README to clarify Git operation support
Expanded documentation to emphasize support for both file downloads and Git operations (clone, push, pull) via the proxy service. Adjusted section headings and usage examples for better clarity.
2025-07-21 19:49:42 +08:00
xixu-me e400971918 Update and expand README with usage and deployment guides
The README has been significantly revised to provide clearer instructions for quick use, deployment (including one-click Cloudflare Workers deployment and manual setup), and configuration. It now includes detailed usage examples for GitHub, GitLab, and Hugging Face, as well as information on browser extension support, security features, performance benefits, and legal disclaimers. The documentation is more structured, with new sections for features, supported platforms, and development instructions.
2025-07-21 19:41:17 +08:00
xixu-me a73be14895 Update extension references to Xget for Chromium
Changed all mentions of 'Xget for Chrome' to 'Xget for Chromium' in the README, including repository and release links, to reflect the updated extension name and repository location.
2025-07-21 17:06:09 +08:00
xixu-me 7ec7cf758a Update download links in README
Revised the Chrome and Edge store links to include language and region parameters, and updated their display names for clarity.
2025-07-21 15:17:54 +08:00