{"id":20224985,"url":"https://github.com/adwaith-rajesh/calsen","last_synced_at":"2025-10-18T21:03:59.303Z","repository":{"id":164087783,"uuid":"639538715","full_name":"Adwaith-Rajesh/calsen","owner":"Adwaith-Rajesh","description":"A search engine for local files.","archived":false,"fork":false,"pushed_at":"2024-05-04T17:57:09.000Z","size":174,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T23:23:36.925Z","etag":null,"topics":["c","file-search","search","search-engine","tf-idf"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Adwaith-Rajesh.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["Adwaith-Rajesh"]}},"created_at":"2023-05-11T17:00:04.000Z","updated_at":"2024-05-04T17:57:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"71ec5362-308c-4737-8a16-2bbd3c9eb10a","html_url":"https://github.com/Adwaith-Rajesh/calsen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adwaith-Rajesh%2Fcalsen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adwaith-Rajesh%2Fcalsen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adwaith-Rajesh%2Fcalsen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adwaith-Rajesh%2Fcalsen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Adwaith-Rajesh","download_url":"https://codeload.github.com/Adwaith-Rajesh/calsen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241670064,"owners_count":20000323,"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":["c","file-search","search","search-engine","tf-idf"],"created_at":"2024-11-14T07:10:15.670Z","updated_at":"2025-10-18T21:03:54.240Z","avatar_url":"https://github.com/Adwaith-Rajesh.png","language":"C","funding_links":["https://github.com/sponsors/Adwaith-Rajesh"],"categories":[],"sub_categories":[],"readme":"# loCAL Search ENgine\n\n---\n\nA search engine to search for local files based on their contents and not just their file names.\n---\n\n### Road Map\n\n- [ ] parsers:\n\n  - [ ] docx\n  - [ ] pdf\n  - [ ] pptx\n        and other files\n\n- [ ] more docs\n\n---\n\n### Why?\n\n- I've never done any file I/O intensive project.\n- I'm really bad at organizing files, so I've files everywhere on my system.\n  - And with `Calsen` what I aim is to be able to search for a function name that I remembered in a file and then `Calsen` would 'seamlessly' find the source file that contains it.\n- It's fun to do something like this.\n- And I can learn a lot of things from this.\n\n---\n\n### Getting started\n\n#### Installation\n\n- clone the repo and cd into calsen.\n\n```console\ngit clone --depth=1 https://github.com/Adwaith-Rajesh/calsen.git\ncd calsen\n```\n\n- dependencies (I've plans to make this optional [#2](https://github.com/Adwaith-Rajesh/calsen/issues/2))\n\n```console\napt install libmagic-dev\n```\n\n#### Compiling\n\n[`Calsen`](https://github.com/Adwaith-Rajesh/calsen/) makes use of [nobuild](https://github.com/tsoding/nobuild) as it's build system. To compile run the following commands\n\n```console\ngcc -o nobuild ./nobuild.c\n./nobuild --release\nln -s ./build/bin/calsen ./calsen\n```\n\n#### Indexing\n\nTo index the required directories run.\n\n```console\n./calsen reindex --dir path/to/dir/1 --dir path/to/dir/2 -o sample.index\n```\n\n\u003e Use `--verbose` to get additional output\n\nThis will create a `.index` file that _Calsen_ will use during the search process.\n\n#### Searching\n\nInorder to search through the indexed file you can use the following command.\n\n```console\n./calsen search -i sample.index -q 'search query'\n```\n\n_Calsen_ will find all the files that matches the _\"search query\"_ and arranges them in descending of relevancy\n\n- To get top N files\n\n```calsen\n./calsen search -i sample.index -q 'search query' -n 10\n```\n\n\u003e Use `--verbose` to get the calculated TF-IDF score for each file\n\n### Bye...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadwaith-rajesh%2Fcalsen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadwaith-rajesh%2Fcalsen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadwaith-rajesh%2Fcalsen/lists"}