@le-space/ucanto-core
v10.5.1
Published
ucanto core
Maintainers
Readme
@le-space/ucanto-core
@le-space/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
ucantomodules.
How It Fits with Other Modules
@le-space/ucanto-server: Builds onucanto/coreto provide a complete UCAN-based RPC server.@le-space/ucanto-interface: Provides shared type definitions and contracts.@le-space/ucanto-transport: Implements encoding and transport mechanisms.@le-space/ucanto-principal: Handles identity management and cryptographic operations.
For an overview and detailed usage information, refer to the main ucanto README.
Installation
npm install @le-space/ucanto-coreExample Usage
import { capability, URI, Link } from '@le-space/ucanto-core';
const AddFile = capability({
can: 'file/add',
with: URI.match({ protocol: 'file:' }),
nb: { link: Link }
});For more details, see the ucanto documentation.
