
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
@gapi/daemon
Advanced tools
Helps with productivity
Automatically apply schema introspection changes from graphql API to specific folders
The schema is introspected only when the API is successfully started
When API changes his
schemathe client should know about it
When You have multiple clients (mobile, desktop, web) you want to sync them according to your API Graphql Schema
To use daemon you need to activate it inside your @gapi/core => CoreModule configuration
const DEFAULT_CONFIG = {
server: {},
graphql: {},
daemon: { activated: true }
};
import { BootstrapFramework } from '@rxdi/core';
import { AppModule } from './app/app.module';
import { CoreModule, Module } from '@gapi/core';
@Module({
imports: [
CoreModule.forRoot({
server: {},
pubsub: {},
graphql: {},
daemon: { activated: true }
}),
]
})
export class FrameworkImports {}
BootstrapFramework(AppModule, [FrameworkImports]).subscribe()
gapi daemon start
gapi daemon stop
~/.gapi/daemongapi daemon clean
gapi daemon link your-link-name
gapi daemon unlink
gapi daemon unlink --all
gapi daemon link your-link-namegapi daemon link your-link-nameIf you wish to link more than one project just execute command inside other folder
gapi daemon link your-link-name
gapi-cli.conf.yml will be created if not present since daemon will trigger command using configuration from it.gapi schema introspect --collect-documents --collect-types
Read more about schema introspect
config:
schema:
introspectionEndpoint: http://localhost:9000/graphql
introspectionOutputFolder: ./src/server/api-introspection
Replace with the desired configuration
Gapi daemon has capability to load external plugins via IPFS network or using regular @gapi module example module can be found HERE
A simple plugin looks like regular @rxdi/@gapi module basically every module inside this architecture can be used as a daemon plugin.
import { Module } from '@gapi/core';
import { MainService } from './services/main.service';
import { CustomControllerController } from './custom-controller/custom-controller.controller';
@Module({
providers: [MainService],
controllers: [CustomControllerController]
})
export class AppModule {}
You can add also plugins via IPFS https://ipfs.io/ipfs/QmY74wyqeeHYVtEkChvbQypxeZd43rk77hY8yfaU16fZQ4 this is @rxdi/deploy plugin module can be found here https://ipfs.io/ipfs/QmYtvfC5cXutnH6y7nK8eGnPcAkU75DpngR3vGDk9A9KQt
gapi plugin add QmY74wyqeeHYVtEkChvbQypxeZd43rk77hY8yfaU16fZQ4
Remove
gapi plugin remove QmY74wyqeeHYVtEkChvbQypxeZd43rk77hY8yfaU16fZQ4
FAQs

The npm package @gapi/daemon receives a total of 68 weekly downloads. As such, @gapi/daemon popularity was classified as not popular.
We found that @gapi/daemon demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.