跳到正文
Simon Willison·· 7 天前AI 評分40

Datasette Apps 0.4a0 加入應用程式連結支援

datasette-apps 0.4a0

AI 導讀

Datasette Apps 0.4a0 加入連結支援,應用程式可透過 URL 的 #fragments 接收並使用連結資料。支援的 URL scheme 亦會回傳給 Datasette Agent,協助編寫可互相連結的應用程式。這讓一個應用程式可搜尋記錄,並連結至另一個應用程式中的相應記錄頁面。

正文

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.

來源:Simon Willison · simonwillison.net