{"id":25751978,"url":"https://github.com/brettdavies/lmgroktfy","last_synced_at":"2025-10-07T21:03:54.568Z","repository":{"id":279302290,"uuid":"935864699","full_name":"brettdavies/lmgroktfy","owner":"brettdavies","description":"Let Me Grok That For You is a modern, accessible web interface for Grok AI that supports multiple languages, offers keyboard navigation, screen reader compatibility, and responsive design for all devices.","archived":false,"fork":false,"pushed_at":"2025-04-16T01:39:16.000Z","size":302,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-16T02:35:59.303Z","etag":null,"topics":["answer-bot","aria","gauntletai","grok","grokking","keyboard-shortcuts","screen-reader","xai"],"latest_commit_sha":null,"homepage":"https://lmgroktfy.com/","language":"JavaScript","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/brettdavies.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-20T06:26:13.000Z","updated_at":"2025-04-16T01:39:20.000Z","dependencies_parsed_at":"2025-02-24T22:22:28.071Z","dependency_job_id":"04aa5536-4628-4c81-9917-2959a3e5ed91","html_url":"https://github.com/brettdavies/lmgroktfy","commit_stats":null,"previous_names":["brettdavies/lmgroktfy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brettdavies/lmgroktfy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettdavies%2Flmgroktfy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettdavies%2Flmgroktfy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettdavies%2Flmgroktfy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettdavies%2Flmgroktfy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brettdavies","download_url":"https://codeload.github.com/brettdavies/lmgroktfy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettdavies%2Flmgroktfy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278846413,"owners_count":26056105,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"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":["answer-bot","aria","gauntletai","grok","grokking","keyboard-shortcuts","screen-reader","xai"],"created_at":"2025-02-26T14:19:04.932Z","updated_at":"2025-10-07T21:03:54.544Z","avatar_url":"https://github.com/brettdavies.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LMGROKTFY (Let Me GROK That For You)\n\nA simple, accessible web application that allows users to submit questions to the Grok AI and share the answers.\n\n## Features\n\n- Submit questions to Grok AI and view responses\n- Copy answers or question-answer pairs for sharing\n- Share links directly to specific questions and answers\n- Toggle between light and dark themes\n- Fully accessible interface with keyboard navigation and screen reader support\n\n## Accessibility Features\n\n### ARIA Live Regions\n\n- Dynamic content updates are announced to screen readers\n- Loading states use `aria-live=\"polite\"` to inform users of progress\n- Toast notifications use `aria-live=\"assertive\"` for important updates\n\n### Keyboard Navigation\n\n- Full keyboard navigation throughout the application\n- Focus management for modal dialogs\n- Focus trapping within modals for improved usability\n- Automatic focus on interactive elements in the response area\n\n### Keyboard Shortcuts\n\n#### General\n\n- `/` or `?` - Focus the search input\n- `h` - Open the help modal\n- `t` - Toggle between light and dark themes\n- `Esc` - Close any open modal\n\n#### When Answer is Displayed\n\n- `c` - Copy the answer\n- `q` - Copy the question and answer\n- `s` - Copy the share link\n- `g` - Continue on Grok\n\n## Development\n\n### Setup\n\n1. Clone the repository\n2. Install dependencies: `npm install`\n3. Configure the API endpoint (see below)\n4. Start the development server: `npm run serve`\n\n### API Configuration\n\nFor development with the team's API endpoint:\n\n1. Create a `config.local.json` file in the project root (this file is gitignored)\n2. Add the following content, replacing the example URL with the actual development API endpoint:\n\n   ```json\n   {\n     \"apiBaseUrl\": \"https://development-api-domain.com\",\n     \"debugMode\": true\n   }\n   ```\n\n3. The application will automatically use this API endpoint when running locally\n4. In production, the application uses relative URLs by default (`/api/grok`)\n\n\u003e **Note**: The development API endpoint is confidential and should not be committed to the repository or shared publicly. Contact a team member to get the correct endpoint URL.\n\n#### CORS Requirements\n\nWhen working with the development API:\n\n- **HTTPS is required**: The API endpoint must use HTTPS to avoid mixed-content issues\n- **CORS support**: The API server must allow cross-origin requests from your local development server\n- **Troubleshooting**: If you encounter CORS errors, ensure the API server includes the following headers in its responses:\n  ```\n  Access-Control-Allow-Origin: http://localhost:8080\n  Access-Control-Allow-Methods: POST, OPTIONS\n  Access-Control-Allow-Headers: Content-Type\n  ```\n\n### Testing\n\n- Run unit tests: `npm test`\n- Run end-to-end tests: `npm run test:e2e`\n\n## Deployment\n\nThis project is deployed using Cloudflare Pages, which automatically minifies all assets for production.\n\n### Deployment Process\n\n1. Development is done on the `development` branch with unminified code for easier debugging\n2. When code is pushed to either the `development` or `main` branch, Cloudflare Pages:\n   - Runs the build script located at `cloudflare/build.sh`\n   - Minifies all JavaScript, CSS, and HTML files\n   - Deploys the minified code to Cloudflare's global CDN\n\n### Cloudflare Pages Configuration\n\nThe Cloudflare Pages configuration is documented in `cloudflare/cloudflare-pages.json` and includes:\n- Build command: `bash cloudflare/build.sh`\n- Output directory: `dist`\n- Environment variables for both production and preview deployments\n\nFor more details on the deployment configuration, see the [Cloudflare Pages documentation](cloudflare/README.md).\n\n### Local Testing of Production Build\n\nTo test the minified production build locally:\n\n```bash\n# Run the build script\nbash cloudflare/build.sh\n\n# Serve the dist directory to preview the minified site\nnpx http-server dist\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrettdavies%2Flmgroktfy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrettdavies%2Flmgroktfy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrettdavies%2Flmgroktfy/lists"}