---
stable_id: skills/skills-sh-apify-agent-skills-apify-actorization
type: skills
title: skills-sh-apify-agent-skills-apify-actorization
summary: |-
  # JavaScript/TypeScript Actorization
  ## Install the Apify SDK
  ```bash
  npm install apify
  ```
  ## Wrap main code with Actor lifecycle
  ```javascript
  import { Actor } from 'apify';
  // Initialize connection to Apify platform
  await Actor.init();
tags:
  - skills-sh
  - skills-sh-all-time
source_url: https://raw.githubusercontent.com/apify/agent-skills/HEAD/skills/apify-actorization/references/js-ts-actorization.md
license: ""
upstream_ref: https://skills.sh/apify/agent-skills/apify-actorization
github_stars: null
github_forks: null
github_is_organization: null
retrieved_at: 2026-06-11T08:32:04.427Z
content_sha256: 683336ab365ade9a8e3cc9654a8e5d9bf7c2ce43a0b7594c5ee0c895f7e7b4d6
---
