免费赠送软件
Giving Software Away for Free

原始链接: https://simonwillison.net/2025/Apr/28/give-it-away-for-free/

对于创建永久免费且可访问的软件来说,从信誉良好的免费网络主机提供静态HTML和JavaScript是理想的解决方案。WebAssembly,特别是结合Pyodide之类的工具,扩展了客户端应用程序(包括Python程序)的可能性。这种方法消除了与服务器端应用程序、域名续费甚至预算型托管计划相关的持续维护和成本负担。2025年最佳选择是GitHub Pages,它为公共仓库提供免费托管,并拥有久经考验的URL稳定性记录。在开放源代码许可下发布软件至关重要,但可访问性同样重要。提供指向正在运行的应用程序的直接链接,以确保用户可以轻松地从您的工作中受益。这种方法最大限度地提高了长期可访问性,并消除了持续维护的需要,让您可以为世界做出贡献,然后继续进行其他项目。

Hacker News 的讨论围绕着 Simon Willison 的一篇文章展开,该文章提倡将静态 HTML 和 JavaScript 托管在 GitHub Pages 等免费平台上,作为分发免费软件的最佳方式。论点集中在可访问性、易用性和长期稳定性上。一些评论者认为,对于简单的客户端应用程序和让更广泛的受众访问软件来说,这种方法是理想的,但另一些人则认为,对于库、需要离线访问的软件或依赖于复杂服务器端功能的项目来说,这种方法并不适用。还有人担心 GitHub 受微软所有,以及 URL 损坏的可能性(正如一位用户在其旧 GitHub Pages 重定向的经历中所指出的那样)。 讨论还涉及使用 WebAssembly (WASM) 和 Pyodide 在客户端运行 Python 代码,一些人引用了 `lite.datasette.io` 等成功的项目。然而,也提到了 GitHub Pages 无法设置自定义标头以及在本地运行代码相关的安全问题等限制。尽管存在潜在缺点,但跨平台兼容性和无摩擦的用户体验的吸引力被强调为静态 HTML/JS 方法的关键优势。
相关文章

原文

If you want to create completely free software for other people to use, the absolute best delivery mechanism right now is static HTML and JavaScript served from a free web host with an established reputation.

Thanks to WebAssembly the set of potential software that can be served in this way is vast and, I think, under appreciated. Pyodide means we can ship client-side Python applications now!

This assumes that you would like your gift to the world to keep working for as long as possible, while granting you the freedom to lose interest and move onto other projects without needing to keep covering expenses far into the future.

Even the cheapest hosting plan requires you to monitor and update billing details every few years. Domains have to be renewed. Anything that runs server-side will inevitably need to be upgraded someday - and the longer you wait between upgrades the harder those become.

My top choice for this kind of thing in 2025 is GitHub, using GitHub Pages. It's free for public repositories and I haven't seen GitHub break a working URL that they have hosted in the 17+ years since they first launched.

A few years ago I'd have recommended Heroku on the basis that their free plan had stayed reliable for more than a decade, but Salesforce took that accumulated goodwill and incinerated it in 2022.

It almost goes without saying that you should release it under an open source license. The license alone is not enough to ensure regular human beings can make use of what you have built though: give people a link to something that works!

联系我们 contact @ memedata.com