{"id":51318082,"url":"https://github.com/thisago/bard","last_synced_at":"2026-07-01T09:31:54.499Z","repository":{"id":182036111,"uuid":"667845441","full_name":"thisago/bard","owner":"thisago","description":"Nim interface for Google Bard batchexecute API","archived":false,"fork":false,"pushed_at":"2023-09-18T21:58:28.000Z","size":29,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-02T04:17:49.344Z","etag":null,"topics":["ai","bard","batchexecute","google-bard","nim"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/thisago.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","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}},"created_at":"2023-07-18T12:36:32.000Z","updated_at":"2024-03-06T06:00:47.000Z","dependencies_parsed_at":"2023-07-18T13:52:22.297Z","dependency_job_id":null,"html_url":"https://github.com/thisago/bard","commit_stats":null,"previous_names":["thisago/bard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thisago/bard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fbard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fbard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fbard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fbard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisago","download_url":"https://codeload.github.com/thisago/bard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisago%2Fbard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35001648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"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":["ai","bard","batchexecute","google-bard","nim"],"created_at":"2026-07-01T09:31:51.859Z","updated_at":"2026-07-01T09:31:54.494Z","avatar_url":"https://github.com/thisago.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=center\u003e\n\u003cimg alt=\"Google Bard Logo\" src=\"https://camo.githubusercontent.com/431be2a7b9847dc9f4f08f1cc8a4b338874390b786512f9126bb9becc141c397/68747470733a2f2f7777772e677374617469632e636f6d2f6c616d64612f696d616765732f737061726b6c655f72657374696e675f76325f31666636663661373166326432393862316133312e676966\"\u003e\n\n# Bard\n\n#### Nim interface for Google Bard batchexecute API\n\n**[About](#about) - [Usage](#usage) - [FAQ](#faq)** - [License](#license)\n\n\u003c/div\u003e\n\n# About\n\nGoogle Bard AI batchexecute implementation in Nim\n\nTake a look at [clibard](https://github.com/thisago/clibard), to learn more\nabout the use of this lib.\n\nThis project was based in\n\n- [EvanZhouDev/bard-ai ↗](https://github.com/EvanZhouDev/bard-ai \"Go to Github\")\n- [acheong08/Bard ↗](https://github.com/acheong08/Bard \"Go to Github\")\n- [dsdanielpark/Bard-API ↗](https://github.com/dsdanielpark/Bard-API \"Go to Github\")\n\n## Usage\n\n\u003e **Note**\n\u003e *Google Bard allows up to 200 requests per hour.* - Source: Google Bard\n\n**[Individual prompts example](examples/single.nim)**\n\n```nim\nlet ai = waitFor newBardAi({\n  \"__Secure-1PSID\": \"Google session PSID\"\n  \"__Secure-1PSIDTS\": \"Google session PSIDTS\"\n})\n\necho waitFor(ai.prompt \"Tell me an Asian traditional history in ten words\").text\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eoutput\u003c/summary\u003e\n\n```text\nSure, here is an Asian traditional history in 10 words:\n\n* **Ancient civilizations, rich cultures, and diverse peoples.**\n\nThis 10-word summary captures the essence of Asian traditional history. It highlights the long and rich history of the continent, as well as the diversity of its peoples and cultures. From the ancient civilizations of China, India, and Japan to the more recent cultures of Southeast Asia and the Middle East, Asia is a continent with a vast and complex history.\n\nHere are some other 10-word summaries of Asian traditional history:\n\n* **The Silk Road, trade, and cultural exchange.**\n* **Buddhism, Hinduism, and Confucianism.**\n* **Imperial dynasties, wars, and revolutions.**\n* **Monumental architecture, art, and literature.**\n* **Myths, legends, and folktales.**\n\nThese are just a few examples of the many ways to summarize Asian traditional history in 10 words. The continent's rich and complex history can be described in many different ways, but these 10-word summaries capture the essence of what makes Asian history so fascinating.\n```\n\n\u003c/details\u003e\n\n---\n\n**[Chat example](examples/chat.nim)**\n\n```nim\nlet ai = waitFor newBardAi({\n  \"__Secure-1PSID\": \"Google session PSID\"\n  \"__Secure-1PSIDTS\": \"Google session PSIDTS\"\n})\n\nvar chat = ai.newBardAiChat\n\ndiscard waitFor chat.prompt \"my name is Luke\"\necho waitFor(chat.prompt \"what's my name?\").text\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eoutput\u003c/summary\u003e\n\n```text\nYour name is Luke. You told me that in your previous response.\n```\n\n\u003c/details\u003e\n\n## FAQ\n\n## What is \"Google Bard sent an unrecognizable response\" error?\n\n**It's generally rate limit.**\n\n\u003cdetails\u003e\n  \u003csummary\u003eView error example\u003c/summary\u003e\n\n  ```\n  Exception message: Google Bard sent an unrecognizable response: `)]}'\n\n  [[\"wrb.fr\",null,null,null,null,[8]],[\"di\",69],[\"af.httprm\",69,\"3783202389886124604\",21]]`\n   [BardUnrecognizedResp]\n  ```\n\u003c/details\u003e\n\n## License\n\nThis library is FOSS, licensed over MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisago%2Fbard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisago%2Fbard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisago%2Fbard/lists"}