{"id":27236632,"url":"https://github.com/langtail/examples","last_synced_at":"2026-01-22T01:34:24.810Z","repository":{"id":243840006,"uuid":"813602142","full_name":"langtail/examples","owner":"langtail","description":"A collection of example of how to use Langtail as proxy or SDK for your AI applications","archived":false,"fork":false,"pushed_at":"2024-06-21T11:25:07.000Z","size":88,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-10T18:06:06.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/langtail.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":"2024-06-11T11:43:02.000Z","updated_at":"2024-06-21T11:25:11.000Z","dependencies_parsed_at":"2024-06-22T04:11:22.137Z","dependency_job_id":null,"html_url":"https://github.com/langtail/examples","commit_stats":null,"previous_names":["langtail/examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/langtail/examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langtail%2Fexamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langtail%2Fexamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langtail%2Fexamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langtail%2Fexamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/langtail","download_url":"https://codeload.github.com/langtail/examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langtail%2Fexamples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28649472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"ssl_error","status_checked_at":"2026-01-22T01:17:35.564Z","response_time":86,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-04-10T17:45:35.314Z","updated_at":"2026-01-22T01:34:24.792Z","avatar_url":"https://github.com/langtail.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Langtail AI Usage Examples\n\nIn this repository, we provide a variety of examples of typical AI applications.\n\nSo far, you can check out these example projects:\n\n## [Weather Chat App with Langtail API](./examples/langtail-weather-chat)\n\nThis is the vanilla method of handling AI responses in a TypeScript and React application. The Next.js backend sends requests to the Langtail API and returns data streams, which are handled manually on the frontend.\n\nThis approach is useful for those looking for a bare-bones implementation of an AI chat app.\n\n## [Weather Chat with Vercel AI Package and Langtail API](./examples/langtail-weather-chat-vercel-ai/)\n\nIn this example, we use Vercel AI packages to streamline most of the manual work. Vercel provides wrappers for immediate handling of tool calls on the frontend or backend. On the frontend, you can use React hooks that essentially handle the entire chat for you, including event parsing and amending the AI data.\n\nThanks to the Langtail SDK, we generate static types for your Langtail prompt, so you don't need to worry about the structure of the arguments passed to your tool handlers.\n\n## [Weather Chat with Langtail's useChatStream](./examples/langtail-react-hook/)\n\nHere you can see how you can simply work with AI streams and `Readablestream` using our [custom React hook `useChatStream`](https://github.com/langtail/examples/blob/main/examples/langtail-react-hook/app/components/chat.tsx#L78). You just request your backend and the AI messages will be filled up for you with all the goodies. Like message deltas and tool calls.\n\nMore examples are coming soon.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangtail%2Fexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flangtail%2Fexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangtail%2Fexamples/lists"}