{"id":30884919,"url":"https://github.com/jsrei/curl-filter","last_synced_at":"2025-09-08T11:22:29.884Z","repository":{"id":313606960,"uuid":"1051350967","full_name":"JSREI/curl-filter","owner":"JSREI","description":"curl过滤","archived":false,"fork":false,"pushed_at":"2025-09-07T07:58:12.000Z","size":328,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-07T09:25:55.415Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JSREI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-05T20:51:35.000Z","updated_at":"2025-09-07T07:58:15.000Z","dependencies_parsed_at":"2025-09-07T09:25:57.193Z","dependency_job_id":"f7d267e2-82cb-46cb-82a3-1616bd535212","html_url":"https://github.com/JSREI/curl-filter","commit_stats":null,"previous_names":["jsrei/curl-filter"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/JSREI/curl-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSREI%2Fcurl-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSREI%2Fcurl-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSREI%2Fcurl-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSREI%2Fcurl-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JSREI","download_url":"https://codeload.github.com/JSREI/curl-filter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSREI%2Fcurl-filter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274175122,"owners_count":25235399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-08T11:22:24.473Z","updated_at":"2025-09-08T11:22:29.859Z","avatar_url":"https://github.com/JSREI.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cURL Filter\n\n[中文文档](README.zh-CN.md) | English\n\nA powerful web-based tool for filtering and editing cURL commands with configurable rules. Perfect for cleaning up cURL commands copied from browser developer tools before importing them into external systems.\n\n## 🚀 Live Demo\n\nVisit: [https://jsrei.github.io/curl-filter/](https://jsrei.github.io/curl-filter/)\n\n## 🎯 Problem Solved\n\nWhen you copy a request as cURL from Chrome DevTools (or other browsers), it includes many default headers and parameters that you might not need:\n\n- Unnecessary headers like `User-Agent`, `Accept-Language`, `Accept-Encoding`, etc.\n- Browser-specific headers like `sec-ch-ua`, `sec-fetch-*` headers\n- Authentication cookies that shouldn't be shared\n- Redundant query parameters\n\nThis tool helps you clean up these cURL commands by applying configurable filtering rules.\n\n## 🔧 Use Cases\n\n- **API Testing Tools**: Clean cURL commands before importing into Postman, Apifox, Insomnia\n- **Coze Plugin Development**: Prepare clean API requests for plugin configuration\n- **Documentation**: Generate clean cURL examples for API documentation\n- **Security**: Remove sensitive headers and cookies from shared cURL commands\n- **Automation**: Standardize cURL commands for scripts and CI/CD pipelines\n\n## ✨ Features\n\n- **Smart Filtering**: Remove unwanted headers, query parameters, and form data\n- **Configurable Rules**: Create custom filtering rules with regex patterns\n- **Real-time Preview**: See filtering results as you type\n- **Input Validation**: Smart detection and validation of cURL commands\n- **Quick Start**: One-click example to get started immediately\n- **Keyboard Shortcuts**: Efficient workflow with keyboard shortcuts\n- **History Management**: Keep track of your filtering history\n- **Export/Import**: Save and share your filtering rules\n- **Rule Templates**: Pre-built templates for common use cases\n- **Multi-language Support**: Available in English and Chinese\n- **Responsive Design**: Works on desktop and mobile devices\n\n## 🛠️ Installation\n\n### Prerequisites\n\n- Node.js 18+\n- npm or yarn\n\n### Local Development\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/JSREI/curl-filter.git\ncd curl-filter\n```\n\n2. Install dependencies:\n```bash\nnpm install\n```\n\n3. Start the development server:\n```bash\nnpm run dev\n# or use the provided script\n./start.sh\n```\n\n4. Open your browser and visit `http://localhost:25519`\n\n### Build for Production\n\n```bash\nnpm run build\n```\n\nThe built files will be in the `dist` directory.\n\n## 📖 Usage\n\n### Quick Start\n\n1. **Try the Example**: Click \"Use Example\" to load a sample cURL command\n2. **Configure Rules**: Click \"Rule Management\" (Ctrl+M) to set up filtering rules\n3. **Apply Filters**: Click \"Apply Filter Rules\" (Ctrl+Enter) to process your cURL command\n4. **Copy Result**: Use the copy button to copy the cleaned cURL command\n\n### Detailed Steps\n\n1. **Paste cURL Command**: Copy a cURL command from your browser's developer tools and paste it into the input field. The tool will automatically validate your input.\n\n2. **Configure Rules**: Click \"Rule Management\" to set up filtering rules:\n   - Remove specific headers (e.g., `User-Agent`, `Accept-Language`)\n   - Filter query parameters\n   - Clean form data\n   - Remove JSON body fields\n   - Use pre-built templates for common scenarios\n\n3. **Apply Filters**: Click \"Apply Filter Rules\" to process your cURL command. You can also use Ctrl+Enter for quick processing.\n\n4. **Copy Result**: Use the copy button to copy the cleaned cURL command.\n\n### Keyboard Shortcuts\n\n- **Ctrl+Enter**: Apply filter rules\n- **Ctrl+K**: Clear input\n- **Ctrl+M**: Open rule management\n\n### Example\n\n**Before filtering:**\n```bash\ncurl 'https://api.example.com/users?page=1' \\\n  -H 'accept: application/json' \\\n  -H 'accept-language: en-US,en;q=0.9,zh-CN;q=0.8' \\\n  -H 'cache-control: no-cache' \\\n  -H 'sec-ch-ua: \"Chrome\";v=\"120\"' \\\n  -H 'sec-fetch-dest: empty' \\\n  -H 'user-agent: Mozilla/5.0...'\n```\n\n**After filtering:**\n```bash\ncurl 'https://api.example.com/users?page=1' \\\n  -H 'accept: application/json' \\\n  -H 'cache-control: no-cache'\n```\n\n## 🔧 Configuration\n\nThe tool supports various filtering rules:\n\n- **Header Filters**: Remove or modify HTTP headers\n- **Query Parameter Filters**: Clean URL parameters\n- **Form Data Filters**: Filter form fields\n- **JSON Body Filters**: Remove JSON properties\n- **Custom Patterns**: Use regex for advanced filtering\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- Built with React, TypeScript, and Vite\n- UI components from Material-UI\n- Deployed on GitHub Pages\n\n## 📞 Support\n\nIf you have any questions or need help, please:\n\n1. Check the [Issues](https://github.com/JSREI/curl-filter/issues) page\n2. Create a new issue if your problem isn't already reported\n3. Provide detailed information about your use case\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsrei%2Fcurl-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsrei%2Fcurl-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsrei%2Fcurl-filter/lists"}