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

    datasette-charts 0.1a0

    中文摘要

    中文摘要待更新

    英文原文

    Release: datasette-charts 0.1a0 I've been thinking about this problem for over a year now, but on Sunday I finally fired up Claude Fable 5.2 to build an initial prototype. The prototype went so well that this is now a full plugin. You can try it out in Datasette Lite here . It looks like this: The new charts plugin works against any table or arbitrary SQL query in Datasette. It defines several different chart types (using vendored D3 , Observable Plot , and topojson-client ), each with a set of heuristics for identifying when they might be a good match for a specific set of rows. Those suggestion thumbnails at the top are actual visualizations driven by the data, and selecting one pulls up the full chart along with tools for modifying it. You can also manually construct a chart from scratch. As with other Datasette visualization plugins, the current state of your chart is persisted in a #fragment in the URL - so you can bookmark charts or share them with others. The most important feature is that the charts take all rows into account . Previous charting plugins like datasette-vega would only show charts for the current page of results, generally up to 100 rows. The new plugin compi

  1. Simon Willison

    datasette-arrows 0.1a0

    中文摘要

    发布:datasette-arrows 0.1a0 Datasette 1.0a43 添加了插件实现流式导出格式的功能。Datasette 核心支持流式 CSV 和 TSV - 你可以从一个表中导出数百万行数据,而无需将所有数据加载到内存中,因为这两种文件格式支持分块流式数据。register_output_renderer() 插件钩子现在可以用于为其他格式实现相同的模式。我学到的教训是,永远不要在没有配套插件的情况下发布新的插件功能。Claude Fable 5.2 建议将 Apache Arrow 流式格式作为一个好的选项,并几乎一次性地构建了这个插件。将插件添加到 Datasette(datasette install datasette-arrows)后,导出对话框将获得这个新的 Arrow 选项:此截图来自 Datasette 的主分支 - 最近的发布版本尚未将 Arrow 等流式格式与 TSV 和 CSV 一起分组在“此表中的所有行”部分中,但这将在下一个 alpha 版本中实现。标签:datasette,projects

    英文原文

    Release: datasette-arrows 0.1a0 Datasette 1.0a43 added the ability for plugins to implement streaming export formats. Datasette core supports streaming CSV and TSV - you can export millions of lines of data from a table without needing to load it all into memory, because those two file formats support streaming data in chunks. The register_output_renderer() plugin hook can now be used to implement the same pattern for other formats. I've learned never to release a new plugin feature without accompanying it with a plugin that uses it. Claude Fable 5.2 suggested the Apache Arrow streaming format as a good option, and built this plugin in almost a single shot. Add the plugin to Datasette ( datasette install datasette-arrows ) and the export dialog gains this new Arrow option: This screenshot is from Datasette's main branch - the most recent release doesn't yet group streaming formats such as Arrow with the TSV and CSV in the "All rows in this table" section, but that's coming in the next alpha release. Tags: datasette , projects

  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

    llm 0.37.2

    中文摘要

    发布:llm 0.37.2 修复了 Daniel de Araujo 报告的安全问题,问题编号为 GHSA-v9h7-jj4g-f862 和 GHSA-r639-rr7r-x72w。LLM 有一个名为 extra-openai-models.yaml 的机制 - 现在由 0.37 版新增的 llm openai 端点添加命令进行管理 - 用于通过其他提供商的 OpenAI 兼容 API 端点使用 LLM。Daniel 报告了两种方式,这可能导致您的配置 OpenAI API 密钥意外发送到其中一家提供商:如果由 api_key_name 指定的密钥从未被存储,或者如果使用 -o chat_completions 1 运行了 responses: true 模型。标签:项目,安全,llm,发布

    英文原文

    Release: llm 0.37.2 Fixes a security issue reported by Daniel de Araujo in GHSA-v9h7-jj4g-f862 and GHSA-r639-rr7r-x72w . LLM has a mechanism called extra-openai-models.yaml - now managed by the new-in-0.37 llm openai endpoint add command - for using LLM with OpenAI-compatible API endpoints from other providers. Daniel reported two ways this could accidentally send your configured OpenAI API key to one of those providers: if the key named by api_key_name had never been stored, or if a responses: true model was run with -o chat_completions 1 . Tags: projects , security , llm , releases

  1. Simon Willison

    Locating the source of a mysterious beep with Claude

    中文摘要

    我们的房子有一个盒子房,里面堆满了我们上次搬家后还没拆开的纸箱。几周前,这个房间内开始间歇性地发出哔哔声。这些哔声间隔时间较长,站在房间里试图确定声音的来源让人感到很沮丧,而我真的不想一个一个地翻看那些箱子。因此我让Claude Code帮忙开发了“哔声定位器”(Beep Locator),这是一个软件系统,可以通过放置在房间各处的多个设备来三角定位神秘哔声的来源。这是“哔声定位器”运行一段时间后的样子:你运行一个Python网络服务器来显示主界面,然后使用二维码或网址连接尽可能多的设备作为监听器——我用了两台iPad、一部手机、一台MacBook Pro和一台Surface Ultra。这些设备会彼此播放声音以帮助估算它们的位置。这并没有特别有效,所以我添加了一个“粗略模式”,你可以拖动它们的图标在空间中大致定位,然后根据这些声音进行调整。一旦设置完成,所有设备都会开始监听哔声!我还添加了一个拍手模式,这样我就可以通过拍手来测试它。

    英文原文

    Our house has a box room, full of boxes that we still haven't unpacked from our last move. A couple of weeks ago something in that room started intermittently beeping . The beeps were far enough apart that standing in the room and trying to determine the source of the noise was frustrating, and I really didn't want to dig through every one of those boxes. So I had Claude Code build Beep Locator , a software system for triangulating the source of a mysterious beep using multiple devices scattered around the room. Here's what Beep Locator looks like after it has been running for a while: You run Python web server to show the primary UI, and then use the QR code or URL to connect as many devices as you can spare to act as listeners - I was using two iPads, a phone, a MacBook Pro and a Surface Ultra. The devices then play noises to each other to help estimate their locations. This didn't work particularly well, so I added a "Rough mode" where you can drag their icons around in the space to provide rough locations which are then adjusted based on those sounds. Once that's set up, the devices all listen for the beep! I added a clapping mode too so I could test it by clapping my hands in

  1. Simon Willison

    datasette-agent 0.5a0

    中文摘要

    发布:datasette-agent 0.5a0 这是Datasette Agent的一个重要版本。最引人注目的新功能称为“面板”——它可以让代理进行聊天,然后与Datasette中的页面(例如表格或查询页面)并排显示。当与datasette-apps结合使用时,这意味着你可以通过数据库支持的应用程序生成一个应用程序,然后从与该应用程序并排的聊天中对其进行修改。你可以通过使用GitHub帐户登录agent.datasette.io来尝试它。标签:项目,datasette-agent,datasette

    英文原文

    Release: datasette-agent 0.5a0 This is a significant release of Datasette Agent . The most notable new feature is called the panel - it lets the agent chat open and then sit next to pages from Datasette, for example a table or query page. When combined with datasette-apps this means you can prompt a database-backed app into existence and then modify it from the chat that sits next to that app. You can try it by signing in with your GitHub account to agent.datasette.io . Tags: projects , datasette-agent , datasette

  1. Simon Willison

    llm 0.37

    中文摘要

    发布:llm 0.37 这次我的LLM CLI工具和Python库的新版本包含了很多内容,代表了大约两个月积累的功能和修复。我添加了gpt-6.1-sol和gpt-6.1-terra,还新增了一个llm openai端点添加命令,以更方便地配置使用OpenAI兼容端点的其他模型。如果尚未设置自己的默认模型,我将默认模型切换为gpt-6-luna——其价格是之前默认模型gpt-5.6-luna的一半。LLM对嵌入(embeddings)的支持现在可以接受不同的二进制内容可能具有不同的内容类型——这对于像Gemini Embedding 2这样的模型来说是必要的,因为它可以嵌入文本、音频、图像和视频。很多开源维护者都抱怨AI辅助的PR(Pull Request)泛滥。LLM是我受影响最严重的项目,说实话,我并没有觉得这是个问题。这主要是因为我有Opus 5.5或GPT-6 Astra帮助我进行分类,以发现最有用的修复!此版本包含了来自12位作者的修复——几乎全部都是AI辅助的——而审查它们的负担远没有我预期的那么大。我真的把这些看作是带有附加示例的错误报告——有时我会合并它们,有时我会

    英文原文

    Release: llm 0.37 There's a lot of stuff in this new release of my LLM CLI tool and Python library, representing around two months of accumulated features and fixes. I added gpt-6.1-sol and gpt-6.1-terra , plus a new llm openai endpoint add command to make it easier to configure additional models that use OpenAI-compatible endpoints. I switched the default model (if you have not set your own default) to gpt-6-luna - half the price of the previous default, gpt-5.6-luna . LLM's support for embeddings now accepts that different binary content may have different content-type - necessary for models like Gemini Embedding 2 , which can embed text, audio, images, and video. A lot of open source maintainers complain about a flood of AI-assisted PRs. LLM is my project that has been most affected by this and, to be honest, I'm not finding it to be a problem. That's mainly because I have Opus 5.5 or GPT-6 Astra help me with triage to spot the most useful fixes! This release includes fixes from 12 authors - almost all AI-assisted - and the burden of reviewing them wasn't nearly as great as I expected. I really see them as bug reports with attached examples - sometimes I land them, sometimes I i

  1. Simon Willison

    battledrones v14: Compass Rose, a four player map

    中文摘要

    发布:Battledrones v14:指南针玫瑰,一个四名玩家的地图。我为Battledrones增加了四名玩家的在线模式——之前的地图最多只支持两人。这是最初使用的提示:为四名玩家的战斗添加一个新地图——四向旋转对称,最多四名AI玩家,适用于基于WebSocket的非音频多人游戏模式,因此最多四名人类玩家可以加入(任何空余位置将使用AI)。Claude Opus 5.5添加了一个名为“指南针玫瑰”的新地图,并修改了WebSocket多人游戏网络代码,以支持该地图最多四名玩家通过分享链接或二维码加入。新队伍使用以紫色和绿色为主题的机器人,加入现有的蓝色和红色设计。你可以在更新的模型浏览器中预览这些颜色。这里有一个重放链接,可以观看四名AI玩家之间的战斗,其中“巨人舰队”变异器已开启,每方开始时都有四个巨大的巨人机甲单位。标签:游戏设计,项目,Claude

    英文原文

    Release: battledrones v14: Compass Rose, a four player map I added four player online mode to Battledrones - previous maps were limited to two. Here's the initial prompt I used: Add a new map for a four player battle - four way rotational symmetry, up to four AI players, works with the WebSocket non-audio based multiplayer mode so up to four human players can join (any spare slots use AI) Claude Opus 5.5 added a new map called "Compass Rose" and modified the WebSockets multiplayer network code to support up to four players for that map, joining via share links or QR codes. The new teams use robots themed in purple and green, joining the existing blue and red designs. You can preview those colors in the updated model browser . Here's a replay link to watch a four way AI battle with the "Goliath Armada" mutator turned on, where each side starts with four giant Goliath mech units. Tags: game-design , projects , claude

  1. Simon Willison

    Battle Drones - a vibe coded RTS with audio-based multiplayer

    中文摘要

    我最新的情绪编码游戏实验是一款名为《战斗无人机》(在这里玩)的即时战略(RTS)游戏,风格类似《命令与征服》。与我之前的实验不同,这个游戏真的很好玩。我有点不好意思承认,我是通过告诉Claude“让它变得有趣得多”才做到这一点的。它还支持通过音频在附近的设备之间进行多人游戏,以同步游戏状态!这是我到目前为止所构建的内容,以及我在过程中学到的一些东西。《战斗无人机》 我是如何构建这个v1版本的:最初的原型 v2:完整的角色图像 v3:多样的地形 v4:有趣的更新 v5:《战斗无人机》进入3D时代 v8:群岛 v10:《巨人》,以及代理战斗 代理战斗 v11:随机地图 v12:通过声音进行多人游戏 一些想法 更新:在线多人游戏支持 《战斗无人机》 我最初的目标是开发一款我可以在手机上玩的即时战略游戏,风格类似《命令与征服》。我对1995年的原版游戏有美好的回忆(我也喜欢《红色警戒》),我想重新找回一点魔法。经过12次主要的迭代(以及由编码代理编写的321次提交,主要是Claude Code),我现在有一个基于浏览器的游戏,可以在移动设备和桌面设备上运行,有多种游戏模式,以及几张地图(包括随机地图)

    英文原文

    My latest vibe coded game experiment is a Command & Conquer style RTS (Real Time Strategy) game called Battle Drones ( play it here ). Unlike my previous experiments , this one is actually fun to play . I'm somewhat embarrassed to admit that I got there by telling Claude to "Make it a LOT more fun". It also supports multiplayer between nearby devices using audio to synchronize game state! Here's what I've built so far, and some of the things I learned along the way. Battle Drones How I built this v1: the initial prototype v2: full sprites v3: varied terrain v4: the fun update v5: Battle Drones goes 3D v8: Archipelago v10: Goliath, and agent battles Agent battles v11: Random Maps v12: Multiplayer via sound Some thoughts Update: Online multiplayer support Battle Drones My initial goal was to build an RTS game I could play on my phone, in the style of Command & Conquer . I have fond memories of the 1995 original (I liked Red Alert too) and wanted to recapture a little bit of the magic. After 12 major iterations (and 321 commits by coding agents, mainly Claude Code) I now have a browser-based game that works on mobile and desktop, has multiple play modes, several maps (including a rand

  1. Simon Willison

    web-edit 0.1a2

    中文摘要

    发布:web-edit 0.1a2 web-edit(之前)是我的一个小型网络应用,用于浏览和编辑文件夹中的文件。我主要是为了通过Tailscale在不同机器上编辑文件而开发了它。我为文本和图像数据添加了“复制到剪贴板”的选项。我需要这个功能是因为我正在用手机运行pelican提示(这里是DeepSeek 4.1 Flash 1017),并且我想有一种简便的方法将生成的日志复制到Gist中。标签:项目,pelican-riding-a-bicycle,deepseek

    英文原文

    Release: web-edit 0.1a2 web-edit ( previously ) is my tiny web app for browsing and editing files in a folder. I mainly built it for editing files on different machines via Tailscale. I added a "copy to clipboard" option for both text and image data. I needed this because I was running pelican prompts on a laptop from my phone (here's DeepSeek 4.1 Flash 1017 ) and I wanted an easy way to copy the resulting logs into a Gist. Tags: projects , pelican-riding-a-bicycle , deepseek

  1. Simon Willison

    web-edit 0.1a1

    中文摘要

    发布:web-edit 0.1a1 包括由 Claude Opus 5.5 编写的性能优化,在我将其提供给 GPT-6 Astra 生成的 Python 3.15 分析报告之后。标签:分析,项目

    英文原文

    Release: web-edit 0.1a1 Includes performance optimizations written by Claude Opus 5.5 after I fed it this Python 3.15 profiling report generated by GPT-6 Astra. Tags: profiling , projects

  1. Simon Willison

    web-edit 0.1a0

    中文摘要

    发布:web-edit 0.1a0 我在使用Codex Remote通过手机进行一个项目时,发现自己想要编辑一个凭据文件,而不想通过LLM本身来回传输这些凭据。因此……我让Codex和GPT-6 Astra Extra High构建了一个Python网络应用,该应用提供了一个网络界面,用于查看和编辑文件夹中的文件。该应用旨在通过Tailscale运行,这样我可以启动一个代理运行它,然后通过我的Tailscale网络直接从手机编辑文件。这是浏览文件夹中文件的界面:编辑功能使用了CodeMirror 6——我原本打算使用Monaco,但目前它在移动设备上的体验还不是很好。标签:项目,python,人工智能,tailscale,生成式人工智能,大语言模型,codex

    英文原文

    Release: web-edit 0.1a0 I was working on a project from my phone using Codex Remote when I found myself wanting to edit a credentials file without round-tripping those credentials through the LLM itself. So... I had Codex and GPT-6 Astra Extra High build this Python web app which provides a web UI for viewing and editing files in a folder. It's intended to be run over Tailscale, so I can have an agent start this running and then edit files via my Tailscale network directly from my phone. Here's the interface for browsing files in a folder: Editing uses CodeMirror 6 - I was going to use Monaco but that still doesn't have a great mobile experience yet. Tags: projects , python , ai , tailscale , generative-ai , llms , codex

  1. Simon Willison

    ttok 1.0

    中文摘要

    发布:ttok 1.0 我发布了 ttok 0.4,运行了 uv 工具升级 ttok,将一个文件输入新版本……然后意识到它默认使用了 GPT-4 的分词器,而它应该非常明确地默认使用 GPT-5/GPT-6!我认为更改默认设置是一个合理的理由,终于发布了 1.0 版本。OpenAI 尚未确认 GPT-6 是否使用与 GPT-5 系列相同的分词器——对此有一个愤怒的议题——但我找到了 William Liu 的一个提交,报告了他进行的一个实验,确认分词器可能是相同的:所有七个 GPT 模型(5.5、5.6 Sol/Terra/Luna、6 Astra/Sol/Luna)报告了 44,794 个标记,并在所有 31 个测试用例中彼此匹配。GPT-6 在此语料库上没有引入输入计数的变化。标签:项目、人工智能、OpenAI、生成式人工智能、大语言模型、分词

    英文原文

    Release: ttok 1.0 I released ttok 0.4 , ran uv tool upgrade ttok , piped a file into the new version... and realized that it was defaulting to the GPT-4 tokenizer when it should very clearly default to GPT-5/GPT-6 instead! I figured switching the default was a reasonable excuse to finally ship a 1.0. OpenAI haven't actually confirmed that GPT-6 uses the same tokenizer as the GPT-5 family yet - there's an angry issue about it - but I found this commit by William Liu which reports on an experiment he ran confirming that the tokenizers are likely the same: All seven GPT models (5.5, 5.6 Sol/Terra/Luna, 6 Astra/Sol/Luna) report 44,794 tokens and match each other on every one of the 31 fixtures. GPT-6 introduces no input-count change on this corpus. Tags: projects , ai , openai , generative-ai , llms , tokenization

  2. Simon Willison

    ttok 0.4

    中文摘要

    发布:ttok 0.4 ttok 是我用于统计 token 的 CLI 工具,使用了 OpenAI 的开源 tiktoken 库。它已经有几年没有更新了,但我终于修复了一个 Click 警告,更新了 CI,并添加了一个 --list-models 命令来列出可用的模型。它与 uvx 兼容,因此你可以像这样在任何东西中统计 token:cat file.txt | uvx ttok 标签:项目,人工智能,OpenAI,生成式人工智能,大语言模型,分词

    英文原文

    Release: ttok 0.4 ttok is my CLI tool for counting tokens, using OpenAI's open source tiktoken library. It hasn't been in updated in a couple of years, but I finally fixed a Click warning, updated CI, and added a --list-models command to list available models. It works with uvx , so you can count tokens in anything like this: cat file.txt | uvx ttok Tags: projects , ai , openai , generative-ai , llms , tokenization

已经到底了