{"id":31067257,"url":"https://github.com/rizzbrew/bardie-backend","last_synced_at":"2026-04-18T12:01:39.590Z","repository":{"id":313971255,"uuid":"1053382781","full_name":"rizzbrew/bardie-backend","owner":"rizzbrew","description":"Function API Scrape Google Gemini","archived":false,"fork":false,"pushed_at":"2025-09-10T01:31:15.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-08T23:34:28.471Z","etag":null,"topics":["expressjs","google-ai","google-gemini-api","nodejs","restapi"],"latest_commit_sha":null,"homepage":"https://rizzlogy-bardie-api.hf.space","language":"JavaScript","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/rizzbrew.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-09T11:24:07.000Z","updated_at":"2025-09-10T01:31:18.000Z","dependencies_parsed_at":"2025-09-09T22:24:23.051Z","dependency_job_id":"2a2cf540-2e30-4c74-bc19-15b5d247028b","html_url":"https://github.com/rizzbrew/bardie-backend","commit_stats":null,"previous_names":["rizzbrew/bardie-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rizzbrew/bardie-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizzbrew%2Fbardie-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizzbrew%2Fbardie-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizzbrew%2Fbardie-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizzbrew%2Fbardie-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rizzbrew","download_url":"https://codeload.github.com/rizzbrew/bardie-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rizzbrew%2Fbardie-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31967993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["expressjs","google-ai","google-gemini-api","nodejs","restapi"],"created_at":"2025-09-15T19:55:22.300Z","updated_at":"2026-04-18T12:01:39.289Z","avatar_url":"https://github.com/rizzbrew.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: Bardie Api\nemoji: 🔥\ncolorFrom: red\ncolorTo: green\nsdk: docker\npinned: false\nlicense: mit\nshort_description: Function API Scrape Google Gemini\n---\n\n# Bardie Backend\n\nBardie Backend is a Node.js based API wrapper that scrapes **Google Gemini** to provide a simple backend service for conversational AI and multimodal queries.  \nIt supports text prompts, optional image inputs (via URL or base64), and preview image responses.\n\n## Features\n- Ask Google Gemini via API.\n- Supports text-only and text+image inputs.\n- Image upload handling with Google content-push APIs.\n- Preview mode for direct image response.\n- Swagger UI documentation included.\n- Docker support for easy deployment.\n- Built-in request logging with colors and response size display.\n\n## Project Structure\n```\n bard.js          # Core Bard class handling Gemini requests\n config.json      # Configuration file (cookies, schemes, image limit)\n index.js         # Express server with API endpoints\n swagger.json     # API schema for Swagger UI\n package.json     # Dependencies and project metadata\n Dockerfile.txt   # Docker build file\n README.md        # Project info\n```\n\n## Installation\nClone the repository and install dependencies:\n```bash\ngit clone https://github.com/rizzbrew/bardie-backend.git\ncd bardie-backend\nnpm install\n```\n\n## Configuration\nEdit **config.json**:\n```json\n{\n  \"bl\": \"boq_assistant-bard-web-server_20250901.13_p1\",\n  \"cookie\": \"your_cookie_here\",\n  \"schemes\": \"https\",\n  \"imageUploadLimit\": 10\n}\n```\n\n- **cookie**: Required for authentication (`__Secure-1PSID` token).\n- **schemes**: Use `https` for deployment.\n- **imageUploadLimit**: Max number of images allowed per request, default 10 max image in gemini server.\n\n## Running the Server\nStart locally:\n```bash\nnpm start\n```\n\nServer runs at:  \n**http://localhost:7860**\n\n## Docker Deployment\nBuild and run with Docker:\n```bash\ndocker build -t bardie-backend -f Dockerfile.txt .\ndocker run -p 7860:7860 bardie-backend\n```\n\n## API Usage\n### Endpoint: `/backend/conversation`\n**Method:** `POST`\n\n**Request Body:**\n```json\n{\n  \"ask\": \"Hello Bardie!\",\n  \"image\": \"https://example.com/sample.png\",\n  \"preview\": false\n}\n```\n\n**Response:**\n```json\n{\n  \"content\": \"Hello! How can I help you today?\",\n  \"status\": 200,\n  \"creator\": \"RizzyFuzz\"\n}\n```\n\n- `ask`: Text question (required).\n- `image`: Optional image URL or base64 string.\n- `preview`: If true and response is an image, returns raw image instead of JSON.\n\n## Swagger Documentation\nThe API includes Swagger UI for interactive testing.  \nAccess it via `http://localhost:7860/`.\n\n## Author\n- **RizzyFuzz**  \n  Website: [https://www.rizzy.eu.org/](https://www.rizzy.eu.org/)  \n  Email: support@rizzy.eu.org\n\n## License\nThis project is licensed under the **MIT License**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frizzbrew%2Fbardie-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frizzbrew%2Fbardie-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frizzbrew%2Fbardie-backend/lists"}