[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108738":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":14,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":17,"topics":20,"createdAt":9,"pushedAt":21,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":12,"starSnapshotCount":12,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},108738,"portfree","804384049\u002Fportfree","804384049","开发时端口被占，一行命令释放。零依赖",null,"Python",163,0,70,97,49.7,"MIT License",false,"main",true,[],"2026-11-05 08:40:08","2026-11-15 09:35:16","# portfree\n\nFree a TCP port in one command.\n\n开发时端口被占了？别再手翻 `lsof` \u002F `kill` —— 一行搞定。\n\n```bash\nportfree 3000\n```\n\n## Install\n\n```bash\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FYOUR_USER\u002Fportfree\u002Fmain\u002Fportfree.py -o ~\u002F.local\u002Fbin\u002Fportfree\nchmod +x ~\u002F.local\u002Fbin\u002Fportfree\n```\n\nOr just clone and run:\n\n```bash\npython3 portfree.py 3000\n```\n\n> Needs `lsof` (comes with macOS \u002F most Linux distros).\n\n## Usage\n\n```bash\n# free port 8080 (SIGTERM)\nportfree 8080\n\n# force kill (SIGKILL)\nportfree 8080 -f\n\n# only list who holds the port\nportfree 8080 -n\n```\n\n### Example\n\n```text\n$ portfree 5173\nport 5173 held by:\n  • pid 48201  node\nsent SIGTERM → pid 48201 (node)\nport 5173 is free ✓\n```\n\n## Why\n\n- zero dependencies (stdlib only)\n- one file, ~100 lines\n- safe defaults (`SIGTERM`, dry-run flag)\n\n## License\n\nMIT\n","portfree 是一个用于快速释放被占用 TCP 端口的轻量级命令行工具。它通过调用系统 `lsof` 查找占用指定端口的进程，并默认发送 SIGTERM 信号终止该进程；支持强制杀进程（-f）和仅预览（-n）等安全操作模式。项目完全基于 Python 标准库，零外部依赖，单文件部署，适用于本地开发调试中频繁遇到端口冲突的场景，如前端启动 Vite\u002FReact、后端服务重启等。",2,"2026-11-24 04:35:05","CREATED_QUERY"]