{"id":15029326,"url":"https://github.com/yagiz/bagel","last_synced_at":"2025-05-14T07:08:16.112Z","repository":{"id":39636470,"uuid":"91084289","full_name":"yagiz/Bagel","owner":"yagiz","description":"a little native network debugging tool for iOS","archived":false,"fork":false,"pushed_at":"2024-08-20T10:54:06.000Z","size":9979,"stargazers_count":4409,"open_issues_count":35,"forks_count":325,"subscribers_count":48,"default_branch":"master","last_synced_at":"2025-05-09T16:43:13.863Z","etag":null,"topics":["alamofire","debug","ios","network","network-traffic","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/yagiz.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}},"created_at":"2017-05-12T11:22:19.000Z","updated_at":"2025-05-09T15:05:44.000Z","dependencies_parsed_at":"2024-10-24T21:21:24.106Z","dependency_job_id":"de07e925-e3c7-444f-8adc-014b30895970","html_url":"https://github.com/yagiz/Bagel","commit_stats":{"total_commits":138,"total_committers":22,"mean_commits":"6.2727272727272725","dds":0.5507246376811594,"last_synced_commit":"763aadbf6a099681a66e69522f902e33094f6a55"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yagiz%2FBagel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yagiz%2FBagel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yagiz%2FBagel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yagiz%2FBagel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yagiz","download_url":"https://codeload.github.com/yagiz/Bagel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254092776,"owners_count":22013290,"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","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":["alamofire","debug","ios","network","network-traffic","swift"],"created_at":"2024-09-24T20:10:19.900Z","updated_at":"2025-05-14T07:08:16.084Z","avatar_url":"https://github.com/yagiz.png","language":"Swift","funding_links":[],"categories":["\u003ca id=\"58cd9084afafd3cd293564c1d615dd7f\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"d0108e91e6863289f89084ff09df39d0\"\u003e\u003c/a\u003e新添加的"],"readme":"# Bagel\n![Bagel](https://github.com/yagiz/Bagel/blob/master/assets/header.png?raw=true)\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/CocoaPods/CocoaPods\" alt=\"CocoaPods\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/CocoaPods-compatible-4BC51D.svg?style=flat\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Carthage/Carthage\" alt=\"Carthage\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/JamitLabs/Accio\" alt=\"Accio\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Accio-supported-0A7CF5.svg?style=flat\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/yagiz/Bagel/releases\" alt=\"Version\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/release/yagiz/Bagel.svg\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nBagel is a little native iOS network debugger. It's not a proxy debugger so you don't have to mess around with certificates, proxy settings etc. As long as your iOS devices and your Mac are in the same network, you can view the network traffic of your apps seperated by the devices or simulators.\n\n## Preview\n![Bagel](https://github.com/yagiz/Bagel/blob/develop/assets/screenshot.png?raw=true)\n## Installation\n#### Install Mac App\n- Clone the repo.\n- Install pods.\n- Build and archive the project.\n#### Install iOS Client\n#### CocoaPods\n```shhttps://img.shields.io/badge/version-1.3.1-blue.svg?style=flat\npod 'Bagel', '~\u003e  1.4.0'\n```\n##### Carthage\n```sh\ngithub \"yagiz/Bagel\" \"1.4.0\"\n```\n##### Accio\n```swift\n.package(url: \"https://github.com/yagiz/Bagel.git\", .upToNextMajor(from: \"1.4.0\")),\n```\n\n### Usage\nMost basic usage is to start Bagel iOS before any network operation. \n```swift\n//import Bagel\nBagel.start()\n```\nSince Bagel exposes every request info to the public it would be better if you disable it for the store versions. You can use the below snippet to do it:\n```swift\n//import Bagel\n#if DEBUG\nBagel.start()\n#endif\n```\n\n###  Configuring Bagel\nBy default, Bagel gets your project name and device information. Desktop client uses these informations to separate projects and devices. You can configure these if you wish:\n```swift\nlet bagelConfig = BagelConfiguration()\n\nbagelConfig.project.projectName = \"Custom Project Name\"\nbagelConfig.device.deviceName = \"Custom Device Name\"\nbagelConfig.device.deviceDescription = \"Custom Device Description\"\n\nBagel.start(bagelConfig)\n```\nBagel framework communicates with the desktop client by using Bonjour protocol. You can also configure these Netservice parameters. Default values are:\n\n```swift\nlet bagelConfig = BagelConfiguration()\n\nbagelConfig.netservicePort = 43434\nbagelConfig.netserviceDomain = \"\"\nbagelConfig.netserviceType = \"_Bagel._tcp\"\nbagelConfig.netserviceName = \"\"\n\nBagel.start(bagelConfig)\n```\nIf you change Netservice parameters in your app, you should also change them on desktop client.\n\nLicense\n----\nApache\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyagiz%2Fbagel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyagiz%2Fbagel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyagiz%2Fbagel/lists"}