-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add Rust implementation and reorganize codebase #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #26
- Reorganize JavaScript code into js/ folder with dedicated js.yml workflow - Add Rust implementation in rust/ folder with rust.yml workflow - Both implementations provide compatible REST APIs: - GET /html?url=<URL> - Render page as HTML - GET /markdown?url=<URL> - Convert page to Markdown - GET /image?url=<URL> - Screenshot page as PNG - GET /fetch?url=<URL> - Proxy fetch content - GET /stream?url=<URL> - Stream content - Each language version has its own: - README.md for package documentation - Dockerfile for microservice deployment - GitHub workflow for CI/CD and releases - Rust implementation uses axum web framework with tokio async runtime - JavaScript workflow uses changeset-based releases - Rust workflow uses version-tag based releases Closes #26 Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Fix Rust workflow to use dtolnay/rust-toolchain instead of dtolnay/rust-action - Add changeset for JavaScript package changes Co-Authored-By: Claude Opus 4.5 <[email protected]>
Co-Authored-By: Claude Opus 4.5 <[email protected]>
Co-Authored-By: Claude Opus 4.5 <[email protected]>
axum 0.8.8 requires Rust 1.78+, updated from 1.75 to 1.83
This reverts commit 80fbdb3.
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
|
./scripts folder can be left at the root, also let's make sure we have all scripts nessesary for both js.yml and rust.yml there. Ensure all changes are correct, consistent and fully meet the requirements, and both language versions have as similar implementations as possible. |
|
🤖 AI Work Session Started Starting automated work session at 2026-01-23T21:01:04.391Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait working session to finish, and provide your feedback. |
- Move JavaScript release scripts from js/scripts/ to root scripts/ - Add Rust-specific release scripts for crates.io publishing - Update js.yml workflow to reference scripts from ../scripts/ - Update rust.yml workflow to use Node.js scripts for consistency - Both workflows now use similar patterns for version management and releases Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 AI Work Session CompleteThe following changes have been made based on your feedback: Changes Made
CI Status
The PR is now ready for review. |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
Summary
js/folder with dedicatedjs.ymlworkflowrust/folder withrust.ymlworkflowscripts/folder (shared between JS and Rust)Changes
Scripts (
scripts/folder)js/scripts/to rootscripts/rust-*.mjs) for crates.io publishingJavaScript (
js/folder)js/folderrelease.ymltojs.ymlwith path filtering forjs/**andscripts/**js/README.mdfor npm package documentationRust (
rust/folder)GET /html?url=<URL>- Render page as HTMLGET /markdown?url=<URL>- Convert page to MarkdownGET /image?url=<URL>- Screenshot page as PNG (requires Chrome)GET /fetch?url=<URL>- Proxy fetch contentGET /stream?url=<URL>- Stream content--serve,--format,--output,--portoptionsrust.ymlworkflow with multi-OS testing matrix and Node.js scripts for releasesrust/README.mdfor crates.io documentationrust/Dockerfilefor microservice deploymentRoot Level
README.mdto document multi-language project structure withscripts/folderTest Plan
-D warningsRelated Issues
Closes #26
🤖 Generated with Claude Code