{"id":23412572,"url":"https://github.com/jeantessier/langchain-javascript-example","last_synced_at":"2025-04-09T04:09:30.622Z","repository":{"id":268947401,"uuid":"903065399","full_name":"jeantessier/langchain-javascript-example","owner":"jeantessier","description":"An example of using LangChain in JavaScript with @langchain/core","archived":false,"fork":false,"pushed_at":"2025-03-03T19:36:03.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T20:33:16.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jeantessier.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}},"created_at":"2024-12-13T21:25:35.000Z","updated_at":"2025-03-03T19:36:06.000Z","dependencies_parsed_at":"2024-12-19T22:29:46.485Z","dependency_job_id":"0ae58f42-8aed-4cf7-9a6f-2cfb8dc38870","html_url":"https://github.com/jeantessier/langchain-javascript-example","commit_stats":null,"previous_names":["jeantessier/langchain-javascript-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeantessier%2Flangchain-javascript-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeantessier%2Flangchain-javascript-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeantessier%2Flangchain-javascript-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeantessier%2Flangchain-javascript-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeantessier","download_url":"https://codeload.github.com/jeantessier/langchain-javascript-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247974731,"owners_count":21026742,"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":[],"created_at":"2024-12-22T18:16:34.563Z","updated_at":"2025-04-09T04:09:30.616Z","avatar_url":"https://github.com/jeantessier.png","language":"JavaScript","readme":"# LangChain JavaScript Example\n\nA sample Node script that uses LangChain to talk to LLMs.\n\nYou’ll need an API key for each LLM.  So just follow the instructions linked\nbelow  to obtain your API keys.\n\n- [OpenAI ChatGPT](https://platform.openai.com/api-keys)\n- [Anthropic Claude](https://console.anthropic.com/settings/keys)\n- [Google Gemini](https://aistudio.google.com/app/apikey)\n- [DeepSeek R1](https://platform.deepseek.com/api_keys)\n\nSave the keys to the `.env` file as the corresponding `..._API_KEY` environment\nvariable.  You can use `.env.template` as a  guide to structure your `.env`\nfile.\n\nInstall packages, if you haven't already.\n\n```bash\npnpm install\n```\n\n## To Run\n\nThe sample logic is in the file `index.js`.\n\nTo run against OpenAI's ChatGPT:\n\n```bash\npnpm run main --model openai\n```\n\nTo run against Anthropic's Claude:\n\n```bash\npnpm run main --model anthropic\n```\n\nTo run against Google's Gemini:\n\n```bash\npnpm run main --model google\n```\n\nTo run against DeekSeek's R1:\n\n```bash\npnpm run main --model deepseek\n```\n\nIf you don't specify `--model`, it will default to `openai` and use ChatGPT.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeantessier%2Flangchain-javascript-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeantessier%2Flangchain-javascript-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeantessier%2Flangchain-javascript-example/lists"}