{"id":25404227,"url":"https://github.com/sing1ee/llm-playground","last_synced_at":"2025-04-12T19:08:10.897Z","repository":{"id":275298129,"uuid":"849344962","full_name":"sing1ee/llm-playground","owner":"sing1ee","description":"llm-playground","archived":false,"fork":false,"pushed_at":"2025-02-01T13:37:56.000Z","size":561,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T19:08:00.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/sing1ee.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":"2024-08-29T12:37:36.000Z","updated_at":"2025-02-01T13:38:00.000Z","dependencies_parsed_at":"2025-02-01T14:43:38.959Z","dependency_job_id":null,"html_url":"https://github.com/sing1ee/llm-playground","commit_stats":null,"previous_names":["sing1ee/llm-playground"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sing1ee%2Fllm-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sing1ee%2Fllm-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sing1ee%2Fllm-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sing1ee%2Fllm-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sing1ee","download_url":"https://codeload.github.com/sing1ee/llm-playground/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618276,"owners_count":21134200,"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":[],"created_at":"2025-02-16T03:48:30.335Z","updated_at":"2025-04-12T19:08:10.876Z","avatar_url":"https://github.com/sing1ee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Language Playground\n\nAI Language Playground is an interactive web application that allows users to explore the capabilities of AI-generated text. Built with Next.js and React, this playground provides a user-friendly interface for interacting with language models, managing API settings, and tracking token usage.\n\n## Features\n\n- Interactive text generation using AI models\n- Customizable API settings (API Key, Base URL, Model selection)\n- System prompt support\n- Token usage tracking and cost estimation\n- History of generated content\n- Markdown rendering with syntax highlighting\n- Code copying and HTML/SVG rendering\n- Responsive design with full-screen mode\n\n## Technologies Used\n\n- Next.js 14\n- React 18\n- TypeScript\n- Tailwind CSS\n- OpenAI API (customizable to other providers)\n- React Markdown\n- React Toastify\n- Radix UI components\n\n## Setup and Installation\n\n1. Clone the repository:\n\n   ```\n   git clone https://github.com/your-username/ai-language-playground.git\n   cd ai-language-playground\n   ```\n\n2. Install dependencies:\n\n   ```\n   pnpm install\n   ```\n\n3. Set up environment variables:\n   Create a `.env.local` file in the root directory and add your API key:\n\n   ```\n   OPENAI_API_KEY=your_api_key_here\n   ```\n\n4. Run the development server:\n\n   ```\n   pnpm dev\n   ```\n\n5. Open [http://localhost:3000](http://localhost:3000) in your browser to see the application.\n\n## Usage\n\n1. Enter your prompt in the text area.\n2. (Optional) Adjust API settings by clicking the gear icon.\n3. Click \"Generate\" to create AI-generated text based on your prompt.\n4. View the generated text, token usage, and estimated cost.\n5. Explore the history of your generated content.\n6. Use the full-screen mode for a more immersive experience.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsing1ee%2Fllm-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsing1ee%2Fllm-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsing1ee%2Fllm-playground/lists"}