Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sloki

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sloki

A NodeJS server for LokiJS

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Sloki (WORK IN PROGRESS)

A NodeJS Server for LokiJS

Join the chat at https://gitter.im/sloki-server/community alt CI-badge npm version Known Vulnerabilities Dependencies Dev Dependencies

Overview

Sloki make LokiJS scalable.

  • It embed LokiJS
  • It expose a JSONRPC API, thanks to Jayson
  • It WILL support TCP/TLS
  • It MAY support HTTP/HTTPS
                                          JSONRPC (jayson)
                                         TCP|TLS|HTTP|HTTPS

        +----------------------------+                         +----------------------------------+
        |                            |                         |          sloki           |
        |       NodeJS Daemon        |<----------------------->|        (Local or Remote)         |
        |                            |                         |                                  |
        +----------------------------+                         |    +------------------------+    |
                                                               |    |                        |    |
        +----------------------------+                         |    |                        |    |
        |                            |                         |    |                        |    |
        |       NodeJS Daemon        |<----------------------->|    |         LokiJS         |    |
        |                            |                         |    |       (database)       |    |
        +----------------------------+                         |    |                        |    |
                                                               |    |                        |    |
        +----------------------------+                         |    +------------------------+    |
        |                            |                         |                                  |
        |           CLI              |<----------------------->|                                  |
        |                            |                         |                                  |
        +----------------------------+                         +----------------------------------+

Installation

  • npm install -g sloki

Usage

  • sloki
  • sloki --help

Client

See https://github.com/sloki-project/sloki-node-client

Benchmarks

See https://github.com/sloki-project/sloki-benchs

Development status

Legends
IconDescription
:heavy_check_mark:implemented
:heavy_plus_sign:in progress/MUST be implemented
:red_circle:does NOT make sens in sloki, will NOT be implemented
:question:MAY be implemented
Transports

StatusTransportNotes
:heavy_check_mark:TCPPersistant connection
:heavy_plus_sign:TLSPersistant connection
:question:HTTP
:question:HTTPS

Methods: client and server related

StatusCommandParameterDescription
:heavy_check_mark:quitdisconnect (TCP/TLS clients only)
:heavy_check_mark:shutdownshutdown sloki
:heavy_check_mark:memoryreturn sloki memory usage
:heavy_check_mark:clientsreturn TCP/TLS connected clients
:heavy_check_mark:maxClientsreturn TCP/TLS maxClients
:heavy_check_mark:maxClientsmaxClientsset TCP/TLS maxClients
:heavy_check_mark:commandsreturn available commands

Methods: database related

Loki Class (Database) documentation

StatusCommandParameter(s)Description
:heavy_check_mark:loadDatabasedatabaseName,[options]select (and load if needed) a database
:heavy_check_mark:dbreturn current database name (sloki specific)
:heavy_check_mark:listDatabasesreturn available databases
:heavy_check_mark:saveDatabasetrigger manual saving of the selected database
:heavy_check_mark:listCollectionsreturn available collections in selected database
:heavy_check_mark:addCollectionoptionsadd a collection in selected database
:heavy_check_mark:getCollectioncollectionNamereturn collection properties in selected database
:heavy_plus_sign:removeCollectioncollectionNameremoves a collection from the selected database
:heavy_plus_sign:renameCollectionoldName, newNamerenames an existing collection in the selected database
:question:clearChangesclears all the changes in all collections of selected database
:question:closeclose selected database
:question:configureOptionsoptionsreconfigure selected database options
:question:copyoptionscopy selected database into a new Loky instance
:question:deleteDatabasedelete selected database
:question:getCollectioncollectionNameRetrieves reference to a collection by name
:red_circle:deserializeCollectionsee LokiJS Class documentation
:red_circle:deserializeDestructuredsee LokiJS Class documentation
:red_circle:generateChangesNotificationsee LokiJS Class documentation
:red_circle:loadDatabasesee "use" command
:red_circle:loadJSONsee LokiJS Class documentation
:red_circle:loadJSONObjectsee LokiJS Class documentation
:red_circle:serializesee LokiJS Class documentation
:red_circle:serializeChangessee LokiJS Class documentation
:red_circle:serializeCollectionoptionssee LokiJS Class documentation
:red_circle:serializeDestructuredoptionssee LokiJS Class documentation
:red_circle:throttledSaveDrainsee LokiJS Class documentation

Methods: collection related

Loki Collection documentation

StatusCommandParameter(s)Description
:heavy_check_mark:getcollectionName, lokiIdreturn a document by his id
:heavy_check_mark:insertcollectionName, documentinsert a document
:heavy_check_mark:updatecollectionName, documentupdate a document
:heavy_check_mark:removecollectionName, document or idremove a document
:heavy_check_mark:findcollectionName, filterfind document(s)

Benchmarks

StatusTransportNotes
:heavy_plus_sign:TCPPersistant connection
:heavy_plus_sign:TLSPersistant connection
:question:HTTP
:question:HTTPS

Tools

StatusToolNotes
:heavy_plus_sign:CLICLI using TCP transport

Improvements on top of LokiJS

StatusImprovementNotes
:heavy_plus_sign:AuthenticationOptional authentication layer (all transports)


Server options

TODO

Keywords

FAQs

Package last updated on 09 Feb 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc