包详细信息

@ucanto/core

web3-storage25.9k(Apache-2.0 AND MIT)10.4.0

ucanto core

UCAN, RPC, IPLD, JWT

自述文件

@ucanto/core

@ucanto/core provides the foundational components for defining, validating, and executing UCAN-based Remote Procedure Calls (RPC). It serves as the core module for the ucanto ecosystem, enabling capability-based access control and secure interactions between clients and services.

What It Provides

  • Capability Definition & Validation: Enables the creation of structured capabilities with clear semantics.
  • UCAN Invocation Execution: Supports processing and verifying UCAN-based RPC calls.
  • Extensibility: Designed to integrate seamlessly with other ucanto modules.

How It Fits with Other Modules

For an overview and detailed usage information, refer to the main ucanto README.

Installation

npm install @ucanto/core

Example Usage

import { capability, URI, Link } from '@ucanto/core';

const AddFile = capability({
  can: 'file/add',
  with: URI.match({ protocol: 'file:' }),
  nb: { link: Link }
});

For more details, see the ucanto documentation.

更新日志

Changelog

0.1.0-beta (2022-05-03)

Features

  • improve http transport configuration (#10) (c99be08)

0.0.3-beta (2022-05-02)

Bug Fixes

0.0.2-beta (2022-04-24)

Bug Fixes

0.0.1-beta (2022-04-24)

Features

Bug Fixes

Miscellaneous Chores