{"id":13593758,"url":"https://github.com/fixie-ai/ai-jsx","last_synced_at":"2025-05-15T04:05:49.876Z","repository":{"id":174064058,"uuid":"647436755","full_name":"fixie-ai/ai-jsx","owner":"fixie-ai","description":"The AI Application Framework for Javascript","archived":false,"fork":false,"pushed_at":"2024-09-19T23:44:41.000Z","size":20002,"stargazers_count":1105,"open_issues_count":33,"forks_count":77,"subscribers_count":29,"default_branch":"main","last_synced_at":"2025-05-12T00:45:49.549Z","etag":null,"topics":["ai","jsx","nextjs","react","typescript"],"latest_commit_sha":null,"homepage":"https://docs.ai-jsx.com","language":"TypeScript","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/fixie-ai.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","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":"2023-05-30T19:29:07.000Z","updated_at":"2025-05-02T06:54:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc1a7719-952a-4563-91e8-081bfaafdaa1","html_url":"https://github.com/fixie-ai/ai-jsx","commit_stats":{"total_commits":574,"total_committers":18,"mean_commits":31.88888888888889,"dds":0.8083623693379791,"last_synced_commit":"1df0cfce69821e8d88dca0cf51d930abe4c041c4"},"previous_names":["fixie-ai/ai-jsx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixie-ai%2Fai-jsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixie-ai%2Fai-jsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixie-ai%2Fai-jsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixie-ai%2Fai-jsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fixie-ai","download_url":"https://codeload.github.com/fixie-ai/ai-jsx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254270646,"owners_count":22042859,"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":["ai","jsx","nextjs","react","typescript"],"created_at":"2024-08-01T16:01:24.176Z","updated_at":"2025-05-15T04:05:44.860Z","avatar_url":"https://github.com/fixie-ai.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","其他LLM框架","AI.JSX main repo","Other LLM Frameworks"],"sub_categories":["文章","Videos Playlists"],"readme":"# AI.JSX — The AI Application Framework for Javascript\n\n[![Docs Site](https://img.shields.io/badge/Docs%20Site-docs.ai--jsx.com-orange)](https://docs.ai-jsx.com)\n[![Discord Follow](https://dcbadge.vercel.app/api/server/MsKAeKF8kU?style=flat)](https://discord.gg/MsKAeKF8kU)\n[![Twitter Follow](https://img.shields.io/twitter/follow/fixieai?style=social)](https://twitter.com/fixieai)\n\n## About AI.JSX\n\nAI.JSX is a framework for building AI applications using Javascript and JSX. With AI.JSX, you get great tools for prompt engineering and can have the LLM render React components in its response (instead of only text). This means you can provide a set of React components and let the LLM construct your UI dynamically at runtime. AI.JSX also provides native support for tools, Document Question \u0026 Answering, and much more.\n\nAI.JSX can be used to create standalone LLM applications that can be deployed anywhere Node.js is supported, or it can be used as part of a larger React application.\n\n## Features\n\nAI.JSX comes with the following features out-of-the-box:\n\n- **Componetized** → LLM prompt engineering through modular, reusable components.\n- **Model Support** → Use OpenAI, Anthropic, Llama2, or BYOM. Seamlessly switch between model providers and LLM config (e.g. temperature).\n- **Complete AI Toolbox** → Built-in support for Tools, Document Question and Answering, and more.\n- **Generative UI** → Seamlessly interweave LLM calls with standard UI components. LLM can dynamically render UI from a set of components you provide.\n- **Streaming** → Built-in streaming support.\n- **Modern Web Stack Support** → First-class support for NextJS and Create React App. (more coming soon)\n- **LangChain Integration** → Full support for LangChainJS.\n\n## Learning AI.JSX\n\nTo get started with AI.JSX, follow these steps:\n\n1. Check out the [Getting Started Guide](https://docs.ai-jsx.com/getting-started).\n1. Run through the [AI.JSX Tutorial](https://docs.ai-jsx.com/tutorials/aijsxTutorials/part1-completion).\n1. Say \"Hello AI World\" by cloning the [ai-jsx-template](https://github.com/fixie-ai/ai-jsx-template).\n1. Discover many more use cases in the [examples package](https://github.com/fixie-ai/ai-jsx/tree/main/packages/examples).\n1. If you're new to AI, read the [Guide for AI Newcomers](https://docs.ai-jsx.com/ai-newcomers).\n\n## Examples\n\nHere is a simple example using AI.JSX to generate an AI response to a prompt:\n\n```tsx\nimport * as AI from 'ai-jsx';\nimport { ChatCompletion, UserMessage } from 'ai-jsx/core/completion';\n\nconst app = (\n  \u003cChatCompletion\u003e\n    \u003cUserMessage\u003eWrite a Shakespearean sonnet about AI models.\u003c/UserMessage\u003e\n  \u003c/ChatCompletion\u003e\n);\nconst renderContext = AI.createRenderContext();\nconst response = await renderContext.render(app);\nconsole.log(response);\n```\n\nYou can play with live demos on our [live demo app](https://ai-jsx-nextjs-demo.vercel.app/) or view [the source code](./packages/nextjs-demo/).\nFor a full set of examples, see [the examples package](https://github.com/fixie-ai/ai-jsx/tree/main/packages/examples).\n\n#### Check-out the 2 minute [intro video](https://github.com/fixie-ai/ai-jsx/assets/476553/301b79e4-7023-4adc-a3a5-72d5b7af0cde).\n\n## Contributing\n\nWe welcome contributions! See the [Contribution Guide](packages/docs/docs/contributing/index.md) for details on how to get started.\n\n## License\n\nAI.JSX is open-source software and released under the [MIT license](https://opensource.org/license/mit).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffixie-ai%2Fai-jsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffixie-ai%2Fai-jsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffixie-ai%2Fai-jsx/lists"}