{"id":19938332,"url":"https://github.com/2kabhishek/codepilot-out-in-tdd","last_synced_at":"2026-04-17T05:02:07.520Z","repository":{"id":190885652,"uuid":"617528077","full_name":"2KAbhishek/codepilot-out-in-tdd","owner":"2KAbhishek","description":"OpenAI autocompletion with Outside In TDD 🤖✨","archived":false,"fork":false,"pushed_at":"2026-03-26T06:10:32.000Z","size":100,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-27T01:52:18.764Z","etag":null,"topics":["learning","mocking","openai","openai-api","outside-in-tdd","ruby","ruby-on-rails","tdd"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/2KAbhishek.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},"funding":{"github":"2kabhishek","buy_me_a_coffee":"2kabhishek"}},"created_at":"2023-03-22T15:19:02.000Z","updated_at":"2026-03-26T06:10:30.000Z","dependencies_parsed_at":"2023-08-26T22:41:14.444Z","dependency_job_id":"bf0d5270-806c-4329-981b-22229ba20fb1","html_url":"https://github.com/2KAbhishek/codepilot-out-in-tdd","commit_stats":null,"previous_names":["2kabhishek/codepilot-out-in-tdd"],"tags_count":0,"template":false,"template_full_name":"2KAbhishek/bare-minimum","purl":"pkg:github/2KAbhishek/codepilot-out-in-tdd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Fcodepilot-out-in-tdd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Fcodepilot-out-in-tdd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Fcodepilot-out-in-tdd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Fcodepilot-out-in-tdd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2KAbhishek","download_url":"https://codeload.github.com/2KAbhishek/codepilot-out-in-tdd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2KAbhishek%2Fcodepilot-out-in-tdd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["learning","mocking","openai","openai-api","outside-in-tdd","ruby","ruby-on-rails","tdd"],"created_at":"2024-11-12T23:39:15.238Z","updated_at":"2026-04-17T05:02:07.500Z","avatar_url":"https://github.com/2KAbhishek.png","language":"Ruby","funding_links":["https://github.com/sponsors/2kabhishek","https://buymeacoffee.com/2kabhishek"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align = \"center\"\u003e\n\n\u003ch1\u003e\u003ca href=\"https://github.com/2kabhishek/codepilot-out-in-tdd\"\u003eCodePilot Out In TDD\u003c/a\u003e\u003c/h1\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/codepilot-out-in-tdd/blob/main/LICENSE\"\u003e\n\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/2kabhishek/codepilot-out-in-tdd?style=flat\u0026color=eee\u0026label=\"\u003e \u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/codepilot-out-in-tdd/graphs/contributors\"\u003e\n\u003cimg alt=\"People\" src=\"https://img.shields.io/github/contributors/2kabhishek/codepilot-out-in-tdd?style=flat\u0026color=ffaaf2\u0026label=People\"\u003e \u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/codepilot-out-in-tdd/stargazers\"\u003e\n\u003cimg alt=\"Stars\" src=\"https://img.shields.io/github/stars/2kabhishek/codepilot-out-in-tdd?style=flat\u0026color=98c379\u0026label=Stars\"\u003e\u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/codepilot-out-in-tdd/network/members\"\u003e\n\u003cimg alt=\"Forks\" src=\"https://img.shields.io/github/forks/2kabhishek/codepilot-out-in-tdd?style=flat\u0026color=66a8e0\u0026label=Forks\"\u003e \u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/codepilot-out-in-tdd/watchers\"\u003e\n\u003cimg alt=\"Watches\" src=\"https://img.shields.io/github/watchers/2kabhishek/codepilot-out-in-tdd?style=flat\u0026color=f5d08b\u0026label=Watches\"\u003e \u003c/a\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/codepilot-out-in-tdd/pulse\"\u003e\n\u003cimg alt=\"Last Updated\" src=\"https://img.shields.io/github/last-commit/2kabhishek/codepilot-out-in-tdd?style=flat\u0026color=e06c75\u0026label=\"\u003e \u003c/a\u003e\n\n\u003ch3\u003eOpenAI autocompletion with Outside In TDD 🤖✨\u003c/h3\u003e\n\n\u003c/div\u003e\n\nFetch completions from OpenAI using rails, implemented using Outside In TDD\n\n## ✨ Features\n\n-   Fetches completions from OpenAI API\n-   Implemented following Outside In TDD and Layered Architecture\n-   Contains CI pipeline with lint and test\n\n## Setup\n\n### ⚡ Requirements\n\n-   ruby 3.0.4\n\n### 🚀 Installation\n\n```bash\ngit clone https://github.com/2kabhishek/codepilot-out-in-tdd\ncd codepilot-out-in-tdd\nbundle install\nrspec # run tests\nrails s # run server\n```\n\n### 💻 Usage\n\nYou can go to the server url and navigate to `/completions/ask` path with query as a query param\n\nFor example: `http://localhost:3000/completions/ask?query=how to write hello world in ruby`\n\n## Behind The Code\n\n### 🌈 Inspiration\n\n-   Learning Outside In TDD with https://github.com/sapanparikh18\n\n### 💡 Challenges/Learnings\n\n-   The main challenges were mocking and creating the architecture in rails\n-   Lack of documentation around the subject for rails\n\n### 🧰 Tooling\n\n-   [Dotfiles](https://github.com/2kabhishek/Dotfiles) — Dev Environment\n-   [nvim2k](https://github.com/2kabhishek/nvim2k) — Personalized Editor\n-   [awesome2k](https://github.com/2kabhishek/awesome2k) — Tiling Window Manager\n\n\u003chr\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003cstrong\u003e⭐ hit the star button if you found this useful ⭐\u003c/strong\u003e\u003cbr\u003e\n\n\u003ca href=\"https://github.com/2KAbhishek/codepilot-out-in-tdd\"\u003eSource\u003c/a\u003e\n| \u003ca href=\"https://2kabhishek.github.io/blog\" target=\"_blank\"\u003eBlog \u003c/a\u003e\n| \u003ca href=\"https://twitter.com/2kabhishek\" target=\"_blank\"\u003eTwitter \u003c/a\u003e\n| \u003ca href=\"https://linkedin.com/in/2kabhishek\" target=\"_blank\"\u003eLinkedIn \u003c/a\u003e\n| \u003ca href=\"https://2kabhishek.github.io/links\" target=\"_blank\"\u003eMore Links \u003c/a\u003e\n| \u003ca href=\"https://2kabhishek.github.io/projects\" target=\"_blank\"\u003eOther Projects \u003c/a\u003e\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2kabhishek%2Fcodepilot-out-in-tdd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2kabhishek%2Fcodepilot-out-in-tdd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2kabhishek%2Fcodepilot-out-in-tdd/lists"}