{"id":50868150,"url":"https://github.com/vixcpp/reply","last_synced_at":"2026-06-15T03:07:48.288Z","repository":{"id":359082189,"uuid":"1242742191","full_name":"vixcpp/reply","owner":"vixcpp","description":"Vix.cpp CLI reply command.","archived":false,"fork":false,"pushed_at":"2026-05-20T09:28:43.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-20T13:10:48.408Z","etag":null,"topics":["cpp","repl","vix","vixcpp"],"latest_commit_sha":null,"homepage":"https://docs.vixcpp.com/cli/repl","language":"C++","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/vixcpp.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-18T17:58:08.000Z","updated_at":"2026-05-20T09:28:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vixcpp/reply","commit_stats":null,"previous_names":["vixcpp/reply"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vixcpp/reply","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixcpp%2Freply","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixcpp%2Freply/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixcpp%2Freply/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixcpp%2Freply/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vixcpp","download_url":"https://codeload.github.com/vixcpp/reply/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vixcpp%2Freply/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34345685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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":["cpp","repl","vix","vixcpp"],"created_at":"2026-06-15T03:07:42.876Z","updated_at":"2026-06-15T03:07:48.283Z","avatar_url":"https://github.com/vixcpp.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vix Reply\n\nInteractive REPL engine for Vix.\n\nVix Reply powers the interactive `vix` and `vix repl` experience. It provides a fast shell for expressions, variables, JSON values, runtime helpers, and real C++ snippets powered by the Vix run pipeline.\n\n## Usage\n\nStart the REPL:\n\n```bash\nvix\n```\n\nOr start it explicitly:\n\n```bash\nvix repl\n```\n\nPass arguments to the REPL:\n\n```bash\nvix repl -- --port 8080 --mode dev\n```\n\nInside the REPL:\n\n```text\nVix.args()\n```\n\n## Example\n\n```text\n\u003e\u003e\u003e println(\"Hello from Vix Reply\")\nHello from Vix Reply\n\n\u003e\u003e\u003e 1 + 2 * 3\n7\n\n\u003e\u003e\u003e name = \"Vix\"\nname = \"Vix\"\n\n\u003e\u003e\u003e type(name)\nstring\n```\n\n## C++ snippets\n\nVix Reply can run real C++ snippets through `vix run`.\n\n```text\n\u003e\u003e\u003e :cpp\nC++ mode. Type :run to execute or :cancel to exit.\ncpp\u003e #include \u003cvix/print.hpp\u003e\n...   int main() {\n...     vix::print(\"Hello from C++\");\n...   }\nHello from C++\n```\n\nYou can also start a small Vix HTTP server from the REPL:\n\n```text\n\u003e\u003e\u003e :cpp\ncpp\u003e #include \u003cvix.hpp\u003e\n...   using namespace vix;\n...\n...   int main() {\n...     App app;\n...\n...     app.get(\"/\", [](Request\u0026, Response\u0026 res) {\n...       res.send(\"Hello, world\");\n...     });\n...\n...     app.run(8080);\n...   }\n```\n\nThen test it:\n\n```bash\ncurl http://localhost:8080\n```\n\n## Features\n\n- Interactive prompt\n- Persistent history\n- Line editing\n- History navigation\n- Basic math evaluation\n- Variables and JSON values\n- Function-style calls\n- Runtime helpers through `Vix`\n- Real C++ snippets powered by `vix run`\n\n## Built-in commands\n\n```text\nhelp\nversion\npwd\ncd \u003cdir\u003e\nclear\nhistory\nhistory clear\nexit\n```\n\n## C++ mode commands\n\n```text\n:cpp       Enter C++ snippet mode\n:run       Run the current C++ snippet\n:cancel    Cancel C++ snippet mode\n```\n\n## Important note\n\nVix Reply is not a full C++ interpreter.\n\nC++ snippet mode writes the snippet to a temporary `.cpp` file and runs it through `vix run`. The code is validated by the real C++ compiler and uses the normal Vix build, diagnostics, and runtime behavior.\n\n## Documentation\n\nFull documentation is available here:\n\n```text\nhttps://docs.vixcpp.com/cli/repl\n```\n\n## Public entry point\n\n```cpp\n#include \u003cvix/reply/core/ReplFlow.hpp\u003e\n\nint repl_flow_run(const std::vector\u003cstd::string\u003e\u0026 replArgs);\n```\n\nThe Vix CLI uses this entry point to implement:\n\n```bash\nvix repl\n```\n\n## Roadmap\n\n- [x] Interactive REPL prompt\n- [x] Persistent history\n- [x] Line editing\n- [x] History navigation\n- [x] Math evaluation\n- [x] Variables and JSON values\n- [x] Runtime helpers through `Vix`\n- [x] C++ snippet mode powered by `vix run`\n- [x] C++ snippets with normal Vix diagnostics\n- [x] Clean Ctrl+C behavior for long-running snippets\n- [ ] Better autocomplete for variables and helpers\n- [ ] Better multiline editing\n- [ ] Snippet cache reuse\n- [ ] Better C++ snippet session management\n- [ ] More structured REPL diagnostics\n- [ ] More runtime helpers\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvixcpp%2Freply","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvixcpp%2Freply","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvixcpp%2Freply/lists"}