
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
ember-cli-dfinity
Advanced tools
An add-on for using the Internet Computer in your EmberJS app.
ember install ember-cli-dfinity
If you are building the app to run on the Internet Computer, then you must install the dfx-ember-webpack-plugin Webpack plugin into the dfx project so it builds the EmberJS asset canister correctly.
Actors are the primary artifacts (or components) exposed by a canister running on the Internet Computer. The actor has an interface, which represent the publicly accessible methods of the canister. When developing your own DApp, you will have a candid interface for the actor like the following:
// hello.did
service : {
greet: (text) -> (text);
}
We import this interface definition into the EmberJS application to leverage it using the following command:
ember g actor hello --declaration hello
You must run this command from an EmberJS frontend application that is located in
$DFX_ROOT/src. For example,$DFX_ROOT/src/hello_frontend.$DFX_ROOTis the root project directory of the DApp, and has thedfx.jsonfile.
This command will create a symbolic link to the JavaScript declaration in
$ROOT/app/declarations, and then define the actor hello in $ROOT/app/actors
where $ROOT is the root directory of the EmberJS frontend application.
The config/environment.js file is where you configure how the Dapp connects to the
Internet Computer. The most important section in the configuration is dfx.agents.
This is where you define different agents that canisters use to communicate. The
$default agent must always be defined. Below is an example configuration that
will use the local network. You can customize the configuration for different
environments, such as production vs test.
// config/environment.js
module.exports = function (environment) {
let ENV = {
// ...
dfx: {
canisters: {
// Optional. You can define caninsters not defined in canister_ids.json, or
// override the existing canister ids here.
},
agents: {
$default: {
host: 'http://127.0.0.1:8000',
},
},
}
};
// ...
}
Check out the dummy application in tests/dummy for an example on how to
integrate canisters from the Internet Computer into your application. We will
provide more guidance on this over the course of the project.
See the Contributing guide for details.
This project is licensed under the Apache-2.0.
FAQs
An add-on for using the Internet Computer in your EmberJS app.
The npm package ember-cli-dfinity receives a total of 1 weekly downloads. As such, ember-cli-dfinity popularity was classified as not popular.
We found that ember-cli-dfinity demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.