{"id":21649524,"url":"https://github.com/caylent/battleground","last_synced_at":"2025-05-07T20:34:59.635Z","repository":{"id":264050516,"uuid":"891093660","full_name":"caylent/battleground","owner":"caylent","description":"Battleground is a powerful tool designed to help developers and AI enthusiasts explore and compare Amazon Bedrock's models.","archived":false,"fork":false,"pushed_at":"2025-05-01T17:26:48.000Z","size":1171,"stargazers_count":14,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T20:32:59.147Z","etag":null,"topics":["ai","aws","bedrock","llm"],"latest_commit_sha":null,"homepage":"https://battleground.caylent.com","language":"TypeScript","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/caylent.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}},"created_at":"2024-11-19T18:01:54.000Z","updated_at":"2025-05-01T17:26:52.000Z","dependencies_parsed_at":"2024-11-21T18:32:11.584Z","dependency_job_id":"a994583b-d172-4344-af25-89c3c5d4edfd","html_url":"https://github.com/caylent/battleground","commit_stats":null,"previous_names":["caylent/battleground"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caylent%2Fbattleground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caylent%2Fbattleground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caylent%2Fbattleground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caylent%2Fbattleground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caylent","download_url":"https://codeload.github.com/caylent/battleground/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252953718,"owners_count":21830891,"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":["ai","aws","bedrock","llm"],"created_at":"2024-11-25T07:31:59.028Z","updated_at":"2025-05-07T20:34:59.590Z","avatar_url":"https://github.com/caylent.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Battleground\n\nBattleground is a powerful tool designed to help developers and AI enthusiasts explore and compare Amazon Bedrock's Large Language Models (LLMs). Key features include:\n\n- Model Comparison: Evaluate and compare the speed, performance, and cost of different Bedrock LLM models side by side.\n- Image Generation: Utilize Bedrock's image generation capabilities to create and compare visual outputs across models.\n- Prompt Creation and Editing: Craft, refine, and experiment with prompts to optimize model responses.\n- Interactive Interface: Easily interact with models, visualize results, and analyze performance metrics in real-time.\n\n**Note:** Bedrock Playground is currently under active development, please be aware that:\n\n- Some features may be incomplete or subject to change.\n- Bugs or unexpected behavior may be present.\n- Performance optimizations are ongoing.\n\nWe appreciate your patience and welcome any feedback or bug reports to help improve the project. Please use the issue tracker on our GitHub repository to report any problems or suggest enhancements.\n\n## Table of Contents\n\n1. [Requirements](#requirements)\n2. [Getting Started](#getting-started)\n3. [Project Structure](#project-structure)\n4. [Technologies Used](#technologies-used)\n5. [Contributing](#contributing)\n6. [License](#license)\n\n## Requirements\n\nBefore you begin, ensure you have the following:\n\n1. An AWS account: If you don't have one, [create a new AWS account](https://aws.amazon.com/resources/create-account/).\n\n2. AWS credentials:\n\n   - Create an IAM user with programmatic access.\n   - Attach the necessary permissions for Bedrock. At minimum, you'll need:\n     - `BedrockFullAccess`\n   - Generate and securely store the Access Key ID and Secret Access Key. These will be used in the `.env.local` file.\n\n3. AWS CLI installed and configured (optional but recommended).\n\n4. Bedrock model access:\n\n   - Log in to the AWS Console and navigate to the Bedrock service.\n   - Request access to the models you intend to use. This typically includes:\n     - AI21 Labs models\n     - Anthropic models\n     - Amazon Titan models\n     - Stability AI models\n     - Mistral models\n     - Meta Llama models\n   - Note that model availability may vary by region. Ensure you request access in the region(s) you plan to use.\n   - Access requests may take 1-2 business days to process.\n\n5. Verify your account limits and request increases if necessary.\n\nBy ensuring these requirements are met, you'll be fully prepared to use all features of the Bedrock Playground.\n\n## Getting Started\n\nFollow these steps to set up the Bedrock Playground on your local machine:\n\n1. Clone the repository:\n\n   ```\n   git clone https://github.com/your-username/bedrock-playground.git\n   cd bedrock-playground\n   ```\n\n2. Set up environment variables:\n   Create a `.env.local` file in the root directory and add the following variables:\n\n   ```\n   # Required variables\n   NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in\n   NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up\n   NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key\n   CLERK_SECRET_KEY=your_clerk_secret_key\n   APP_AWS_ACCESS_KEY_ID=your_aws_access_key_id\n   APP_AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key\n   AWS_REGION=your_aws_region\n\n   # Optional variables\n\n   # include if you plan to use OpenAI or NVIDIA NIM\n   OPENAI_API_KEY=your_openai_api_key\n   NVIDIA_NIM_API_KEY=your_nvidia_nim_api_key\n\n   # include if you want to use rate limiting with upstash and vercel KV\n   KV_URL=your_kv_store_url\n   KV_REST_API_URL=your_kv_rest_api_url\n   KV_REST_API_TOKEN=your_kv_rest_api_token\n   KV_REST_API_READ_ONLY_TOKEN=your_kv_read_only_token\n   ```\n\n   Replace the placeholder values with your actual credentials. The optional variables can be added if you plan to use OpenAI, NVIDIA NIM, or KV store features.\n\n3. Install dependencies:\n\n   ```\n   npm install\n   ```\n\n4. Run the development server:\n\n   ```\n   npm run dev\n   ```\n\n5. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Project Structure\n\nThe project follows a typical Next.js structure with some custom organization:\n\n- `src/`: Contains the main source code\n  - `app/`: Next.js app router and page components\n  - `components/`: Reusable React components\n  - `lib/`: Utility functions and model configurations\n  - `stores/`: Zustand stores for state management\n  - `types/`: TypeScript type definitions\n- `public/`: Static assets and images\n- `styles/`: Global CSS styles\n\n## Technologies Used\n\n- [Next.js](https://nextjs.org/): React framework for building the application\n- [React](https://reactjs.org/): JavaScript library for building user interfaces\n- [TypeScript](https://www.typescriptlang.org/): Typed superset of JavaScript\n- [Tailwind CSS](https://tailwindcss.com/): Utility-first CSS framework\n- [Shadcn](https://ui.shadcn.com/): UI components\n- [Clerk](https://clerk.com/): Authentication and user management\n- [Zustand](https://github.com/pmndrs/zustand): State management library\n- [React Query](https://tanstack.com/query/latest): Data fetching and caching library\n- [Recharts](https://recharts.org/): Charting library for React\n\n## Contributing\n\nContributions to the Bedrock Playground project are welcome. Please follow these steps to contribute:\n\n1. Fork the repository\n2. Create a new branch for your feature or bug fix\n3. Make your changes and commit them with descriptive commit messages\n4. Push your changes to your fork\n5. Submit a pull request to the main repository\n\nPlease ensure that your code follows the project's coding standards and includes appropriate tests.\n\n## License\n\nThis project is licensed under the MIT License:\n\nMIT License\n\nCopyright (c) 2024 Caylent\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaylent%2Fbattleground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaylent%2Fbattleground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaylent%2Fbattleground/lists"}