Crates.io | anytype_rs |
lib.rs | anytype_rs |
version | 0.0.3 |
created_at | 2025-06-23 06:34:26.584879+00 |
updated_at | 2025-07-07 00:00:20.697394+00 |
description | A Rust client library and CLI for the Anytype API |
homepage | |
repository | https://github.com/lanesawyer/anytype_rs |
max_upload_size | |
id | 1722420 |
size | 279,200 |
A Rust library and CLI tool for interacting with your local Anytype application via its API.
THIS IS CURRENTLY ALL VIBE CODED AND SHOULD NOT BE TRUSTED. It is not comprehensive and I wouldn't run it on any spaces you care about. It will be improved over time, but for now, it is just a starting point. Created with Claud Sonnet 4 (Preview) in GitHub Copilot.
This project provides a Rust interface to interact with Anytype's local API server, which runs in your Anytype app at http://localhost:31009
. It's a single crate that provides both a library for programmatic access and a command-line interface for direct usage.
You can download the crate from crates.io.
This is a single crate with two main modules:
src/api/
: Core library for interacting with the Anytype APIsrc/cli/
: Command-line interface that uses the API moduleThere is also a tests
directory for integration tests that cover both the library and CLI functionality, but they're all vibe coded right now and probably useless.
This project provides bindings to the Anytype API and a CLI tool to interact with it. See the sections below for current state of the API implementation.
The following lists the currently implemented endpoints for the 2025-05-20 API version.
The ✅ means it's been vibe coded. I still need to go through and verify each of the ✅ endpoints, but the basics are there. They might be missing some functionality but the basics worked.
❌ means it has not been implemented yet in any fashion.
git clone <repository-url>
cd anytype_rs
cargo build --release
The CLI binary will be available at target/release/anytype
.
cargo install anytype_rs
This will install the anytype
binary to your Cargo bin directory.
The CLI provides a way to interact with the available Anytype API endpoints directly from the terminal.
Use the --help
flag to see the available commands and how to use them.
Install the library from Crates.io by adding anytype_rs
to your Cargo.toml
.
This client is designed to work with your local Anytype application. Make sure:
http://localhost:31009
You can verify your local Anytype API is accessible by running the authentication status command:
# Or use the CLI to check status
anytype auth status
The CLI stores configuration in your system's standard config directory:
~/.config/anytype-cli/
~/Library/Application Support/anytype-cli/
%APPDATA%\\anytype-cli\\
API keys are stored securely in this directory.
cargo test
# For the CLI
anytype --debug auth status
# For library development
RUST_LOG=debug cargo run