{"id":22957785,"url":"https://github.com/parvezmrobin/rack-node","last_synced_at":"2025-06-12T07:09:24.173Z","repository":{"id":47826620,"uuid":"278396072","full_name":"parvezmrobin/rack-node","owner":"parvezmrobin","description":"A nodejs wrapper of the rack tool","archived":false,"fork":false,"pushed_at":"2022-12-11T13:23:10.000Z","size":27169,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T09:04:25.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parvezmrobin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-09T15:04:02.000Z","updated_at":"2023-04-03T04:16:13.000Z","dependencies_parsed_at":"2023-01-27T00:01:26.226Z","dependency_job_id":null,"html_url":"https://github.com/parvezmrobin/rack-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/parvezmrobin/rack-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parvezmrobin%2Frack-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parvezmrobin%2Frack-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parvezmrobin%2Frack-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parvezmrobin%2Frack-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parvezmrobin","download_url":"https://codeload.github.com/parvezmrobin/rack-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parvezmrobin%2Frack-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259418215,"owners_count":22854185,"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":[],"created_at":"2024-12-14T17:20:17.629Z","updated_at":"2025-06-12T07:09:24.142Z","avatar_url":"https://github.com/parvezmrobin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"rack-node\n=========\n\n`rack-node` Enables you convert your Java query written in natural language\nto a list of Java APIs.\nSearch engines primarily does keyword-matching, and they perform better when you add\nAPI keywords in your search query.\nThe primary use of this project is by other integrated search engines\nlike searching from IDE or other coding websites.\nStill, you can you `rack-node` for your personal use for searching smartly\nor when you just can't find the right result from Google.\n\nTo install it, run\n```sh\n$ npm install -g rack-node\n```\n\nThe primary use is list related APIs for a natural language query\n```sh\n$ rack --query=\"how to send email in Java\"\n```\nThe output will be something like\n```\nIOException: 0.8899051646791389\nSession: 0.8507142707028266\nMimeMessage: 0.7511904511713776\nFile: 0.7406194353819655\nObject: 0.4976190976572451\nContent: 0.44785718789152057\n...\n```\nIt lists the API and relevant score calculated by RACK.\nif you don't like the scores, use `-q` flag.\nIt will give you an output like the following.\n```\nMessage IOException Session MimeMessage File Object Content ArrayList ...\n```\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/rack-node.svg)](https://npmjs.org/package/rack-node)\n[![Downloads/week](https://img.shields.io/npm/dw/rack-node.svg)](https://npmjs.org/package/rack-node)\n[![License](https://img.shields.io/npm/l/rack-node.svg)](https://github.com/parvezmrobin/rack-node/blob/master/package.json)\n\n\u003c!-- toc --\u003e\n* [Usage](#usage)\n* [Copyright](#copyright)\n\u003c!-- tocstop --\u003e\n# Usage\n```sh\n$ npm install -g rack-node\n\n$ rack --query=\"how to send email in Java\"\nIOException: 0.8899051646791389\nSession: 0.8507142707028266\nMimeMessage: 0.7511904511713776\nFile: 0.7406194353819655\nObject: 0.4976190976572451\nContent: 0.44785718789152057\n...\n\n$ rack --query=\"how to send email in Java\" --score=kkc\nMessage: 1\nIOException: 0.9375\nSession: 0.8125\nFile: 0.7500000000000001\nMimeMessage: 0.6875\nObject: 0.625\nContent: 0.5625\n...\n\n$ rack (-v|--version|version)\nrack-node/1.0.3 win32-x64 node-v12.16.1\n$ rack -h\nwrite like human, search like computer\n\nUSAGE\n  $ rack QUERY\n\nOPTIONS\n  -h, --help               show CLI help\n  -q, --quiet              only list the APIs\n  -s, --score=kac|kkc|all  [default: all] the scoring to order suggestion\n  -v, --version            show CLI version\n\n```\n# Copyright\n\nThis module is primarily a JavaScript translation of the Rack Server Java implementation.\nCheck [here](https://github.com/masud-technope/RACK-Server) to see original work.\n\n```\nM. Masudur Rahman, Chanchal K. Roy and David Lo, \"RACK: Code Search in the IDE using Crowdsourced \nKnowledge\", In Proceeding of The 39th International Conference on Software Engineering (ICSE 2017), \npp. 51--54, Buenos Aires, Argentina, May, 2017\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparvezmrobin%2Frack-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparvezmrobin%2Frack-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparvezmrobin%2Frack-node/lists"}