{"id":30704271,"url":"https://github.com/stefkors/swiftsummarize","last_synced_at":"2025-09-02T17:50:10.439Z","repository":{"id":203927902,"uuid":"706712209","full_name":"StefKors/SwiftSummarize","owner":"StefKors","description":"Create a summary from any string or text","archived":false,"fork":false,"pushed_at":"2023-10-27T10:29:04.000Z","size":283,"stargazers_count":28,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-30T22:02:23.752Z","etag":null,"topics":["abstract","summarizer","summary","swift","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StefKors.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"StefKors","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-10-18T13:27:57.000Z","updated_at":"2025-07-17T04:37:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"37fa1c11-de6a-4441-838b-f214a9072f06","html_url":"https://github.com/StefKors/SwiftSummarize","commit_stats":null,"previous_names":["stefkors/swiftsummarize"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/StefKors/SwiftSummarize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefKors%2FSwiftSummarize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefKors%2FSwiftSummarize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefKors%2FSwiftSummarize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefKors%2FSwiftSummarize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StefKors","download_url":"https://codeload.github.com/StefKors/SwiftSummarize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefKors%2FSwiftSummarize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273324856,"owners_count":25085488,"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-02T02:00:09.530Z","response_time":77,"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":["abstract","summarizer","summary","swift","swiftui"],"created_at":"2025-09-02T17:49:58.652Z","updated_at":"2025-09-02T17:50:10.413Z","avatar_url":"https://github.com/StefKors.png","language":"Swift","funding_links":["https://github.com/sponsors/StefKors"],"categories":[],"sub_categories":[],"readme":"# SwiftSummarize\n\nSwiftSummarize is the easiest way to create a summary from a String. Internally it's a simple wrapper around CoreServices [SKSummary](https://developer.apple.com/documentation/coreservices/1446229-sksummarycreatewithstring)\n\n**Before**\n\u003e Here's to the crazy ones. The misfits. The rebels. The troublemakers. The round pegs in the square holes. The ones who see things differently. They're not fond of rules. And they have no respect for the status quo. You can quote them, disagree with them, glorify or vilify them. About the only thing you can't do is ignore them. Because they change things. They push the human race forward. And while some may see them as the crazy ones, we see genius. Because the people who are crazy enough to think they can change the world, are the ones who do.\n\n**After**\n\u003e Because the people who are crazy enough to think they can change the world, are the ones who do\n## Install\n\nAdd this url to your dependencies:\n\n```\nhttps://github.com/StefKors/SwiftSummarize\n```\n\n## Example\n\n```Swift\nlet input = \"\"\"\nHere's to the crazy ones. The misfits. The rebels. The troublemakers. The\nround pegs in the square holes. The ones who see things differently. They're not\nfond of rules. And they have no respect for the status quo. You can quote them,\ndisagree with them, glorify or vilify them. About the only thing you can't do is ignore\nthem. Because they change things. They push the human race forward. And while some\nmay see them as the crazy ones, we see genius. Because the people who are crazy\nenough to think they can change the world, are the ones who do.  \n\"\"\"\n\nlet summary = Summary(text, numberOfSentences: 1)\n\nprint(summary.output)\n// Because the people who are crazy enough to think they can change the world, are the ones who do\n```\nOr use it directly on Strings with the extension\n```Swift\nlet input = \"\"\"\nHere's to the crazy ones. The misfits. The rebels. The troublemakers. The\nround pegs in the square holes. The ones who see things differently. They're not\nfond of rules. And they have no respect for the status quo. You can quote them,\ndisagree with them, glorify or vilify them. About the only thing you can't do is ignore\nthem. Because they change things. They push the human race forward. And while some\nmay see them as the crazy ones, we see genius. Because the people who are crazy\nenough to think they can change the world, are the ones who do.  \n\"\"\"\n\nlet output = input.summarize(numberOfSentences: 1)\n\nprint(output)\n// Because the people who are crazy enough to think they can change the world, are the ones who do\n```\n\nA full SwiftUI code example can be found at [/Example/ExampleSwiftUI.swift](https://github.com/StefKors/SwiftSummarize/blob/main/Example/ExampleSwiftUI.swift)\n\n![preview](https://github.com/StefKors/SwiftSummarize/assets/11800807/c3000422-0dbe-41f4-9cc4-7b85afec087f)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefkors%2Fswiftsummarize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefkors%2Fswiftsummarize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefkors%2Fswiftsummarize/lists"}