Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@apify/actor-templates
Advanced tools
Readme
This repository stores boilerplate templates and code examples for Apify Actor. The template helps you to get started with your Apify project quickly.
You can start using them right away in Apify command-line interface:
npm -g install apify-cli
apify create my-actor
It displays an interactive list of templates for you to choose from. See Apify CLI documentation for more details.
To run the template:
cd my-actor
apify run
The example templates provide a quick and easy way to get to know Apify actors. Just install the CLI and watch your actor run.
You can find more code examples in the examples folder and in the Apify SDK documentation.
If you're already familiar with actors, you can use the following templates to bootstrap new projects quickly:
The template manifest can be fetched programmatically. Apify CLI uses this to always fetch the most up to date templates.
npm i @apify/actor-templates
const templates = require('@apify/actor-templates');
const manifest = await templates.fetchManifest();
All templates are stores in ./templates
directory.
For each template needs to create an archive of whole source code into ./dist/templates
directory.
The archive is used to to create a boilerplate template in apify CLI or other places in Apify system.
If you want to change template, you need to update the files and manifest.json
and then push to master. After pushing to master, the archive will be automatically built using Github actions.
Templates are propagated to Apify CLI templates, you can choose one of the templates when using the apify create
command.
The propagation happens after committing a new version of templates into master
branch. After tests succeeded the Github action
builds archives of each template and pushes these archives into the repository. The CLI command then uses those archives
to bootstrap your project folder. We did it this way because we can update template structure/code without publishing
any package to npm. It makes templates changes agile.
If you have any ideas for improvements, either submit an issue or create a pull request. For contribution guidelines and the code of conduct, see CONTRIBUTING.md.
FAQs
A manifest of Apify actor templates.
The npm package @apify/actor-templates receives a total of 1,031 weekly downloads. As such, @apify/actor-templates popularity was classified as popular.
We found that @apify/actor-templates demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.