{"id":15648553,"url":"https://github.com/daniel-beard/sws","last_synced_at":"2025-03-29T23:41:23.277Z","repository":{"id":148525918,"uuid":"585324114","full_name":"daniel-beard/sws","owner":"daniel-beard","description":"A limited semantic search for Swift files","archived":false,"fork":false,"pushed_at":"2023-01-22T18:58:44.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-05T01:28:14.398Z","etag":null,"topics":["ast","command-line-tool","search","swift","swift-syntax"],"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/daniel-beard.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":"2023-01-04T22:06:15.000Z","updated_at":"2023-01-23T16:29:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"d80be1a9-cb1a-4353-9b82-6cc83f7754dd","html_url":"https://github.com/daniel-beard/sws","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-beard%2Fsws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-beard%2Fsws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-beard%2Fsws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daniel-beard%2Fsws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daniel-beard","download_url":"https://codeload.github.com/daniel-beard/sws/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246258862,"owners_count":20748573,"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":["ast","command-line-tool","search","swift","swift-syntax"],"created_at":"2024-10-03T12:25:12.039Z","updated_at":"2025-03-29T23:41:23.258Z","avatar_url":"https://github.com/daniel-beard.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftSearcher\n\nA limited semantic search for Swift codebases.\n\n```\nsws 'func:/deletingPrefix/'\n\nSearching 8 files\n./SwiftSearcherCore/SwiftSearcher.swift 94:5\nDone in: 13.663769ms\n```\n\n## Implemented Search Syntax\n\n- Each search is comprised of a matcher and and optional filter.\n- A matcher determines the type of AST node we are searching for, and filters further filter results.\n- The syntax is `{matcher}|{filter}`\n\n### Implemented matchers\n\n- `func`, `struct`, `class`\n- You can optionally specify a Swift Regex to search by the node identifier.\n- E.g. All classes ending with \"Manager\": `class:/Manager$/`\n\n### Implemented filters\n\n- `modifiers`:\n  - Search a matched nodes modifiers as a regex. \n  - Example: Matching a function that specifies `private` or `internal`: `func:/myFunc/|modifiers:/private|internal/`\n\t\n## Proposed Search Syntax\n\nNote: These are proposed search terms, and may not all be implemented yet.\n\n```\nfunc:/my.*/\nfunc:/myFunc/|parent:struct:/MyStruct/\nfunc:/myFunc/|returning:/String/\nstruct|implementing:/MyProcotol/\nfunc|modifiers:/private/\nclass|modifiers:/internal/\n```\n\n## TODO\n\n- [ ] Add tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-beard%2Fsws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniel-beard%2Fsws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-beard%2Fsws/lists"}