pinafore

Alternative web client for Mastodon

  • 所有者: nolanlawson/pinafore
  • 平台:
  • 许可证: GNU Affero General Public License v3.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Pinafore Build Status

An alternative web client for Mastodon, focused on speed and simplicity.

Pinafore is available at pinafore.social. Beta releases are at dev.pinafore.social.

See the user guide for basic usage. See the admin guide if Pinafore cannot connect to your instance.

For updates and support, follow @pinafore@mastodon.technology.

Browser support

Pinafore supports the latest versions of the following browsers:

  • Chrome
  • Edge
  • Firefox
  • Safari

Compatible versions of each (Opera, Brave, Samsung, etc.) should be fine.

Goals and non-goals

Goals

  • Support the most common use cases
  • Small page weight
  • Fast even on low-end devices
  • Accessibility
  • Offline support in read-only mode
  • Progressive Web App features
  • Multi-instance support
  • Support latest versions of Chrome, Edge, Firefox, and Safari

Secondary / possible future goals

  • Support for Pleroma or other non-Mastodon backends
  • Serve as an alternative frontend tied to a particular instance
  • Support for non-English languages (i18n)
  • Offline search

Non-goals

  • Supporting old browsers, proxy browsers, or text-based browsers
  • React Native / NativeScript / hybrid-native version
  • Android/iOS apps (using Cordova or similar)
  • Full functionality with JavaScript disabled
  • Emoji support beyond the built-in system emoji
  • Multi-column support
  • Admin/moderation panel
  • Offline support in read-write mode (would require sophisticated sync logic)

Building

Pinafore requires Node.js v8+ and Yarn.

To build Pinafore for production, first install dependencies:

yarn --production --pure-lockfile

Then build:

yarn build

Then run:

PORT=4002 node server.js

Docker

To build a Docker image for production:

docker build .
docker run -d -p 4002:4002 [your-image]

Now Pinafore is running at localhost:4002.

docker-compose

Alternatively, use docker-compose to build and serve the image for production:

docker-compose up --build -d

The image will build and start, then detach from the terminal running at localhost:4002.

Updating

To keep your version of Pinafore up to date, you can use git to check out the latest tag:

git checkout $(git tag -l, sort -Vr, head -n 1)

Exporting

Pinafore is a static site. When you run yarn build, static files will be
written to __sapper__/export.

In theory you could host these static files yourself (e.g. using nginx or Apache), but
it's not recommended, because:

  • You'd have to set the CSP headers yourself,
    which are an important security feature.
  • Some routes are dynamic and need to be routed to the correct static file.

Developing and testing

See CONTRIBUTING.md for
how to run Pinafore in dev mode and run tests.

Changelog

For a changelog, see the GitHub releases.

For a list of breaking changes, see BREAKING_CHANGES.md.

What's with the name?

Pinafore is named after the Gilbert and Sullivan play. The soundtrack is very good.

主要指标

概览
名称与所有者nolanlawson/pinafore
主编程语言JavaScript
编程语言JavaScript (语言数: 5)
平台
许可证GNU Affero General Public License v3.0
所有者活动
创建于2018-01-07 05:05:53
推送于2024-09-22 21:34:50
最后一次提交2024-09-22 11:35:27
发布数116
最新版本名称v2.6.0 (发布于 2023-01-09 07:56:23)
第一版名称repro-style-issue (发布于 )
用户参与
星数1k
关注者数20
派生数179
提交数2.4k
已启用问题?
问题数770
打开的问题数163
拉请求数1409
打开的拉请求数6
关闭的拉请求数182
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?