本周项目:Ghost
本周,我们与 Slack 的桌面工程师 Felix Rieseberg 进行了交流,他也是 Ghost Desktop 的维护者,Ghost Desktop 是 Ghost 发布平台的一个 Electron 客户端。
🌐 This week we chatted with Felix Rieseberg, desktop engineer at Slack and maintainer of Ghost Desktop, an Electron client for the Ghost publishing platform.

什么是 Ghost?
🌐 What is Ghost?
Ghost 是一个完全开源、可自定义的平台,用于创建和运营现代在线发布物。我们为从 Zappos 到天空新闻的博客、杂志和报告器提供支持。
🌐 Ghost is a fully open source, hackable platform for building and running a modern online publication. We power blogs, magazines and journalists from Zappos to Sky News.
它与其他发布平台有何不同?
🌐 What makes it different from other publishing platforms?
Ghost 成立于 2013 年 4 月,起因是一次非常成功的 Kickstarter 众筹活动,目的是创建一个专注于专业发布的新平台。我们的使命是为全球的独立报告器和作家创建最好的开源工具,并对在线媒体的未来产生真正的影响。它提供了更简洁、更专注的体验:我们的编辑器完全围绕提供最佳的写作体验而设计。
🌐 Ghost was founded in April 2013, after a very successful Kickstarter campaign to create a new platform focused solely on professional publishing. Our mission is to create the best open source tools for independent journalists and writers across the world, and have a real impact on the future of online media. It offers a simpler, more focussed experience: Our editor is designed solely around providing the best possible writing experience.
相比一直以来的经典 WordPress,它提供了更简单、更流畅的体验——更容易设置和维护,开箱即用所有重要功能,而且速度显著更快。与其他在线平台相比,Ghost 赋予作者对内容的完全所有权和控制权,允许完全自定义,并使作者能够围绕其发布内容建立业务。
🌐 Compared to the all-time classic WordPress, it offers a simpler, more streamlined experience - it is easier to setup and maintain, comes with all important features out-of-the-box, and is dramatically faster. Compared to other online platforms, Ghost gives writers full ownership and control over their content, allows full customization, and enables authors to build a business around their publication.
Ghost 是一家盈利性公司吗?
🌐 Is Ghost a for-profit company?
这一点对我们很重要:Ghost 是一个独立的非营利组织。我们为现代新闻和博客建设发布工具,因为我们相信言论自由很重要。我们的软件是在 自由开源许可证 下发布的,我们的商业模式是 完全透明的,我们的法律结构意味着我们赚取的 100% 资金都会再投资于提升 Ghost。
🌐 This one is important to us: Ghost is an independent non-profit organisation. We build publishing tools for modern journalism & blogging because we believe freedom of speech is important. Our software is released under a free open source license, our business model is completely transparent, and our legal structure means that 100% of the money we make is reinvested into making Ghost better.
什么是 Ghost Desktop?
🌐 What is Ghost Desktop?
Ghost Desktop 允许作家同时管理多个博客,并专注于写作。一些简单的功能,比如常用的写作快捷键,在浏览器中无法实现,但在我们的桌面应用中可以使用。它还允许其他应用通过深度链接直接与博客进行通信 via deeplinks。
🌐 Ghost Desktop allows writers to manage multiple blogs at once - and to focus on their writing. Simple things like common writing shortcuts can't be realized in a browser, but are available in our desktop app. It allows other applications to communicate directly with the blog via deeplinks.
什么是 Ghost for Journalism?
🌐 What is Ghost for Journalism?
今年,我们非常高兴能够将我们整个 10 人的全职 Ghost 团队全部投入到帮助三家独立发布物发展的工作中,同时为他们的努力提供 45,000 美元的资源。我们称之为 Ghost for Journalism。
🌐 This year we're very excited to be dedicating our entire 10 person full-time Ghost team to helping grow three independent publications, along with $45,000 in resources toward their efforts. We're calling it Ghost for Journalism.
我们已经用大约三年半的时间在打造 Ghost,目标是成为网络上独立发布者的下一个很棒平台,现在我们已经达到了一个非常有趣的转折点。我们开始这段旅程是为了创建一个简单、设计精美的博客平台,几乎任何人都可以使用。这一直都是第一步。
🌐 We've been building Ghost as the web's next great platform for independent publishers for about three and half years now, and we've now reached a really interesting inflection point. We started this journey to create a simple, well designed blogging platform which could be used by just about anyone. That was always going to be step one.
从长远来看,我们希望 Ghost 成为世界顶尖新闻报道的卓越平台,这意味着我们需要打造吸引这些人的功能。今年,我们非常有意识地决定专注于这一点。
🌐 Long term, we want Ghost to be an incredible platform for the world's best journalism, and that means we need to build features to attract exactly those people. This year we're making a very conscious decision to focus on just that.
为什么选择在 Electron 上构建 Ghost 桌面?
🌐 Why did you choose to build Ghost Desktop on Electron?
Ghost 在前端和后端都使用 JavaScript 和 Node.js,因此能够利用相同的技术和技能使我们的团队能够更快地推进、构建更多功能,并最终提供更好的体验。此外,能够在 macOS、Windows 和 Linux 版本的应用之间共享超过 95% 的代码,使我们能够专注于构建出色的核心用户体验,而无需为每个平台维护一个单独的代码库。
🌐 Ghost uses JavaScript and Node.js on both the backend and frontend, so being able to utilize the same technology and skillset enables our team to move faster, build more, and ultimately deliver a better experience. In addition, being able to share more than 95% of code between the macOS, Windows, and Linux version of the app allows us to focus on building a great core user experience, without having to maintain one code base for each platform.
在构建 Ghost Desktop 时,你遇到了哪些挑战?
🌐 What are some challenges you've faced while building Ghost Desktop?
拼写检查可能仍然是提供的最困难的服务之一——我们可以很容易地使用众多在线服务中的一个,但在保护用户隐私和自主权的同时,正确地对多语言文本进行拼写检查并非易事。
🌐 Spellchecking is likely still one of the most difficult services offered - we could easily utilize one of the many online services, but correctly spellchecking text in multiple languages while guarding the privacy and autonomy of our users is not an easy task.
Electron 应该在哪些方面改进?
🌐 In what areas should Electron be improved?
我们希望看到 Electron 将操作系统的本地拼写检查功能带到他们的应用中。我们梦想着一个世界,在这个世界里,<input> 字段可以享受到与 NSTextView 相同的服务,但我们也深知这是多么困难。
🌐 We would love to see Electron bring the operating system's native spellchecking capabilities to their apps. We're dreaming about a world in which an <input> field receives the same services as a NSTextView, but we are also intimately aware how difficult that is.
你最喜欢 Electron 的哪些方面?
🌐 What are your favorite things about Electron?
JavaScript 以其庞大的生态系统而闻名,涵盖了无数的工具和框架——但它带给我们的便利难以言喻。使用 Electron 构建一个应用仅比构建一个网页应用_稍微_困难一些,这本身就是一项了不起的成就。
🌐 JavaScript is famous for being a vast ecosystem, involving countless tools and frameworks - but the convenience it affords us is hard to overstate. Building an app with Electron is only slightly harder than building a web app, which is an amazing feat.
《幽灵》完成了吗?如果没有,接下来会是什么?
🌐 Is Ghost done? If not, what's coming next?
Ghost Desktop 也是一个正在进行的项目——我们离完成还有很长的路要走。我们已经讨论了一段时间,希望为用户提供完整的离线模式,而且现在已经相当接近实现了。其他值得注意的工作字段包括与其他文本编辑应用(如 Word 或 Atom)的扩展和集成,最终允许人们使用自己喜欢的工具撰写文章。总体而言,一旦我们推出了离线模式功能,我们将寻求与操作系统进行更深层次的集成。如果这听起来对你有吸引力,加入我们!
🌐 Ghost Desktop is also an ongoing project - we're pretty far from being done. We have been talking for a while about bringing a full offline mode to our users, and we're getting fairly close. Other notable work areas are the extension and integration with other text editing apps (like Word or Atom), ultimately allowing people to write posts using their favorite tools. In general, once we've shipped the offline mode feature, we're looking for deeper integration with the operating system. If that sounds interesting to you, join us!
你最喜欢的 Electron 应用有哪些?
🌐 What are some of your favorite Electron apps?
我是Kap、Felony和Visual Studio Code的忠实粉丝。
🌐 I'm a big fan of Kap, Felony, and Visual Studio Code.
👻