Socket
Socket
Sign inDemoInstall

hyoo_sync_client

Package Overview
Dependencies
117
Maintainers
1
Versions
416
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hyoo_sync_client

Synchronizes world state with server and local DB.


Version published
Weekly downloads
601
decreased by-16.99%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

$hyoo_sync_client

Synchronizes world state with server and local DB.

Domain Model

export class $my_person extends $hyoo_crowd_struct {

  name( next?: string ) {
    return this.sub( 'name', $hyoo_crowd_reg ).str( next )
  }

  descr( next?: string ) {
    return this.sub( 'descr', $hyoo_crowd_text ).text( next )
  }
  
  skills( next?: string[] ) {
    return this.sub( 'skills', $hyoo_crowd_list ).list( next ).map( String )
  }

}

Sync start

  const yard = new $hyoo_sync_client
  const world = yard.world()
  // ...
  yard.sync()

Make new entity

  const person = world.Fund( $my_person ).make( ... rights )
  console.log( person.id() )

Rights exaples

  • () or ( [''] ) - I'm god, others not, until I give rights
  • ( [], [], ['0_0'] ) - any one can add, but can't change other's additions
  • ( [], [''] ) - only I can change, but can't give rights to others

Use existen entity

  const person = world.Fund( $my_person ).Item( person_id )

Keywords

FAQs

Last updated on 27 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc