{"id":16463348,"url":"https://github.com/geshan/summarizer-gemini","last_synced_at":"2025-05-07T03:10:12.262Z","repository":{"id":223370491,"uuid":"759665894","full_name":"geshan/summarizer-gemini","owner":"geshan","description":"An example repository to use Google Gemini API to summarize text","archived":false,"fork":false,"pushed_at":"2024-02-22T22:50:48.000Z","size":203,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T03:10:07.605Z","etag":null,"topics":["gcp","gde","gemini","gemini-api","gemini-pro","geminisprint","google-cloud","vertex-ai"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/geshan.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}},"created_at":"2024-02-19T05:15:28.000Z","updated_at":"2024-06-18T17:11:58.000Z","dependencies_parsed_at":"2024-02-22T23:46:35.547Z","dependency_job_id":null,"html_url":"https://github.com/geshan/summarizer-gemini","commit_stats":null,"previous_names":["geshan/summarizer-gemini"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geshan%2Fsummarizer-gemini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geshan%2Fsummarizer-gemini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geshan%2Fsummarizer-gemini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geshan%2Fsummarizer-gemini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geshan","download_url":"https://codeload.github.com/geshan/summarizer-gemini/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252804219,"owners_count":21806771,"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":["gcp","gde","gemini","gemini-api","gemini-pro","geminisprint","google-cloud","vertex-ai"],"created_at":"2024-10-11T11:14:14.379Z","updated_at":"2025-05-07T03:10:12.245Z","avatar_url":"https://github.com/geshan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# summarizer-gemini\n\nAn example repository to use Google Gemini API to summarize text. Google Cloud credits are provided for this project, thanks GCP :).\n\n## How to use\n\nThere are two ways to run this demo app, one as a CLI to quickly test and another one as an API.\n\n### Use it as a CLI script to test out\n\nTo use this sumamrizer (only avaiable in the command line for now), do the following:\n\n1. Clone the repository with `git clone git@github.com:geshan/summarizer-gemini.git`\n2. Go to the directory with `cd summarizer-gemini` the run `npm install`\n3. Log in to your GCP Console with `gcloud auth application-default login`\n4. Make sure your Vertext API is enabled in the project you want to use it. You can try this URL to play around: https://console.cloud.google.com/vertex-ai/generative/language/create/text\n5. After that run `GCP_PROJECT=\u003cyour-project-id\u003e GCP_LOCATION=\u003cgcp-location\u003e node --no-warnings cli.js \u003cyour-url\u003e` as an example `GCP_PROJECT=gemini-try-414805 GCP_LOCATION=us-central1 node --no-warnings cli.js https://jobs.lever.co/tyro/48a12893-c1a2-4a42-afa4-bc7fb6f572e5`\n6. It will print out a summary on the CLI if everything went fine, like below:\n\n![Gemini Summarizer working](./docs/gemini-summary.jpg \"Working summarizer\")\n\n### Use it as an API\n\nTo use the summarize as an API, you can do the following after doing steps 1-4 in the above section:\n\n1. Run `GCP_PROJECT=\u003cyour-project-id\u003e GCP_LOCATION=\u003cgcp-location\u003e npm start` where the project id and location is needed as the above example.\n2. On your browser of choice hit `http://localhost:3000/summary?url=https://myrepublica.nagariknetwork.com/news/kathmandu-ranks-fourth-among-world-s-most-polluted-cities/` you should get a summary as follows:\n\n![Gemini Summarizer API working](./docs/gemini-summary-api.jpg \"Working summarizer API\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeshan%2Fsummarizer-gemini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeshan%2Fsummarizer-gemini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeshan%2Fsummarizer-gemini/lists"}