{"id":40055433,"url":"https://github.com/aygp-dr/gemini-repl-001","last_synced_at":"2026-01-19T06:34:26.205Z","repository":{"id":304599174,"uuid":"1019276439","full_name":"aygp-dr/gemini-repl-001","owner":"aygp-dr","description":"Simple REPL interface for Gemini API in ClojureScript with formal specifications, literate programming, and self-hosting capabilities","archived":false,"fork":false,"pushed_at":"2025-07-14T05:46:37.000Z","size":89,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-14T07:33:54.108Z","etag":null,"topics":["alloy","clojurescript","formal-methods","gemini-api","literate-programming","repl","shadow-cljs","tla-plus"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/aygp-dr.png","metadata":{"files":{"readme":"README.org","changelog":"change-requests/LOGGING-DESIGN.org","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}},"created_at":"2025-07-14T04:52:05.000Z","updated_at":"2025-07-14T05:46:40.000Z","dependencies_parsed_at":"2025-07-14T07:34:02.904Z","dependency_job_id":"a9b56a8d-439b-449a-900e-c5f0c73fea11","html_url":"https://github.com/aygp-dr/gemini-repl-001","commit_stats":null,"previous_names":["aygp-dr/gemini-repl-001"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/aygp-dr/gemini-repl-001","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aygp-dr%2Fgemini-repl-001","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aygp-dr%2Fgemini-repl-001/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aygp-dr%2Fgemini-repl-001/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aygp-dr%2Fgemini-repl-001/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aygp-dr","download_url":"https://codeload.github.com/aygp-dr/gemini-repl-001/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aygp-dr%2Fgemini-repl-001/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["alloy","clojurescript","formal-methods","gemini-api","literate-programming","repl","shadow-cljs","tla-plus"],"created_at":"2026-01-19T06:34:26.153Z","updated_at":"2026-01-19T06:34:26.200Z","avatar_url":"https://github.com/aygp-dr.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: Gemini REPL\n#+AUTHOR: jwalsh\n#+DATE: 2025-07-14\n\n* Gemini REPL\n\n[[https://github.com/aygp-dr/gemini-repl-001/blob/main/LICENSE][file:https://img.shields.io/badge/License-MIT-yellow.svg]]\n[[https://github.com/aygp-dr/gemini-repl-001/actions/workflows/ci.yml][file:https://github.com/aygp-dr/gemini-repl-001/actions/workflows/ci.yml/badge.svg]]\n[[https://clojurescript.org][file:https://img.shields.io/badge/ClojureScript-Shadow--CLJS-blue.svg]]\n[[https://github.com/tlaplus][file:https://img.shields.io/badge/Formal-TLA%2B-purple.svg]]\n[[https://alloytools.org][file:https://img.shields.io/badge/Formal-Alloy-green.svg]]\n\nA simple console application in ClojureScript that provides a REPL-like interface for interacting with the Gemini API, featuring formal specifications, literate programming, and self-hosting capabilities.\n\n** Features\n\n*** Current Features\n- Interactive REPL interface with slash commands\n- Conversation context maintained across interactions\n- Compact metadata display with token counts and costs\n- Real-time confidence indicators (🟢 🟡 🔴)\n- Structured JSON logging (FIFO and file)\n- Live reload development mode\n- Formal methods specifications (TLA+ and Alloy)\n- Comprehensive test infrastructure with expect\n- ASCII art banner on startup\n- Environment variable configuration\n\n*** Configuration\nConfigure behavior via environment variables in =.env=:\n- =GEMINI_API_KEY= - Your Gemini API key (required)\n- =GEMINI_LOG_ENABLED= - Enable logging (true/false)\n- =GEMINI_LOG_TYPE= - Log destination (fifo/file/both)\n- =GEMINI_LOG_FILE= - Log file path\n- =GEMINI_LOG_FIFO= - FIFO path for real-time monitoring\n\n** Getting Started\n\n1. Clone the repository:\n   #+BEGIN_SRC bash\n   git clone https://github.com/aygp-dr/gemini-repl-001.git\n   cd gemini-repl-001\n   #+END_SRC\n\n2. Set up environment:\n   #+BEGIN_SRC bash\n   cp .env.example .env\n   # Edit .env and add your GEMINI_API_KEY\n   #+END_SRC\n\n3. Install dependencies:\n   #+BEGIN_SRC bash\n   npm install\n   #+END_SRC\n\n4. Run the REPL:\n   #+BEGIN_SRC bash\n   make run\n   # or\n   npm run build \u0026\u0026 node target/main.js\n   #+END_SRC\n\n** Commands\n\n- =/help= - Show available commands\n- =/exit= - Exit the REPL\n- =/clear= - Clear the screen\n- =/stats= - Show session statistics\n\n** Development\n\n*** Building\n#+BEGIN_SRC bash\nmake build\n#+END_SRC\n\n*** Testing\n#+BEGIN_SRC bash\nmake test\n#+END_SRC\n\n*** Linting\n#+BEGIN_SRC bash\nmake lint\n#+END_SRC\n\n*** Development Mode\n#+BEGIN_SRC bash\nmake dev\n#+END_SRC\n\n** Project Structure\n\n- =src/= - ClojureScript source code\n- =specs/= - Formal specifications (TLA+ and Alloy)\n- =tests/= - Test files\n- =.claude/commands/= - AI assistant command definitions\n- =.github/= - GitHub workflows and templates\n\n** Contributing\n\nPlease see our contributing guidelines and use the GitHub issue templates for:\n- Bug reports\n- Feature requests\n- RFCs (Request for Comments)\n\n** UI Example\n\n#+BEGIN_EXAMPLE\n┏━╸┏━╸┏┳┓╻┏┓╻╻   ┏━┓┏━╸┏━┓╻  \n┃╺┓┣╸ ┃┃┃┃┃┗┫┃   ┣┳┛┣╸ ┣━┛┃  \n┗━┛┗━╸╹ ╹╹╹ ╹╹   ╹┗╸┗━╸╹  ┗━╸\nType /help for commands, /exit to quit.\n\n\u003e What is the capital of France?\n\nGemini: The capital of France is Paris.\n[🟢 245 tokens | $0.0001 | 0.8s]\n\n\u003e What is its population?\n\nGemini: The population of Paris is approximately 2.1 million people within \nthe city proper, and over 12 million in the greater Paris metropolitan area.\n[🟢 312 tokens | $0.0002 | 0.9s]\n\n\u003e /stats\n\nSession Statistics:\n  Total requests: 2\n  Total tokens: 557\n  Session time: 2 minutes\n\n\u003e /help\n\nGemini REPL Commands:\n  /help    - Show this help message\n  /exit    - Exit the REPL\n  /clear   - Clear the screen\n  /stats   - Show session statistics\n  /context - Show conversation context\n\n\u003e /exit\nGoodbye!\n#+END_EXAMPLE\n\n** License\n\nMIT License - see LICENSE file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faygp-dr%2Fgemini-repl-001","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faygp-dr%2Fgemini-repl-001","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faygp-dr%2Fgemini-repl-001/lists"}