本周项目:Ghost
本周,我们采访了 Felix Rieseberg,他是 Slack 的桌面工程师,也是 Ghost 桌面(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 到 Sky News 等博客、杂志和报告器提供支持。
¥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 是一个独立的非营利组织。我们为现代新闻和博客构建发布工具,因为我们相信言论自由至关重要。我们的软件基于 免费开源许可证 发行,我们的商业模式是 完全透明,我们的法律架构意味着我们赚到的所有钱都会重新投资于 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 允许作者同时管理多个博客 - 并专注于他们的写作。一些简单的功能,例如常用的书写快捷键,无法在浏览器中实现,但可以在我们的桌面应用中使用。它允许其他应用直接与 通过深度链接访问博客 通信。
¥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 新闻报道。
¥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 构建应用仅比构建 Web 应用稍微难一点,这是一个了不起的成就。
¥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.
Ghost 完成了吗?如果不行,下一步是什么?
¥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.
👻