@uprtcl/common
TypeScript icon, indicating that this package has built-in type declarations

0.0.2-alpha3 • Public • Published

@uprtcl/common

_Prtcl resources: Overview, Spec, Dev guide, API reference /)

This is a collection of common Cortex modules, developed as the starting point of many applications:

  • Entities reducer: redux module to hold any kind of content addressable object
  • Access Control: generic access control
  • Draft: generic providers to store drafts for any kind of content
  • Common patterns for entities that are hashed, signed...

Dependencies

This module depends on @uprtcl/micro-orchestrator, @uprtcl/cortex and @uprtcl/connections.

Install

npm install @uprtcl/common

_Prtcl module usage

Import the modules, instantiate them with their appropiate configuration, and load them:

import {
  AccessControlTypes,
  accessControlReduxModule,
  entitiesReduxModule,
  EntitiesTypes
} from '@uprtcl/common';

await orchestrator.loadModules(
  { id: EntitiesTypes.Module, module: entitiesReduxModule() },
  { id: AccessControlTypes.Module, module: accessControlReduxModule() }
);

Drafts and access control

Not yet ready

Package Sidebar

Install

npm i @uprtcl/common

Homepage

uprtcl.io

Weekly Downloads

12

Version

0.0.2-alpha3

License

MIT

Unpacked Size

355 kB

Total Files

46

Last publish

Collaborators

  • sotous
  • guillem.cordoba
  • pepoospina