跳到正文
每分钟自动更新
  1. Simon Willison

    Running the full server-side Datasette Python app in the browser with service workers and Pyodide

    中文摘要

    Datasette Lite是我将Datasette Python应用程序移植到浏览器中运行的版本,使用的是WebAssembly和Pyodide。我使用service workers发布了Datasette Lite的完整重写版本,现在它几乎与真正的服务器端应用程序无法区分。现在你可以使用精心设计的URL lite.datasette.io完成以下所有操作:加载客户端的Datasette来浏览任何SQLite数据库、JSON文件、CSV文件或SQL脚本;从PyPI中选择一个发布的Datasette版本进行加载;从Datasette GitHub仓库中选择特定的提交、标签或分支名称;从超过100个SQLite版本中进行选择,与Datasette一起使用;从PyPI或wheel文件的URL中安装额外的Datasette插件,包括JavaScript可视化工具。能够加载特定的Datasette引用、插件和SQLite版本,使这成为一种极好的工具,可以链接到正在进行中的功能演示或错误复现,而无需启动完整的Web服务器来提供该演示。例如,考虑以下URL:https://lite.datasette.io/?install=datasette-maplibre&url=https://gist.githubusercontent.com/simonw/39fa5d399465766039549912e2b3d291/raw/f6dfba9

    英文原文

    Datasette Lite is my port of the Datasette Python application to run directly in the browser using WebAssembly and Pyodide . I've released a complete rewrite of Datasette Lite using service workers, and it's now almost indistinguishable from the real server-side application. You can now do all of the following, using a carefully crafted URL to lite.datasette.io : Load client-side Datasette to browse any SQLite database, JSON file, CSV file or SQL script Select a released version of Datasette to load from PyPI Load a specific commit, tag, or branch name from the Datasette GitHub repository Pick from over 100 versions of SQLite to use with Datasette Install additional Datasette plugins from PyPI or URLs to wheel files, including JavaScript visualization tools The ability to load specific Datasette references, plugins, and SQLite versions makes this a fantastic tool for linking to demos of work-in-progress features or bug reproductions, without needing to spin up a full web server to serve that demo. As an example, consider the following URL: https://lite.datasette.io/?install=datasette-maplibre&url=https://gist.githubusercontent.com/simonw/39fa5d399465766039549912e2b3d291/raw/f6dfba9

  1. Simon Willison

    datasette-apps 0.4a0

    中文摘要

    发布:datasette-apps 0.4a0 Datasette Apps 是在 Datasette 内部运行的沙盒 HTML 和 JavaScript 应用程序,可以看作是 Claude Artifacts,但这些应用程序可以对你的数据运行 SQL 查询。0.4a0 版本增加了对链接的支持:你可以通过 URL 中的 #fragments 来链接到一个应用,而该应用可以查看并使用这些片段,同时支持的 URL 方案会反馈给 Datasette Agent,这样它就可以帮助编写可以相互链接的应用程序。这意味着你可以拥有例如一个显示特定记录详细信息的应用程序,以及一个完全独立的用于搜索这些记录并链接到第一个应用程序中相应记录的应用程序。 标签:datasette-agent , datasette-apps , datasette , urls

    英文原文

    Release: datasette-apps 0.4a0 Datasette Apps are sandboxed HTML and JavaScript applications that live inside Datasette - think Claude Artifacts, but these ones can run SQL queries against your data. 0.4a0 adds support for linking: you can link to an app with #fragments in the URL and the app can see and use those, plus supported URL schemes are reported back to Datasette Agent so it can help write apps that link to each other. This means you can have e.g. an app that shows details about a specific record, and a completely separate app that searches those records and links to their representations in the first app. Tags: datasette-agent , datasette-apps , datasette , urls

  1. Simon Willison

    LaTeX renderer

    中文摘要

    工具:LaTeX 渲染器 受 Paul Ford 和 Aboard Foundary 新推出的网络应用 Tiny Little Office 的启发,该应用提供了一套网络应用内容编辑器(文字处理器、大纲编辑器、演示文稿构建器、电子表格、计算器、绘图工具、图表制作器、动画制作器、日历和旅行计划工具)。Tiny Little Office 的特色功能是将所有文档数据存储在 URL 的 #fragment 部分,因此使用它创建的每个文档都可以成为可书签和可分享的链接。它还有一个 llms.txt 文件,告诉代理如何构造将显示为文档的 URL。Claude 使用该文件生成了一个链接,该链接展示的是如何解释 URL 格式的幻灯片:Tiny Little Office 启发我让 Claude Code(Opus 5.5 Extra)构建一个类似的工具,该工具可以与 LaTeX 一起使用。我使用的提示序列如下:我想要一个工具,你可以通过片段哈希 #code-here 链接到它,它会将该代码视为 LaTeX 并对其进行非常有效的渲染。它还应支持一个前缀,这意味着 LaTeX 将使用为 LaTeX 优化的自定义压缩字典进行压缩。使用来自 CDN 的最佳可用 LaTeX 渲染库(也可考虑 WebAssembly)。如果未带片段加载

    英文原文

    Tool: LaTeX renderer Inspired by Paul Ford and Aboard Foundary's new web app Tiny Little Office , which provides a suite of web app content editors (a Word Processor, Outliner, Presentation Builder, Spreadsheet, Calculator, Drawing Tool, Diagram Maker, Animator, Calendar, and Trip Planner). Tiny Little Office's signature trick is to store all of the document data in the #fragment section of the URL, so every document created using it becomes a bookmarkable and shareable link. It also has an llms.txt file telling agents how to construct URLs that will render as documents. Claude used that file to generate this link to a deck that explains how the URL format works: Tiny Little Office inspired me to have Claude Code (Opus 5.5 Extra) build a similar tool that works with LaTeX. Here's the sequence of prompts I used: I want a tool where you can link to it with a fragment hash #code-here and it treats that code as LaTeX and renders it really effectively. It should also support a prefix which means the latex is compressed with a custom compression dictionary optimized for latex. Use the best available latex render library from a CDN (consider WebAssembly too). If loaded without a fragment

已经到底了