[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-AnswerDotAI--fasthtml":3,"tool-AnswerDotAI--fasthtml":61},[4,18,26,36,44,53],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":17},4358,"openclaw","openclaw\u002Fopenclaw","OpenClaw 是一款专为个人打造的本地化 AI 助手，旨在让你在自己的设备上拥有完全可控的智能伙伴。它打破了传统 AI 助手局限于特定网页或应用的束缚，能够直接接入你日常使用的各类通讯渠道，包括微信、WhatsApp、Telegram、Discord、iMessage 等数十种平台。无论你在哪个聊天软件中发送消息，OpenClaw 都能即时响应，甚至支持在 macOS、iOS 和 Android 设备上进行语音交互，并提供实时的画布渲染功能供你操控。\n\n这款工具主要解决了用户对数据隐私、响应速度以及“始终在线”体验的需求。通过将 AI 部署在本地，用户无需依赖云端服务即可享受快速、私密的智能辅助，真正实现了“你的数据，你做主”。其独特的技术亮点在于强大的网关架构，将控制平面与核心助手分离，确保跨平台通信的流畅性与扩展性。\n\nOpenClaw 非常适合希望构建个性化工作流的技术爱好者、开发者，以及注重隐私保护且不愿被单一生态绑定的普通用户。只要具备基础的终端操作能力（支持 macOS、Linux 及 Windows WSL2），即可通过简单的命令行引导完成部署。如果你渴望拥有一个懂你",349277,3,"2026-04-06T06:32:30",[13,14,15,16],"Agent","开发框架","图像","数据工具","ready",{"id":19,"name":20,"github_repo":21,"description_zh":22,"stars":23,"difficulty_score":10,"last_commit_at":24,"category_tags":25,"status":17},3808,"stable-diffusion-webui","AUTOMATIC1111\u002Fstable-diffusion-webui","stable-diffusion-webui 是一个基于 Gradio 构建的网页版操作界面，旨在让用户能够轻松地在本地运行和使用强大的 Stable Diffusion 图像生成模型。它解决了原始模型依赖命令行、操作门槛高且功能分散的痛点，将复杂的 AI 绘图流程整合进一个直观易用的图形化平台。\n\n无论是希望快速上手的普通创作者、需要精细控制画面细节的设计师，还是想要深入探索模型潜力的开发者与研究人员，都能从中获益。其核心亮点在于极高的功能丰富度：不仅支持文生图、图生图、局部重绘（Inpainting）和外绘（Outpainting）等基础模式，还独创了注意力机制调整、提示词矩阵、负向提示词以及“高清修复”等高级功能。此外，它内置了 GFPGAN 和 CodeFormer 等人脸修复工具，支持多种神经网络放大算法，并允许用户通过插件系统无限扩展能力。即使是显存有限的设备，stable-diffusion-webui 也提供了相应的优化选项，让高质量的 AI 艺术创作变得触手可及。",162132,"2026-04-05T11:01:52",[14,15,13],{"id":27,"name":28,"github_repo":29,"description_zh":30,"stars":31,"difficulty_score":32,"last_commit_at":33,"category_tags":34,"status":17},1381,"everything-claude-code","affaan-m\u002Feverything-claude-code","everything-claude-code 是一套专为 AI 编程助手（如 Claude Code、Codex、Cursor 等）打造的高性能优化系统。它不仅仅是一组配置文件，而是一个经过长期实战打磨的完整框架，旨在解决 AI 代理在实际开发中面临的效率低下、记忆丢失、安全隐患及缺乏持续学习能力等核心痛点。\n\n通过引入技能模块化、直觉增强、记忆持久化机制以及内置的安全扫描功能，everything-claude-code 能显著提升 AI 在复杂任务中的表现，帮助开发者构建更稳定、更智能的生产级 AI 代理。其独特的“研究优先”开发理念和针对 Token 消耗的优化策略，使得模型响应更快、成本更低，同时有效防御潜在的攻击向量。\n\n这套工具特别适合软件开发者、AI 研究人员以及希望深度定制 AI 工作流的技术团队使用。无论您是在构建大型代码库，还是需要 AI 协助进行安全审计与自动化测试，everything-claude-code 都能提供强大的底层支持。作为一个曾荣获 Anthropic 黑客大奖的开源项目，它融合了多语言支持与丰富的实战钩子（hooks），让 AI 真正成长为懂上",159636,2,"2026-04-17T23:33:34",[14,13,35],"语言模型",{"id":37,"name":38,"github_repo":39,"description_zh":40,"stars":41,"difficulty_score":32,"last_commit_at":42,"category_tags":43,"status":17},2271,"ComfyUI","Comfy-Org\u002FComfyUI","ComfyUI 是一款功能强大且高度模块化的视觉 AI 引擎，专为设计和执行复杂的 Stable Diffusion 图像生成流程而打造。它摒弃了传统的代码编写模式，采用直观的节点式流程图界面，让用户通过连接不同的功能模块即可构建个性化的生成管线。\n\n这一设计巧妙解决了高级 AI 绘图工作流配置复杂、灵活性不足的痛点。用户无需具备编程背景，也能自由组合模型、调整参数并实时预览效果，轻松实现从基础文生图到多步骤高清修复等各类复杂任务。ComfyUI 拥有极佳的兼容性，不仅支持 Windows、macOS 和 Linux 全平台，还广泛适配 NVIDIA、AMD、Intel 及苹果 Silicon 等多种硬件架构，并率先支持 SDXL、Flux、SD3 等前沿模型。\n\n无论是希望深入探索算法潜力的研究人员和开发者，还是追求极致创作自由度的设计师与资深 AI 绘画爱好者，ComfyUI 都能提供强大的支持。其独特的模块化架构允许社区不断扩展新功能，使其成为当前最灵活、生态最丰富的开源扩散模型工具之一，帮助用户将创意高效转化为现实。",108322,"2026-04-10T11:39:34",[14,15,13],{"id":45,"name":46,"github_repo":47,"description_zh":48,"stars":49,"difficulty_score":32,"last_commit_at":50,"category_tags":51,"status":17},6121,"gemini-cli","google-gemini\u002Fgemini-cli","gemini-cli 是一款由谷歌推出的开源 AI 命令行工具，它将强大的 Gemini 大模型能力直接集成到用户的终端环境中。对于习惯在命令行工作的开发者而言，它提供了一条从输入提示词到获取模型响应的最短路径，无需切换窗口即可享受智能辅助。\n\n这款工具主要解决了开发过程中频繁上下文切换的痛点，让用户能在熟悉的终端界面内直接完成代码理解、生成、调试以及自动化运维任务。无论是查询大型代码库、根据草图生成应用，还是执行复杂的 Git 操作，gemini-cli 都能通过自然语言指令高效处理。\n\n它特别适合广大软件工程师、DevOps 人员及技术研究人员使用。其核心亮点包括支持高达 100 万 token 的超长上下文窗口，具备出色的逻辑推理能力；内置 Google 搜索、文件操作及 Shell 命令执行等实用工具；更独特的是，它支持 MCP（模型上下文协议），允许用户灵活扩展自定义集成，连接如图像生成等外部能力。此外，个人谷歌账号即可享受免费的额度支持，且项目基于 Apache 2.0 协议完全开源，是提升终端工作效率的理想助手。",100752,"2026-04-10T01:20:03",[52,13,15,14],"插件",{"id":54,"name":55,"github_repo":56,"description_zh":57,"stars":58,"difficulty_score":32,"last_commit_at":59,"category_tags":60,"status":17},4721,"markitdown","microsoft\u002Fmarkitdown","MarkItDown 是一款由微软 AutoGen 团队打造的轻量级 Python 工具，专为将各类文件高效转换为 Markdown 格式而设计。它支持 PDF、Word、Excel、PPT、图片（含 OCR）、音频（含语音转录）、HTML 乃至 YouTube 链接等多种格式的解析，能够精准提取文档中的标题、列表、表格和链接等关键结构信息。\n\n在人工智能应用日益普及的今天，大语言模型（LLM）虽擅长处理文本，却难以直接读取复杂的二进制办公文档。MarkItDown 恰好解决了这一痛点，它将非结构化或半结构化的文件转化为模型“原生理解”且 Token 效率极高的 Markdown 格式，成为连接本地文件与 AI 分析 pipeline 的理想桥梁。此外，它还提供了 MCP（模型上下文协议）服务器，可无缝集成到 Claude Desktop 等 LLM 应用中。\n\n这款工具特别适合开发者、数据科学家及 AI 研究人员使用，尤其是那些需要构建文档检索增强生成（RAG）系统、进行批量文本分析或希望让 AI 助手直接“阅读”本地文件的用户。虽然生成的内容也具备一定可读性，但其核心优势在于为机器",93400,"2026-04-06T19:52:38",[52,14],{"id":62,"github_repo":63,"name":64,"description_en":65,"description_zh":66,"ai_summary_zh":66,"readme_en":67,"readme_zh":68,"quickstart_zh":69,"use_case_zh":70,"hero_image_url":71,"owner_login":72,"owner_name":73,"owner_avatar_url":74,"owner_bio":75,"owner_company":76,"owner_location":76,"owner_email":76,"owner_twitter":76,"owner_website":77,"owner_url":78,"languages":79,"stars":105,"forks":106,"last_commit_at":107,"license":108,"difficulty_score":109,"env_os":110,"env_gpu":111,"env_ram":112,"env_deps":113,"category_tags":119,"github_topics":76,"view_count":32,"oss_zip_url":76,"oss_zip_packed_at":76,"status":17,"created_at":120,"updated_at":121,"faqs":122,"releases":148},8840,"AnswerDotAI\u002Ffasthtml","fasthtml","The fastest way to create an HTML app","FastHTML 是一款新一代的 Python Web 框架，旨在让开发者以最少的代码快速构建可扩展的 HTML 应用。它完美融合了 Python 的强大生态与原生 HTML\u002FHTTP 标准，让你无需学习复杂的模板语言或繁琐的前端构建流程，仅用纯 Python 代码即可轻松打造功能丰富、交互流畅的现代网页。\n\n传统 Web 开发往往需要在前后端技术栈间频繁切换，导致代码冗余且学习曲线陡峭。FastHTML 通过“超媒体驱动”的理念解决了这一痛点：后端直接返回 HTML 片段，配合 HTMX 库实现页面的局部动态更新，从而在保持架构简单的同时，提供媲美单页应用（SPA）的用户体验。\n\n这款工具特别适合熟悉 Python 的后端开发者、数据科学家以及希望快速原型验证的研究人员。即使你前端经验有限，也能利用其直观语法迅速上手。FastHTML 的独特亮点在于其对 AI 辅助开发的友好支持，官方提供了专门的上下文指南，能让 Claude、Cursor 等主流 AI 助手准确理解框架逻辑，生成高质量代码。如果你追求高效、轻量且符合软件工程规范的 Web 开发方式，FastHTML 值得尝试。","# FastHTML\n\n\n\u003C!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\nWelcome to the official FastHTML documentation.\n\nFastHTML is a new next-generation web framework for fast, scalable web\napplications with minimal, compact code. It’s designed to be:\n\n- Powerful and expressive enough to build the most advanced, interactive\n  web apps you can imagine.\n- Fast and lightweight, so you can write less code and get more done.\n- Easy to learn and use, with a simple, intuitive syntax that makes it\n  easy to build complex apps quickly.\n\nFastHTML apps are just Python code, so you can use FastHTML with the\nfull power of the Python language and ecosystem. FastHTML’s\nfunctionality maps 1:1 directly to HTML and HTTP, but allows them to be\nencapsulated using good software engineering practices—so you’ll need to\nunderstand these foundations to use this library fully. To understand\nhow and why this works, please read this first:\n[fastht.ml\u002Fabout](https:\u002F\u002Ffastht.ml\u002Fabout).\n\n## Installation\n\nSince `fasthtml` is a Python library, you can install it with:\n\n``` sh\npip install python-fasthtml\n```\n\nIn the near future, we hope to add component libraries that can likewise\nbe installed via `pip`.\n\n## Usage\n\nFor a minimal app, create a file “main.py” as follows:\n\n\u003Cdiv class=\"code-with-filename\">\n\n**main.py**\n\n``` python\nfrom fasthtml.common import *\n\napp,rt = fast_app()\n\n@rt('\u002F')\ndef get(): return Div(P('Hello World!'), hx_get=\"\u002Fchange\")\n\nserve()\n```\n\n\u003C\u002Fdiv>\n\nRunning the app with `python main.py` prints out a link to your running\napp: `http:\u002F\u002Flocalhost:5001`. Visit that link in your browser and you\nshould see a page with the text “Hello World!”. Congratulations, you’ve\njust created your first FastHTML app!\n\nAdding interactivity is surprisingly easy, thanks to HTMX. Modify the\nfile to add this function:\n\n\u003Cdiv class=\"code-with-filename\">\n\n**main.py**\n\n``` python\n@rt('\u002Fchange')\ndef get(): return P('Nice to be here!')\n```\n\n\u003C\u002Fdiv>\n\nYou now have a page with a clickable element that changes the text when\nclicked. When clicking on this link, the server will respond with an\n“HTML partial”—that is, just a snippet of HTML which will be inserted\ninto the existing page. In this case, the returned element will replace\nthe original P element (since that’s the default behavior of HTMX) with\nthe new version returned by the second route.\n\nThis “hypermedia-based” approach to web development is a powerful way to\nbuild web applications.\n\n### Getting help from AI\n\nBecause FastHTML is newer than most LLMs, AI systems like Cursor,\nChatGPT, Claude, and Copilot won’t give useful answers about it. To fix\nthat problem, we’ve provided an LLM-friendly guide that teaches them how\nto use FastHTML. To use it, add this link for your AI helper to use:\n\n- [\u002Fllms-ctx.txt](https:\u002F\u002Fwww.fastht.ml\u002Fdocs\u002Fllms-ctx.txt)\n\nThis example is in a format based on recommendations from Anthropic for\nuse with [Claude\nProjects](https:\u002F\u002Fsupport.anthropic.com\u002Fen\u002Farticles\u002F9517075-what-are-projects).\nThis works so well that we’ve actually found that Claude can provide\neven better information than our own documentation! For instance, read\nthrough [this annotated Claude\nchat](https:\u002F\u002Fgist.github.com\u002Fjph00\u002F9559b0a563f6a370029bec1d1cc97b74)\nfor some great getting-started information, entirely generated from a\nproject using the above text file as context.\n\nIf you use Cursor, type `@doc` then choose “*Add new doc*”, and use the\n\u002Fllms-ctx.txt link above. The context file is auto-generated from our\n[`llms.txt`](https:\u002F\u002Fllmstxt.org\u002F) (our proposed standard for providing\nAI-friendly information)—you can generate alternative versions suitable\nfor other models as needed.\n\n## Next Steps\n\nStart with the official sources to learn more about FastHTML:\n\n- [About](https:\u002F\u002Ffastht.ml\u002Fabout): Learn about the core ideas behind\n  FastHTML\n- [Documentation](https:\u002F\u002Fwww.fastht.ml\u002Fdocs): Learn from examples how\n  to write FastHTML code\n- [Idiomatic\n  app](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fblob\u002Fmain\u002Fexamples\u002Fadv_app.py):\n  Heavily commented source code walking through a complete application,\n  including custom authentication, JS library connections, and database\n  use.\n\nWe also have a 1-hour intro video:\n\n\u003Chttps:\u002F\u002Fwww.youtube.com\u002Fembed\u002FAuqrm7WFc0I>\n\nThe capabilities of FastHTML are vast and growing, and not all the\nfeatures and patterns have been documented yet. Be prepared to invest\ntime into studying and modifying source code, such as the main FastHTML\nrepo’s notebooks and the official FastHTML examples repo:\n\n- [FastHTML Examples Repo on\n  GitHub](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml-example)\n- [FastHTML Repo on GitHub](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml)\n\nThen explore the small but growing third-party ecosystem of FastHTML\ntutorials, notebooks, libraries, and components:\n\n- [FastHTML Gallery](https:\u002F\u002Fgallery.fastht.ml): Learn from minimal\n  examples of components (ie chat bubbles, click-to-edit, infinite\n  scroll, etc)\n- [Creating Custom FastHTML Tags for Markdown\n  Rendering](https:\u002F\u002Fisaac-flath.github.io\u002Fwebsite\u002Fposts\u002Fboots\u002FFasthtmlTutorial.html)\n  by Isaac Flath\n- [How to Build a Simple Login System in\n  FastHTML](https:\u002F\u002Fblog.mariusvach.com\u002Fposts\u002Flogin-fasthtml) by Marius\n  Vach\n- Your tutorial here!\n\nFinally, join the FastHTML community to ask questions, share your work,\nand learn from others:\n\n- [Discord](https:\u002F\u002Fdiscord.gg\u002FqcXvcxMhdP)\n\n## Other languages and related projects\n\nIf you’re not a Python user, or are keen to try out a new language,\nwe’ll list here other projects that have a similar approach to FastHTML.\n(Please reach out if you know of any other projects that you’d like to\nsee added.)\n\n- [htmgo](https:\u002F\u002Fhtmgo.dev\u002F) (Go): “*htmgo is a lightweight pure go way\n  to build interactive websites \u002F web applications using go & htmx. By\n  combining the speed & simplicity of go + hypermedia attributes (htmx)\n  to add interactivity to websites, all conveniently wrapped in pure go,\n  you can build simple, fast, interactive websites without touching\n  javascript. All compiled to a single deployable binary*”\n\nIf you’re just interested in functional HTML components, rather than a\nfull HTMX server solution, consider:\n\n- [fastcore.xml.FT](https:\u002F\u002Ffastcore.fast.ai\u002Fxml.html): This is actually\n  what FastHTML uses behind the scenes\n- [htpy](https:\u002F\u002Fhtpy.dev\u002F): Similar to\n  [`fastcore.xml.FT`](https:\u002F\u002Ffastcore.fast.ai\u002Fxml.html#ft), but with a\n  somewhat different syntax\n- [elm-html](https:\u002F\u002Fpackage.elm-lang.org\u002Fpackages\u002Felm\u002Fhtml\u002Flatest\u002F):\n  Elm’s built-in HTML library with a type-safe functional approach\n- [hiccup](https:\u002F\u002Fgithub.com\u002Fweavejester\u002Fhiccup): Popular library for\n  representing HTML in Clojure using vectors\n- [hiccl](https:\u002F\u002Fgithub.com\u002Fgarlic0x1\u002Fhiccl): HTML generation library\n  for Common Lisp inspired by Clojure’s Hiccup\n- [Falco.Markup](https:\u002F\u002Fgithub.com\u002Fpimbrouwers\u002FFalco): F# HTML DSL and\n  web framework with type-safe HTML generation\n- [Lucid](https:\u002F\u002Fgithub.com\u002Fchrisdone\u002Flucid): Type-safe HTML generation\n  for Haskell using monad transformers\n- [dream-html](https:\u002F\u002Fgithub.com\u002Faantron\u002Fdream): Part of the Dream web\n  framework for OCaml, provides type-safe HTML templating\n\nFor other hypermedia application platforms, not based on HTMX, take a\nlook at:\n\n- [Hotwire\u002FTurbo](https:\u002F\u002Fturbo.hotwired.dev\u002F): Rails-oriented framework\n  that similarly uses HTML-over-the-wire\n- [LiveView](https:\u002F\u002Fhexdocs.pm\u002Fphoenix_live_view\u002FPhoenix.LiveView.html):\n  Phoenix framework’s solution for building interactive web apps with\n  minimal JavaScript\n- [Unpoly](https:\u002F\u002Funpoly.com\u002F): Another HTML-over-the-wire framework\n  with progressive enhancement\n- [Livewire](https:\u002F\u002Flaravel-livewire.com\u002F): Laravel’s take on building\n  dynamic interfaces with minimal JavaScript\n","# FastHTML\n\n\n\u003C!-- 警告：此文件由自动化工具生成！请勿编辑！ -->\n\n欢迎来到 FastHTML 官方文档。\n\nFastHTML 是一款面向新一代的 Web 框架，用于构建快速、可扩展的 Web 应用程序，同时保持代码极简、紧凑。它旨在：\n\n- 功能强大且富有表现力，足以构建您所能想象到的最先进、最具交互性的 Web 应用。\n- 速度快、轻量级，让您编写更少的代码却能完成更多工作。\n- 易于学习和使用，拥有简单直观的语法，使您能够快速构建复杂的应用。\n\nFastHTML 应用程序本质上就是 Python 代码，因此您可以充分利用 Python 语言及其生态系统来使用 FastHTML。FastHTML 的功能与 HTML 和 HTTP 1:1 对应，但允许通过良好的软件工程实践对其进行封装——因此，要充分使用该库，您需要理解这些基础知识。要了解其工作原理及原因，请先阅读以下内容：\n[fastht.ml\u002Fabout](https:\u002F\u002Ffastht.ml\u002Fabout)。\n\n## 安装\n\n由于 `fasthtml` 是一个 Python 库，您可以通过以下命令安装它：\n\n``` sh\npip install python-fasthtml\n```\n\n在不久的将来，我们希望添加同样可以通过 `pip` 安装的组件库。\n\n## 使用\n\n对于一个最小的应用程序，创建名为 “main.py” 的文件，内容如下：\n\n\u003Cdiv class=\"code-with-filename\">\n\n**main.py**\n\n``` python\nfrom fasthtml.common import *\n\napp,rt = fast_app()\n\n@rt('\u002F')\ndef get(): return Div(P('Hello World!'), hx_get=\"\u002Fchange\")\n\nserve()\n```\n\n\u003C\u002Fdiv>\n\n运行该应用程序，执行 `python main.py`，终端会输出一个指向您正在运行的应用程序的链接：`http:\u002F\u002Flocalhost:5001`。在浏览器中访问该链接，您应该会看到一个显示“Hello World!”的页面。恭喜您，您刚刚创建了您的第一个 FastHTML 应用程序！\n\n得益于 HTMX，添加交互性变得出奇地容易。修改文件以添加以下函数：\n\n\u003Cdiv class=\"code-with-filename\">\n\n**main.py**\n\n``` python\n@rt('\u002Fchange')\ndef get(): return P('Nice to be here!')\n```\n\n\u003C\u002Fdiv>\n\n现在您有一个带有可点击元素的页面，点击后文本会发生变化。当您点击该链接时，服务器将响应一个“HTML 片段”——即仅一段 HTML 代码，它会被插入到现有页面中。在这种情况下，返回的元素将替换掉原来的 `\u003Cp>` 元素（因为这是 HTMX 的默认行为），并用第二个路由返回的新版本替换。\n\n这种基于超媒体的 Web 开发方式是构建 Web 应用程序的强大途径。\n\n### 从 AI 获取帮助\n\n由于 FastHTML 相较于大多数大型语言模型来说较为新颖，像 Cursor、ChatGPT、Claude 和 Copilot 等 AI 系统并不会给出关于它的有用答案。为了解决这个问题，我们提供了一份对 LLM 友好的指南，教它们如何使用 FastHTML。要使用它，请将以下链接添加到您的 AI 助手上下文中：\n\n- [\u002Fllms-ctx.txt](https:\u002F\u002Fwww.fastht.ml\u002Fdocs\u002Fllms-ctx.txt)\n\n该示例采用 Anthropic 推荐的格式，适用于 [Claude Projects](https:\u002F\u002Fsupport.anthropic.com\u002Fen\u002Farticles\u002F9517075-what-are-projects)。这种方式效果非常好，以至于我们发现 Claude 提供的信息甚至比我们自己的文档还要好！例如，请参阅这篇由上述文本文件作为上下文生成的注释版 Claude 对话：\n[https:\u002F\u002Fgist.github.com\u002Fjph00\u002F9559b0a563f6a370029bec1d1cc97b74](https:\u002F\u002Fgist.github.com\u002Fjph00\u002F9559b0a563f6a370029bec1d1cc97b74)，其中包含了大量入门信息。\n\n如果您使用 Cursor，只需输入 `@doc` 并选择“*添加新文档*”，然后使用上面提到的 \u002Fllms-ctx.txt 链接。该上下文文件是由我们的 [`llms.txt`](https:\u002F\u002Fllmstxt.org\u002F) 自动生成的——这是我们提议的用于提供 AI 友好信息的标准；您也可以根据需要生成适用于其他模型的替代版本。\n\n## 后续步骤\n\n请从官方资源开始，深入了解 FastHTML：\n\n- [关于](https:\u002F\u002Ffastht.ml\u002Fabout)：了解 FastHTML 的核心理念\n- [文档](https:\u002F\u002Fwww.fastht.ml\u002Fdocs)：通过示例学习如何编写 FastHTML 代码\n- [惯用法应用](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fblob\u002Fmain\u002Fexamples\u002Fadv_app.py)：包含大量注释的源代码，详细展示了完整的应用程序，包括自定义认证、JS 库集成以及数据库使用等内容。\n\n我们还准备了一段一小时的介绍视频：\n\n\u003Chttps:\u002F\u002Fwww.youtube.com\u002Fembed\u002FAuqrm7WFc0I>\n\nFastHTML 的能力非常强大且仍在不断扩展，目前并非所有特性和模式都已被记录下来。请做好投入时间研究和修改源代码的准备，例如 FastHTML 主仓库中的笔记本以及官方的 FastHTML 示例仓库：\n\n- [FastHTML 示例仓库 on GitHub](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml-example)\n- [FastHTML 仓库 on GitHub](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml)\n\n接下来，您可以探索日益壮大的第三方生态体系，其中包括 FastHTML 教程、笔记本、库和组件：\n\n- [FastHTML 画廊](https:\u002F\u002Fgallery.fastht.ml)：通过简单的组件示例学习（如聊天气泡、点击编辑、无限滚动等）\n- [为 Markdown 渲染创建自定义 FastHTML 标签](https:\u002F\u002Fisaac-flath.github.io\u002Fwebsite\u002Fposts\u002Fboots\u002FFasthtmlTutorial.html) —— 作者：Isaac Flath\n- [如何在 FastHTML 中构建一个简单的登录系统](https:\u002F\u002Fblog.mariusvach.com\u002Fposts\u002Flogin-fasthtml) —— 作者：Marius Vach\n- 您的教程可以放在这里！\n\n最后，加入 FastHTML 社区，提出问题、分享您的作品，并向他人学习：\n\n- [Discord](https:\u002F\u002Fdiscord.gg\u002FqcXvcxMhdP)\n\n## 其他语言及相关项目\n\n如果你不是 Python 用户，或者想尝试一种新语言，我们会在这里列出一些与 FastHTML 采用类似思路的项目。（如果你知道其他值得添加的项目，请随时联系我们。）\n\n- [htmgo](https:\u002F\u002Fhtmgo.dev\u002F) (Go)：“*htmgo 是一种轻量级、纯 Go 的方式，用于使用 Go 和 htmx 构建交互式网站或 Web 应用程序。通过将 Go 的速度与简洁性，结合超媒体属性（htmx）来为网站添加交互功能，并且所有这些都以纯 Go 实现，你可以在完全不接触 JavaScript 的情况下，构建简单、快速、交互式的网站。最终会编译成一个可部署的二进制文件*”\n\n如果你只对函数式的 HTML 组件感兴趣，而不是完整的 HTMX 服务器解决方案，可以考虑：\n\n- [fastcore.xml.FT](https:\u002F\u002Ffastcore.fast.ai\u002Fxml.html)：这实际上是 FastHTML 背后使用的实现。\n- [htpy](https:\u002F\u002Fhtpy.dev\u002F)：与 [`fastcore.xml.FT`](https:\u002F\u002Ffastcore.fast.ai\u002Fxml.html#ft) 类似，但语法略有不同。\n- [elm-html](https:\u002F\u002Fpackage.elm-lang.org\u002Fpackages\u002Felm\u002Fhtml\u002Flatest\u002F)：Elm 内置的 HTML 库，采用类型安全的函数式编程方式。\n- [hiccup](https:\u002F\u002Fgithub.com\u002Fweavejester\u002Fhiccup)：在 Clojure 中使用向量表示 HTML 的流行库。\n- [hiccl](https:\u002F\u002Fgithub.com\u002Fgarlic0x1\u002Fhiccl)：受 Clojure 的 Hiccup 启发，专为 Common Lisp 设计的 HTML 生成库。\n- [Falco.Markup](https:\u002F\u002Fgithub.com\u002Fpimbrouwers\u002FFalco)：F# 的 HTML DSL 及 Web 框架，支持类型安全的 HTML 生成。\n- [Lucid](https:\u002F\u002Fgithub.com\u002Fchrisdone\u002Flucid)：使用 Monad 转换器为 Haskell 提供类型安全的 HTML 生成。\n- [dream-html](https:\u002F\u002Fgithub.com\u002Faantron\u002Fdream)：作为 Dream Web 框架的一部分，专为 OCaml 提供类型安全的 HTML 模板。\n\n对于其他基于超媒体而非 HTMX 的应用平台，可以看看：\n\n- [Hotwire\u002FTurbo](https:\u002F\u002Fturbo.hotwired.dev\u002F)：面向 Rails 的框架，同样采用“HTML-over-the-wire”模式。\n- [LiveView](https:\u002F\u002Fhexdocs.pm\u002Fphoenix_live_view\u002FPhoenix.LiveView.html)：Phoenix 框架提供的解决方案，用于在尽量减少 JavaScript 的情况下构建交互式 Web 应用。\n- [Unpoly](https:\u002F\u002Funpoly.com\u002F)：另一个采用“HTML-over-the-wire”并支持渐进增强的框架。\n- [Livewire](https:\u002F\u002Flaravel-livewire.com\u002F)：Laravel 提供的一种方式，用于在尽量减少 JavaScript 的情况下构建动态界面。","# FastHTML 快速上手指南\n\nFastHTML 是一个新一代的 Python Web 框架，旨在通过极简的代码构建快速、可扩展且交互性强的 Web 应用。它完美融合了 Python 的强大功能与 HTMX 的超媒体交互能力，让你无需编写 JavaScript 即可打造动态页面。\n\n## 环境准备\n\n- **操作系统**：Windows、macOS 或 Linux\n- **Python 版本**：建议安装 Python 3.10 或更高版本\n- **前置依赖**：无需额外系统级依赖，仅需标准的 Python 环境\n\n## 安装步骤\n\n使用 `pip` 直接安装 FastHTML：\n\n```sh\npip install python-fasthtml\n```\n\n> **提示**：国内开发者若遇到下载速度慢的问题，可使用国内镜像源加速安装：\n> ```sh\n> pip install python-fasthtml -i https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\n> ```\n\n## 基本使用\n\n### 1. 创建最小化应用\n\n新建一个名为 `main.py` 的文件，写入以下代码：\n\n```python\nfrom fasthtml.common import *\n\napp,rt = fast_app()\n\n@rt('\u002F')\ndef get(): return Div(P('Hello World!'), hx_get=\"\u002Fchange\")\n\nserve()\n```\n\n### 2. 运行应用\n\n在终端中执行：\n\n```sh\npython main.py\n```\n\n启动后，终端会输出类似 `http:\u002F\u002Flocalhost:5001` 的地址。在浏览器中访问该链接，你将看到显示\"Hello World!\"的页面。\n\n### 3. 添加交互功能\n\nFastHTML 内置了对 HTMX 的支持，只需添加一个新的路由即可实现页面无刷新更新。在 `main.py` 中追加以下函数：\n\n```python\n@rt('\u002Fchange')\ndef get(): return P('Nice to be here!')\n```\n\n保存文件并重启应用（或启用自动重载）。现在点击页面上的文字，内容将动态变更为\"Nice to be here!\"，整个过程无需编写任何 JavaScript 代码。\n\n### 4. 借助 AI 辅助开发\n\n由于 FastHTML 较新，通用大模型可能缺乏相关知识。建议在使用 Cursor、Claude 等 AI 编程助手时，添加官方提供的上下文文件以提升回答质量：\n\n- 上下文地址：`https:\u002F\u002Fwww.fastht.ml\u002Fdocs\u002Fllms-ctx.txt`\n\n**在 Cursor 中配置方法**：输入 `@doc` -> 选择\"Add new doc\" -> 粘贴上述链接。","一位全栈开发者需要快速构建一个具备实时数据更新功能的内部运营监控看板，且希望避免繁琐的前后端分离架构。\n\n### 没有 fasthtml 时\n- **开发流程割裂**：必须分别编写 Python 后端 API 和 React\u002FVue 前端代码，维护两套项目结构与依赖环境。\n- **交互实现复杂**：为了实现点击按钮局部刷新数据，需手动配置 AJAX 请求、状态管理及 DOM 操作逻辑，代码量大且易出错。\n- **原型迭代缓慢**：每次调整界面布局或交互逻辑，都需要重新编译前端资源并协调前后端接口定义，耗时费力。\n- **学习曲线陡峭**：团队成员若不熟悉现代前端框架，难以快速上手参与开发，导致人力调配困难。\n\n### 使用 fasthtml 后\n- **单一语言贯通**：仅需编写纯 Python 代码即可生成完整 HTML 应用，直接复用现有 Python 生态库，无需切换技术栈。\n- **原生超媒体交互**：利用内置的 HTMX 支持，只需在函数返回中添加 `hx_get` 属性，即可轻松实现“点击即局部刷新”，无需手写 JavaScript。\n- **极速原型落地**：修改路由函数即可即时改变页面内容与行为，保存即运行，将功能迭代时间从小时级缩短至分钟级。\n- **直观易懂的代码**：语法简洁且映射标准 HTML 结构，即使是后端开发人员也能轻松理解并贡献前端界面代码。\n\nfasthtml 通过将超媒体驱动的开发模式封装在简洁的 Python 语法中，让开发者能以最小的代码成本构建出高性能、强交互的现代 Web 应用。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FAnswerDotAI_fasthtml_c2de85cd.png","AnswerDotAI","Answer.AI","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002FAnswerDotAI_78f2aa92.png","",null,"https:\u002F\u002Fwww.answer.ai","https:\u002F\u002Fgithub.com\u002FAnswerDotAI",[80,84,88,92,95,99,102],{"name":81,"color":82,"percentage":83},"Jupyter Notebook","#DA5B0B",58.2,{"name":85,"color":86,"percentage":87},"Python","#3572A5",41.6,{"name":89,"color":90,"percentage":91},"JavaScript","#f1e05a",0.1,{"name":93,"color":94,"percentage":91},"CSS","#663399",{"name":96,"color":97,"percentage":98},"HTML","#e34c26",0,{"name":100,"color":101,"percentage":98},"SCSS","#c6538c",{"name":103,"color":104,"percentage":98},"Shell","#89e051",6911,306,"2026-04-17T15:31:38","Apache-2.0",1,"未说明 (适用于任何支持 Python 的操作系统)","不需要","未说明",{"notes":114,"python":115,"dependencies":116},"FastHTML 是一个轻量级 Python Web 框架，不依赖 GPU 或大型模型文件。它基于标准的 Python 生态系统，利用 HTMX 实现交互功能。由于该库较新，主流 AI 助手可能缺乏相关知识，建议使用官方提供的上下文文件（llms-ctx.txt）辅助 AI 编程。","未说明 (需安装 python-fasthtml 包)",[117,118],"python-fasthtml","htmx (通过框架集成)",[14],"2026-03-27T02:49:30.150509","2026-04-18T14:13:04.325676",[123,128,133,138,143],{"id":124,"question_zh":125,"answer_zh":126,"source_url":127},39656,"如何将路由组织到多个文件中以避免主文件过于臃肿？","FastHTML 现在支持使用 APIRouter 来更好地组织路由。你可以将不同页面的路由定义在单独的文件中，然后通过 APIRouter 进行注册和管理，从而避免在主文件中手动添加所有路由或产生循环导入问题。具体用法可参考官方文档：https:\u002F\u002Ffastht.ml\u002Fdocs\u002Fref\u002Fhandlers.html#apirouter","https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F217",{"id":129,"question_zh":130,"answer_zh":131,"source_url":132},39657,"如何在 FastHTML 中进行反向 URL 查找（类似 url_for 功能）？","FastHTML 继承了 Starlette 的功能，可以直接在请求对象中使用 url_for。首先需要在路由装饰器中指定 name 参数，例如 @rt('\u002Ftoggle\u002F{tid}', name='toggle')。然后在处理函数中通过 req.url_for('toggle', tid=123) 即可生成对应的 URL。此外，也可以在应用对象上使用 app.url_path_for(...) 来在不传递 request 对象的组件中反向解析 URL。","https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F189",{"id":134,"question_zh":135,"answer_zh":136,"source_url":137},39658,"安装 python-fasthtml 后导入时报错 'ModuleNotFoundError: No module named fasthtml' 怎么办？","该错误通常是因为 Python 版本过低。python-fasthtml (0.2.1 及以上版本) 要求 Python >= 3.10。请检查当前 Python 版本，如果低于 3.10，请升级 Python。例如在 macOS 上可以使用 brew install python@3.10，然后使用 pip3.10 install python-fasthtml 进行安装。安装完成后确保使用正确的 Python 解释器运行代码。","https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F103",{"id":139,"question_zh":140,"answer_zh":141,"source_url":142},39659,"运行官方快速开始示例代码时访问 localhost 返回 404 错误是什么原因？","这通常是因为使用了过时的装饰器写法或版本不兼容。请确保使用的是最新的 fasthtml 版本，并采用推荐的 fast_app() 初始化方式：from fasthtml.common import *; app, rt = fast_app()。路由定义应使用 @rt('\u002F') 装饰器，且函数名需对应 HTTP 方法（如 get, post）。如果仍然报错，请尝试显式指定端口或使用 serve(app) 启动。注意不要混用旧版 Starlette 的路由定义方式。","https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F174",{"id":144,"question_zh":145,"answer_zh":146,"source_url":147},39660,"是否有工具可以将现有 HTML 页面转换为 FastHTML 的 FT 组件代码？","是的，FastHTML 提供了一个名为 h2f (HTML to FT) 的在线工具，可以将任意网页的 HTML 转换为 FastHTML 的 Python FT 组件代码。该工具曾托管在 https:\u002F\u002Fh2f.answer.ai\u002F。用户也可以访问 https:\u002F\u002Fdocs.fastht.ml\u002F 查找相关工具链接。社区鼓励用户提交 PR 到 fasthtml-example 仓库以改进此工具，增加如去冗余标签、直接输入 URL 抓取等功能。","https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F516",[149,154,159,164,169,174,179,184,189,194,199,204,209,214,219,224,229,233,238,243],{"id":150,"version":151,"summary_zh":152,"released_at":153},315585,"0.13.3","### 新特性\n\n- 添加 `into` 装饰器和 `add_sig_param` 工具函数；改进 `__from_request__` 参数处理；添加 `Beforeware.__repr__` 方法（[#858](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F858)）\n\n### 修复的 bug\n\n- 修复当 HTMX 发送空头部值时 WebSocket 崩溃的问题（[#856](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F856)），感谢 [@aleph-ra](https:\u002F\u002Fgithub.com\u002Faleph-ra)","2026-04-07T03:55:57",{"id":155,"version":156,"summary_zh":157,"released_at":158},315586,"0.13.2","### 修复的Bug\n\n- 修复 WebSocket 头部查找键不匹配的问题 ([#853](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F853))，感谢 [@dienhoa](https:\u002F\u002Fgithub.com\u002Fdienhoa)","2026-03-27T03:55:19",{"id":160,"version":161,"summary_zh":162,"released_at":163},315587,"0.13.1","### 新特性\n\n- 将生命周期管理重构为 `Lifespan` 类，支持 `on_event` 回调，并新增 `add_websocket_route` 方法（[#851](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F851)）","2026-03-24T02:32:30",{"id":165,"version":166,"summary_zh":167,"released_at":168},315588,"0.13.0","### 新特性\n\n- 添加 `_mk_lifespan` 辅助函数，用于封装 `on_startup`\u002F`on_shutdown`，以兼容 Starlette 1.x 版本（[#850](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F850)）\n\n### 已修复的 bug\n\n- 缺失 `format_datetime`（[#846](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F846)）","2026-03-23T22:27:35",{"id":170,"version":171,"summary_zh":172,"released_at":173},315589,"0.12.50","### 新特性\n\n- 添加 `HostRoute` 类，用于基于主机头的路由，并支持模式匹配（[#843](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F843)）\n\n### 修复的 bug\n\n- 修复 `_fix_anno` 对裸 `list` 注解的混淆问题（[#841](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F841)），感谢 [@jackhogan](https:\u002F\u002Fgithub.com\u002Fjackhogan)","2026-03-13T20:35:38",{"id":175,"version":176,"summary_zh":177,"released_at":178},315590,"0.12.49","### 新特性\n\n- 添加 `HostRoute` 类，支持基于主机头的模式匹配路由（[#843](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F843)）\n\n### 已修复的 bug\n\n- 修复 `_fix_anno` 对裸 `list` 注解的混淆问题（[#841](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F841)），感谢 [@jackhogan](https:\u002F\u002Fgithub.com\u002Fjackhogan)","2026-03-13T20:15:09",{"id":180,"version":181,"summary_zh":182,"released_at":183},315591,"0.12.48","### 修复的 bug\n\n- 如果 `Content-Type` 头部不是 `multipart\u002Fform-data`，则缓存请求体 ([#837](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F837))，感谢 [@curtis-allan](https:\u002F\u002Fgithub.com\u002Fcurtis-allan)","2026-03-02T17:59:39",{"id":185,"version":186,"summary_zh":187,"released_at":188},315592,"0.12.47","### 新特性\n\n- 使 `ApiReturn` 默认可在不传位置参数的情况下调用，将 `norm` 参数的默认值设为 `None` ([#833](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F833))\n- 为 `ApiReturn` 添加 `__bool__` 方法，以直接支持布尔上下文判断 ([#832](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F832))","2026-02-21T02:20:43",{"id":190,"version":191,"summary_zh":192,"released_at":193},315593,"0.12.46","### 新特性\n\n- 为 ApiReturn 添加 `__bool__` 方法，以直接支持布尔上下文判断（[#832](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F832)）","2026-02-21T02:18:42",{"id":195,"version":196,"summary_zh":197,"released_at":198},315594,"0.12.45","- 将所有 HTTP 请求参数的处理也添加到 WebSocket 中。","2026-02-21T00:46:45",{"id":200,"version":201,"summary_zh":202,"released_at":203},315595,"0.12.44","- Add all HTTP request param handling to websockets too","2026-02-20T23:01:54",{"id":205,"version":206,"summary_zh":207,"released_at":208},315596,"0.12.43","### New Features\n\n- Add ApiReturn class for dual browser\u002FAPI responses in route handlers ([#831](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F831))","2026-02-20T05:02:58",{"id":210,"version":211,"summary_zh":212,"released_at":213},315597,"0.12.42","### New Features\n\n- Add uvicorn kwargs to serve() with @delegates(uvicorn.run) and add colored link output ([#830](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F830))","2026-02-16T02:10:18",{"id":215,"version":216,"summary_zh":217,"released_at":218},315598,"0.12.41","### New Features\n\n- Add async OAuth methods and make OAuth handlers async ([#828](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F828))\n- Add `State` injection support for route handlers via type annotation or arg name ([#827](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F827))","2026-02-07T00:39:38",{"id":220,"version":221,"summary_zh":222,"released_at":223},315599,"0.12.40","### New Features\n\n- add optional client arg to HTMX for persistent tests ([#824](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F824)), thanks to [@johnowhitaker](https:\u002F\u002Fgithub.com\u002Fjohnowhitaker)\n\n### Bugs Squashed\n\n- Fix return type annotation bug ([#823](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F823)), thanks to [@erikgaas](https:\u002F\u002Fgithub.com\u002Ferikgaas)","2026-02-02T23:06:26",{"id":225,"version":226,"summary_zh":227,"released_at":228},315600,"0.12.39","### Bugs Squashed\n\n- Fix typo: put='hx-post' → put='hx-put' in `_verbs` mapping ([#821](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F821)), thanks to [@erikgaas](https:\u002F\u002Fgithub.com\u002Ferikgaas)\n- Fix live reload infinite loop on uvicorn >= 0.39 ([#818](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F818)), thanks to [@erikgaas](https:\u002F\u002Fgithub.com\u002Ferikgaas)","2026-01-09T23:54:06",{"id":230,"version":231,"summary_zh":227,"released_at":232},315601,"0.12.38","2026-01-09T23:53:26",{"id":234,"version":235,"summary_zh":236,"released_at":237},315602,"0.12.37","### New Features\n\n- Add Apple sign in ([#813](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F813)), thanks to [@erikgaas](https:\u002F\u002Fgithub.com\u002Ferikgaas)\n\n### Bugs Squashed\n\n- Line defaults suppressed inheriting of stroke color from parent elements ([#804](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F804)), thanks to [@erikgaas](https:\u002F\u002Fgithub.com\u002Ferikgaas)","2025-12-30T22:56:59",{"id":239,"version":240,"summary_zh":241,"released_at":242},315603,"0.12.36","### Bugs Squashed\n\n- Bump toast z-index to 1090 so toasts appear above modals ([#807](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F807)), thanks to [@erikgaas](https:\u002F\u002Fgithub.com\u002Ferikgaas)\n- Fix StreamingResponse handling in `_resp` ([#792](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F792)), thanks to [@kenfj](https:\u002F\u002Fgithub.com\u002Fkenfj)\n- Add `get_client` ([#800](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F800))\n- Handle str in `show` ([#796](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F796))\n\n### Bugs Squashed\n\n- Use updated railway return val ([#798](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F798))\n- Only strip newlines when parsing strings ([#797](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F797)), thanks to [@johnowhitaker](https:\u002F\u002Fgithub.com\u002Fjohnowhitaker)\n- Fix StreamingResponse handling in `_resp` ([#792](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F792)), thanks to [@kenfj](https:\u002F\u002Fgithub.com\u002Fkenfj)","2025-12-08T01:35:28",{"id":244,"version":245,"summary_zh":246,"released_at":247},315604,"0.12.34","### New Features\n\n- Add `get_client` ([#800](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F800))\n- Handle str in `show` ([#796](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F796))\n\n### Bugs Squashed\n\n- Use updated railway return val ([#798](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fissues\u002F798))\n- Only strip newlines when parsing strings ([#797](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F797)), thanks to [@johnowhitaker](https:\u002F\u002Fgithub.com\u002Fjohnowhitaker)\n- Fix StreamingResponse handling in `_resp` ([#792](https:\u002F\u002Fgithub.com\u002FAnswerDotAI\u002Ffasthtml\u002Fpull\u002F792)), thanks to [@kenfj](https:\u002F\u002Fgithub.com\u002Fkenfj)","2025-11-19T00:06:10"]