Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@devoinc/app-developer-kit
Advanced tools
Devo Applications Development Kit is the mandatory NPM package to start building javascript web browser applications on Devo, it allows you to communicate your application with the devo web and APIs.
A Devo App is a front-end web browser extension capable of being injected and hosted into the Devo web platform as well as communicating with it and with the collection of HTTP services enabled for Devo customers.
As a main requirement for the development of applications in Devo it is necessary to have access to the platform and a domain.
Once you have access, to prepare the development environment you must install the google chrome extension "Devo Runner", you will find it here. This extension will help the developer to be able to debug and develop their application by providing a mechanism to inject it into an existing Devo client domain.
Start by installing this package in your NPM project
$ npm install @devoinc/app-developer-kit
For these applications to be compatible with Devo and Devo Runner, it will be necessary to configure the javascript bundler so that the result of its process generates a single HTML file with all the javascript code and css styles inline. For this we recommend to use Webpack 5 and the InlineChunkHtmlPlugin plugin.
A complete usage example for this package can be found in this react template.
You can find the complete reference of the development kit API here.
import {
IDevoApp,
DevoAppProvider,
UserInfo,
} from '@devoinc/app-developer-kit';
(async () => {
const dApp: IDevoApp = DevoAppProvider.init();
const userInfo: UserInfo = await dApp.getUserInfo();
console.log(userInfo);
})();
import {
IDevoApp,
DevoAppProvider,
NotipopRequest,
} from '@devoinc/app-developer-kit';
(async () => {
const dApp: IDevoApp = DevoAppProvider.init();
const notipop: NotipopRequest = {
title: 'Hello world',
text: '...',
type: 'ok',
};
dApp.createNotipop(notipop);
})();
import {
IDevoApp,
DevoAppProvider,
Query,
NotipopRequest
} from '@devoinc/app-developer-kit';
(async () => {
const dApp: IDevoApp = DevoAppProvider.init();
const query: Query = {
queryString: `
from ...
select ...
`,
dates: {
from: new Date('...').getMilliseconds(),
to: new Date('...').getMilliseconds(),
},
};
const queryClient: IQueryClient = await dApp.getQueryClient();
const queryResponse = await queryClient.runQuery(query, dates);
console.log(queryResponse);
})();
import {
IDevoApp,
DevoAppProvider,
AlertsApiClient,
} from '@devoinc/app-developer-kit';
(async () => {
const dApp: IDevoApp = DevoAppProvider.init();
const alertsClient: AlertsApiClient.IClient = await dApp.getAlertsClient('alertsApiUrl');
const alertDefinitions: AlertsApiClient.AlertDefinition = await alertsClient.getAlerts();
console.log(alertDefinitions);
})();
It is possible to initialize the IDevoApp instance to work in standalone mode, in this way, the different dependencies of the application with the Devo web core and API endpoints could be mocked. Just use the init method passing it a specific settings for the 'standaloneDependencies' field as the following example.
import {
IDevoApp,
DevoAppProvider,
WebCoreRuntimeDeps,
Dates,
} from '@devoinc/app-developer-kit';
(async () => {
class StandaloneNotipop {
constructor(request: NotiPopRequest) {
console.log(`Fake notification`, request);
}
}
const mockedUserInfo: UserInfo = {
name: 'John Doe',
email: 'a@b.com',
locale: 'en-US',
...
};
const mockedGoToQuery: (query: string, dates: Dates) => {
console.log(`Fake goToQuery. ${query} ${dates}`);
};
const dApp: IDevoApp = DevoAppProvider.init({
standaloneDependencies: {
goToQuery: mockedGoToQuery,
userInfo: mockedUserInfo,
NotiPop: StandaloneNotipop,
},
});
})();
The publishing and hosting process for these applications will be carried out by Devo employees. Please contact Devo support for this task.
FAQs
Devo Web Browser Applications Development Kit
The npm package @devoinc/app-developer-kit receives a total of 1 weekly downloads. As such, @devoinc/app-developer-kit popularity was classified as not popular.
We found that @devoinc/app-developer-kit 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.