How apify/actor-templates works
This repository is a catalog of Apify Actor starter templates, rather than a single running application. The principal workflow is that a developer uses Apify CLI to select a template, which bootstraps a project that can then run as an Actor; the README also describes fetching a template manifest through the package API. The catalog spans basic projects, web crawlers, browser automation, AI agents, MCP servers, and a Playwright test runner. Some template internals are unsampled, so their capabilities are represented without inferred call chains.
Main entry points: server.py Python MCP proxy · main.ts BeeAI agent · server.ts TypeScript MCP server · mcp_gateway.py MCP gateway
Components 29
Template catalog
- Starter projects
templates/js-start/src/main.js - Empty projects
templates/js-empty/src/main.js - Manifest API
src/index.js
Scraping and browsers
- Cheerio crawlers
templates/js-crawlee-cheerio/src/routes.js - Browser crawlers
templates/js-crawlee-playwright-chrome/src/main.js - Python crawlers
templates/python-crawlee-playwright/my_actor/main.py - Scrapy items
templates/python-scrapy/my_actor/items.py - Scrapy pipeline
templates/python-scrapy/my_actor/pipelines.py
AI agent examples
- Browser Use agent
templates/python-browseruse/my_actor/main.py - Browser configuration
templates/python-browseruse/my_actor/config.py - Signal compatibility
templates/python-browseruse/my_actor/compat.py - LangChain retrieval
templates/js-langchain/src/main.js - Vector index cache
templates/js-langchain/src/vector_index_cache.js - BeeAI agent
templates/ts-beeai-agent/src/main.ts - Structured output
templates/ts-beeai-agent/src/structured_response_generator.ts - Calculator tool
templates/ts-beeai-agent/src/tools/calculator.ts - Instagram tool
templates/ts-beeai-agent/src/tools/instagram.ts
Protocols and tools
- Python MCP proxy
templates/python-mcp-proxy/my_actor/server.py - MCP gateway
templates/python-mcp-proxy/my_actor/mcp_gateway.py - MCP event store
templates/python-mcp-proxy/my_actor/event_store.py - MCP models
templates/python-mcp-proxy/my_actor/models.py - MCP policy constants
templates/python-mcp-proxy/my_actor/const.py - TypeScript MCP server
templates/ts-mcp-proxy/src/server.ts - Message billing
templates/ts-mcp-proxy/src/billing.ts - MCP protocol handlers
templates/ts-mcp-proxy/src/mcp.ts - Playwright test runner
templates/ts-playwright-test-runner/src/main.ts - Report transformation
templates/ts-playwright-test-runner/src/transform.ts
Other components
- Developer
- Apify CLI
Connections 17
- Developer → Apify CLI: selects template
README.md - Apify CLI → Starter projects: bootstraps project
README.md - Apify CLI → Empty projects: bootstraps project
README.md - Developer → Manifest API: fetches manifest
README.md - Scrapy pipeline → Scrapy items: processes items
templates/python-scrapy/my_actor/pipelines.py - LangChain retrieval → Vector index cache: caches index
templates/js-langchain/src/main.js - BeeAI agent → Structured output: generates output
templates/ts-beeai-agent/src/main.ts - BeeAI agent → Calculator tool: invokes tool
templates/ts-beeai-agent/src/main.ts - BeeAI agent → Instagram tool: invokes tool
templates/ts-beeai-agent/src/main.ts - Python MCP proxy → MCP gateway: routes requests
templates/python-mcp-proxy/my_actor/server.py - Python MCP proxy → MCP event store: tracks events
templates/python-mcp-proxy/my_actor/server.py - Python MCP proxy → MCP models: uses models
templates/python-mcp-proxy/my_actor/server.py - Python MCP proxy → MCP policy constants: uses constants
templates/python-mcp-proxy/my_actor/server.py - MCP gateway → MCP policy constants: filters tools
templates/python-mcp-proxy/my_actor/mcp_gateway.py - TypeScript MCP server → Message billing: charges messages
templates/ts-mcp-proxy/src/server.ts - TypeScript MCP server → MCP protocol handlers: handles protocol
templates/ts-mcp-proxy/src/server.ts - Playwright test runner → Report transformation: transforms report
templates/ts-playwright-test-runner/src/main.ts