{"id":24499922,"url":"https://github.com/luillyfe/concurrency-primitives-helper","last_synced_at":"2025-10-10T11:33:55.958Z","repository":{"id":212829725,"uuid":"732406453","full_name":"luillyfe/concurrency-primitives-helper","owner":"luillyfe","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-27T07:03:25.000Z","size":127,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T11:33:38.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://prediction-api-indol.vercel.app","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/luillyfe.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}},"created_at":"2023-12-16T15:15:28.000Z","updated_at":"2023-12-27T06:13:07.000Z","dependencies_parsed_at":"2023-12-27T01:22:18.791Z","dependency_job_id":"a1eb780c-4cb8-4406-8277-a73f6a9f07c6","html_url":"https://github.com/luillyfe/concurrency-primitives-helper","commit_stats":null,"previous_names":["luillyfe/concurrency-primitives-helper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luillyfe/concurrency-primitives-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fconcurrency-primitives-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fconcurrency-primitives-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fconcurrency-primitives-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fconcurrency-primitives-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luillyfe","download_url":"https://codeload.github.com/luillyfe/concurrency-primitives-helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luillyfe%2Fconcurrency-primitives-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003712,"owners_count":26083610,"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-10T02:00:06.843Z","response_time":62,"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-01-21T22:16:23.709Z","updated_at":"2025-10-10T11:33:55.914Z","avatar_url":"https://github.com/luillyfe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unleashing Gemini Pro's Capabilities with a Developer-Friendly API\n\n**Harness the power of Gemini Pro for text generation, semantic todo creation, and more—all through a convenient API built with NestJS.**\n\n## Overview\n\nThis project provides a developer-friendly API that unlocks the capabilities of Gemini Pro, enabling you to:\n\n- **Generate text** in response to natural language queries.\n- **Create semantic todos** based on a given topic, powered by Gemini Pro's understanding of language nuances.\n\nThe project was created from scratch using Duet AI, no prior knowledge of NestJS was required. And Duet AI demonstrated to be a powerful ally for code generation.\n\n## Features\n\n- **Natural language queries** for text generation.\n- **Semantic todo generation** for enhanced productivity and organization.\n- **NestJS framework** for a structured and scalable API.\n- **Clear documentation** and examples for easy integration.\n\n## Target Audience\n\nDevelopers who want to:\n\n- Integrate Gemini Pro's capabilities into their applications.\n- Build creative text generation features.\n- Enhance productivity with AI-powered todo generation.\n\n## Project Structure\n\n- **main.ts:** Entry point for bootstrapping the application.\n- **app.module.ts:** Root module, importing prediction and configuration modules.\n- **config.module.ts:** Defines environment variables for model name and API key.\n- **prediction.module.ts:** Contains endpoints for interacting with Gemini Pro:\n  - `/predict`: For text generation.\n  - `/predict/todos/`: For semantic todo generation.\n  - `/predict/gcp-exam/`: For question generation for the GCP Professional Cloud Architect exam.\n\n## Installation\n\n```bash\n$ npm install\n```\n\n## Running the app\n\n```bash\n# development\n$ npm run start\n\n# watch mode\n$ npm run start:dev\n\n# production mode\n$ npm run start:prod\n```\n\n## Test\n\n```bash\n# unit tests\n$ npm run test\n\n# e2e tests\n$ npm run test:e2e\n\n# test coverage\n$ npm run test:cov\n```\n\n## Using the API\n\n- **Text generation:**\n\n  - Send a POST request to `/predict` with your query in the request body.\n    This will be free form based input. So feel free to ask anything you want.\n\n- **Semantic todo generation:**\n\n  - Send a POST request to `/predict/todos/` with the topic in the request body.\n    Semantic todo generation is based on the topic you provide. For instance, if you want to generate todos about gaming, then you can send `gaming` as the topic. The endpoint is expecting from you to set the topic in the request's body.\n\n        {\n            \"topic\": \"gaming\"\n        }\n\n- **GCP Professional Cloud Architect exam question generation:**\n\n  - Send a POST request to `/predict/gcp-exam/` with the number of questions you want to generate in the request body.\n    The endpoint is expecting from you to set the number of questions in the request's body (optional). If you don't set the number of questions, the endpoint will generate 1 question by default.\n\n        {\n            \"numQuestions\": 5\n        }\n\n## Explore Further\n\n- **Documentation:** [Link to your project's documentation]\n- **Examples:** [Link to example code snippets or usage scenarios]\n\n## Contributing\n\nWe welcome contributions! Please see the Contributing Guidelines: [Link to contributing guidelines] for more information.\n\n**Let's unleash the potential of Gemini Pro together!**\n\n## License\n\nThis project is [MIT licensed](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluillyfe%2Fconcurrency-primitives-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluillyfe%2Fconcurrency-primitives-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluillyfe%2Fconcurrency-primitives-helper/lists"}