Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

anytype-ts

> 测试质量
Open source

Official Anytype client for MacOS, Linux, and Windows

8.5K stars0 likes8 views
WebsiteGitHub

About

Official Anytype client for MacOS, Linux, and Windows

Anytype Desktop

Local‑first, peer‑to‑peer & end‑to‑end‑encrypted knowledge OS for macOS, Windows & Linux. Anytype is a personal knowledge base—your digital brain—that lets you gather, connect and remix all kinds of information. Create pages, tasks, wikis, journals—even entire apps—and define your own data model while your data stays offline‑first, private and encrypted across devices.

✨ Key Features

  • Offline‑first, local storage with optional peer‑to‑peer sync.
  • Zero‑knowledge encryption powered by any‑sync.
  • Composable blocks: text, databases, kanban, calendar & custom Types.
  • Cross‑platform desktop client built with Electron + TypeScript.
  • Extensible through a gRPC API and AI "Agents" (see AGENTS.md).
  • Open code under the Any Source Available License 1.0.

Table of Contents

  • Quick Start
  • Prerequisites
  • Building from Source
  • Development Workflow
    • Updating Middleware
    • Updating Protobuf Bindings
  • Localisation
  • Contributing
  • Community & Support
  • License

Quick Start

Just want to try it? Grab the latest installer from the releases page or head to download.anytype.io and log in with your Any‑ID.

Building from Source

On ARM systems, node package keytar needs to be rebuilt during installation, so make sure that your system has a C++ compiler, Python3 and Python package setuptools. E.g. on Debian/Ubuntu: sudo apt install python3-setuptools. Alternatively, on any system, create a Python virtual environment (venv) and inside the venv: pip install setuptools. Then build from source inside the venv.

Linux also needs the protobuf compiler with the well-known .proto files (used to generate the gRPC bindings in step 5):

  • Fedora: sudo dnf install protobuf-compiler protobuf-devel jq
  • Debian / Ubuntu: sudo apt install protobuf-compiler libprotobuf-dev jq
…

Steps 3–5 produce middleware/ and src/ts/lib/api/service.ts, which are git-ignored. Skipping step 5 causes Failed to resolve import "./service" from src/ts/lib/api/dispatcher.ts. See Updating Protobuf Bindings and scripts/README.md for details.

Environment flags

Variable Effect
ELECTRON_SKIP_NOTARIZE Skip macOS / Windows signing & notarizing
ELECTRON_SKIP_SENTRY Don’t upload sourcemaps to Sentry

‍ Development Workflow

You can use nix to install all the required dependencies at once.

bash
# open a shell with all the required dependencies
nix develop --command $SHELL

Start the dev server with hot‑reload (builds Electron bundle, starts Vite, then launches Electron):

bash
bun run start:dev     # Windows: bun run start:dev-win
# add --user-data-dir=./my_dir to electron(-win) script in package.json if you want to use custom user data directory

When you close Electron, the Vite dev server is automatically stopped.

For browser-based development without Electron:

bash
bun run start:web

See Web Mode for details.

Useful commands

bash
bun run build         # Production build (Vite)
bun run build:dev     # Development build (Vite)
bun run typecheck     # TypeScript type checking
bun run lint          # Run linters (Biome + ESLint)

Environment variables

Name Purpose
SERVER_PORT Vite dev server port (default: 8080)
ANYPROF Expose Go pprof on localhost:<port>

Web Clipper Extension

Build and switch manifest for different browsers:

bash
bun run build:ext
bun run ext:manifest:firefox
bun run ext:manifest:chromium

Updating Middleware

The middleware version is pinned in middleware.version. To fetch a pre-built middleware binary and its protobuf/JSON assets:

bash
./update.sh <macos-latest|ubuntu-latest|windows-latest> <arm|amd>

This downloads the anytype-heart release matching the version in middleware.version, extracts the anytypeHelper binary into dist/, and copies protobuf definitions and generated JSON into dist/lib/.

For CI environments (requires GitHub credentials):

bash
./update-ci.sh --user=<GITHUB_USER> --token=<GITHUB_TOKEN> --os=<OS> --arch=<ARCH> --middleware-version=<VERSION>

Updating Protobuf Bindings

The TypeScript protobuf bindings (middleware/) and the gRPC service registry (src/ts/lib/api/service.ts) are generated and git-ignored — a fresh checkout has neither, and the dev/build will fail with Failed to resolve import "./service" from src/ts/lib/api/dispatcher.ts until you generate them.

From a local anytype-heart checkout (expected at ../anytype-heart, requires the Go toolchain):

bash
bun run generate:protos

Without an anytype-heart checkout (uses the .proto files downloaded by ./update.sh into dist/lib/protos/):

bash
./update.sh <macos-latest|ubuntu-latest|windows-latest> <arm|amd>
bash scripts/generate-protos.sh --from-dist

Prerequisites: bun install must have been run (for ts-proto), and protoc plus the well-known google/protobuf/*.proto files must be installed:

  • Fedora: sudo dnf install protobuf-compiler protobuf-devel
  • Debian / Ubuntu: sudo apt install protobuf-compiler libprotobuf-dev
  • macOS: brew install protobuf

The -devel / -dev package is required on Linux — without it protoc reports google/protobuf/struct.proto: File not found. See scripts/README.md for the full Linux first-time setup and troubleshooting.

Localisation

Translations live on Crowdin. Pull the latest locale files with:

bash
bun run update:locale

Contributing

We ♥ contributors! Please read our Contributing Guide and follow the Code of Conduct.

Security issues? Don’t open public issues—email [email protected] and see our Security Guide.

Community & Support

  • Forum – https://community.anytype.io
  • Docs – https://doc.anytype.io
  • Blog – https://blog.anytype.io

License

Made by Any — a Swiss association

Licensed under the Any Source Available License 1.0.

Issues· 215 open

View all issuesOpen on GitHub
  • #2381

    SpaceMakeShareable returns "space limit reached" with one owned Channel

    Updated Sep 28, 2026
  • #2215

    Object views show objects of incorrect type

    bugUpdated Sep 26, 2026
  • #1523

    Image Copy Paste support.

    enhancementUpdated Sep 25, 2026
  • #2374

    Template-specific properties

    enhancementUpdated Sep 13, 2026
  • #2377

    Cursor intermittently jumps to start of line when creating markdown headings

    bugUpdated Sep 13, 2026
  • #2376

    Feature request: Chart view for Sets and Collections (column / bar / line / donut) from property aggregates

    Updated Sep 12, 2026
  • #2351

    Add a timeline database / timeline objects (Gantt chart), and implement drag‑and‑drop support for embedding cards and objects.

    enhancementUpdated Sep 12, 2026
  • #2373

    Attachment size increase after pasting in Anytype

    bugUpdated Sep 11, 2026
  • #2372

    Discussion: replies to replies (depth ≥ 2) sync and increment unread, but are never rendered

    Updated Sep 11, 2026
  • #2371

    Add sorting options for unpinned Channels in the sidebar

    enhancementUpdated Sep 9, 2026

> Tags

TypeScriptanytypee2eelocal-firstoffline-first

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category测试质量
PricingOpen source

> Related tools

J
Jest
JavaScript 测试框架
P
Playwright
现代端到端测试框架
E
eslint-plugin-test-selectors
Enforces that data-test-id attributes are added to interactive DOM elements (JSX) to help with UI testing. JSX only.