Title: Intelligent RAM/CPU allocation for E2B sandboxes
Description
Implement a resource allocation strategy to recommend or set E2B sandbox CPU and memory parameters based on repository characteristics (framework, package size, presence of Next.js, etc.). Expose the strategy in the deploy API and UI so users can accept recommended resources.
Expected outcome
- New helper in
lib/deployer that returns recommended cpu and memory values.
- Deploy route and UI include the recommendation and pass chosen values to E2B create call.
Difficulty
Hard
Relevant files
lib/deployer.ts
app/api/deploy/route.ts
templates/web-runtime/*
Title: Intelligent RAM/CPU allocation for E2B sandboxes
Description
Implement a resource allocation strategy to recommend or set E2B sandbox CPU and memory parameters based on repository characteristics (framework, package size, presence of Next.js, etc.). Expose the strategy in the deploy API and UI so users can accept recommended resources.
Expected outcome
lib/deployerthat returns recommendedcpuandmemoryvalues.Difficulty
Hard
Relevant files
lib/deployer.tsapp/api/deploy/route.tstemplates/web-runtime/*