{"id":31699318,"url":"https://github.com/keephacking/b-graph-agent","last_synced_at":"2025-10-08T19:29:04.621Z","repository":{"id":315848683,"uuid":"1060777760","full_name":"keephacking/b-graph-agent","owner":"keephacking","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-29T16:46:26.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-29T18:37:44.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/keephacking.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-20T15:17:24.000Z","updated_at":"2025-09-29T16:46:30.000Z","dependencies_parsed_at":"2025-09-21T17:00:24.631Z","dependency_job_id":null,"html_url":"https://github.com/keephacking/b-graph-agent","commit_stats":null,"previous_names":["keephacking/b-graph-agent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/keephacking/b-graph-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keephacking%2Fb-graph-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keephacking%2Fb-graph-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keephacking%2Fb-graph-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keephacking%2Fb-graph-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keephacking","download_url":"https://codeload.github.com/keephacking/b-graph-agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keephacking%2Fb-graph-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000711,"owners_count":26082805,"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-08T02:00:06.501Z","response_time":56,"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":[],"created_at":"2025-10-08T19:29:00.456Z","updated_at":"2025-10-08T19:29:04.615Z","avatar_url":"https://github.com/keephacking.png","language":"Python","readme":"# API Chart Generator\n\nA minimal Streamlit application for generating interactive charts using a custom API endpoint.\n\n## Quick Start\n\n### Windows Users\nSimply double-click `run_ui.bat` - it will automatically:\n- Check Python installation\n- Install missing dependencies\n- Validate configuration\n- Launch the Streamlit UI\n\n### Manual Setup\n\n1. Configure your API endpoint in `.env`:\n```env\nAPI_URL=https://your-api-endpoint.com\nTEMPERATURE=0.1\nTOP_K=0.1\nMAX_TOKENS=2048\nOUTPUT_DIR=outputs\nHTML_TEMPLATE_DIR=templates\nDEBUG=false\nVERBOSE=true\n```\n\n2. Install dependencies (if not using the launcher):\n```bash\npip install -r requirements.txt\n```\n\n3. Run the application:\n```bash\n# Using the Python launcher (recommended)\npython run_ui.py\n\n# Or directly with Streamlit\nstreamlit run streamlit_app.py\n```\n\n## API Payload Structure\n\nThe application sends POST requests with this payload structure:\n```json\n{\n  \"PROJECT\": \"Chart Generator\",\n  \"CONTEXT\": \"Generate interactive chart data based on user request\",\n  \"INJECTION\": {\n    \"INPUT\": \"enhanced_user_prompt\"\n  },\n  \"injection\": {\n    \"temperature\": \"0.1\",\n    \"topk\": \"0.1\", \n    \"token\": \"2048\"\n  }\n}\n```\n\n## Features\n\n- 🤖 **AI-Powered Chart Generation** - Uses your custom API endpoint\n- 📊 **Multiple Chart Types** - Bar, Line, Pie, and Scatter plots\n- 🎨 **Interactive Charts** - Built with Plotly for rich interactivity\n- 💾 **Export Options** - Save as HTML files, download, or open in browser\n- 🔧 **Easy Configuration** - Simple `.env` file setup\n- 🚀 **One-Click Launch** - Automated setup and launch with batch file\n\n## File Structure\n\n```\napi_chat_bot_py/\n├── run_ui.bat             # Windows launcher (double-click to start)\n├── run_ui.py              # Python launcher with dependency management\n├── streamlit_app.py       # Main Streamlit UI\n├── api_client.py          # API client for POST requests\n├── config.py              # Configuration management\n├── graph_generator.py     # Chart generation using Plotly\n├── html_generator.py      # HTML file generation\n├── requirements.txt       # Python dependencies\n├── .env                   # Configuration file\n├── templates/             # HTML templates\n│   └── chart_template.html\n└── outputs/               # Generated chart files\n```\n\n## Configuration Options\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `API_URL` | Your API endpoint URL | Required |\n| `TEMPERATURE` | AI temperature setting | 0.1 |\n| `TOP_K` | Top-K sampling parameter | 0.1 |\n| `MAX_TOKENS` | Maximum response tokens | 2048 |\n| `OUTPUT_DIR` | Chart output directory | outputs |\n| `HTML_TEMPLATE_DIR` | Template directory | templates |\n| `DEBUG` | Enable debug mode | false |\n| `VERBOSE` | Enable verbose logging | true |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeephacking%2Fb-graph-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeephacking%2Fb-graph-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeephacking%2Fb-graph-agent/lists"}