New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

deskgraph

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deskgraph

GraphQL based HTTP Server to manage lower energy actuator systems (office desks) over bluetooth.

  • 0.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Deskgraph (deskbluez microservice)

This is a GraphQL microservice implementation of deskbluez with the goal to decouple the application backend system for ui implementations.

UNDER DEVELOPMENT

Features

  • Subscribe to desk state changes via graphQL subscriptions

  • Perform mutations: Up/Down

Requirements

Installation

$ npm install -g deskgraph

Deskbluez is not required but its necessary to configure the devices

Configuration

Deskgraph uses the same configuration manager as deskbluez, every created profile is compatible with the deskgraph as long the micro-service and the cli tool is used by the same user.

Run service

$ deskgraph

Access graphQL endpoint under: http://localhost:3000/graphql

When PLAYGROUND is enabled, the apollo-playground is accessible under /graphql

Configurations (ENVIRONMENT VARIABLES)

HTTP_PORT=XXXX (default: 3000)
PLAYGROUND=X (default: 0)

USAGE:

$ PLAYGROUND=1 HTTP_PORT=5000 deskgraph

Playground:

Playground

Query & Mutation examples

Use it Programmatically


import {NestFactory, AppModule} from "deskgraph";

async function customBootstrap() {
  const app = await NestFactory.create(AppModule);
  await app.listen(3000);
}

customBootstrap();

You can use the nestjs module separately by importing the DeskModule:

import { Module } from '@nestjs/common';
import { GraphQLModule } from '@nestjs/graphql';
import { DeskModule } from 'deskgraph';

@Module({
  imports: [
    GraphQLModule.forRoot({
      autoSchemaFile: 'schema.gql',
      installSubscriptionHandlers: true,
    }),
    DeskModule,

    /**
     * Your additional modules
     */

  ],
})
export class YourCustomNestJSModuleApplication {}

OR just use the DeskService:

import { Module } from '@nestjs/common';
import { DeskbluezService } from 'deskgraph';

@Module({
  providers: [DeskService],
})
export class MyNestJSModule {}


all you need is here, keep calm and stop being emotional, start using nestjs with typescript and don't waste your time.


FAQs

Package last updated on 10 Jan 2021

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