This is a Next.js project integrated with Daytona Sandbox functionality, allowing you to create Sandboxes and sync files to them.
- 🚀 Create Daytona Sandbox
- 📁 Batch upload files to Sandbox
- 📊 Real-time operation logs
- 🔒 Secure API key management (server-side)
- 🎨 Modern UI interface
- Copy the environment variable example file:
cp .env.local.example .env.local- Edit the
.env.localfile and fill in your Daytona configuration:
DAYTONA_API_KEY=your_daytona_api_key_here
DAYTONA_API_URL=https://app.daytona.io/api- Visit Daytona Console
- Log in to your account
- Generate API Key in settings
- Choose appropriate target location (e.g.: us, eu, asia)
First, install dependencies:
npm install
# or
yarn install
# or
pnpm installThen, start the development server:
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 to view the application.
- Click the "🚀 Daytona Sandbox" button on the page
- Click "Create Sandbox" to create a new Sandbox
- Use "Select Files" button to choose files to upload
- Click "Upload Files" to sync files to the Sandbox
- View operation logs for detailed information
The project includes the following API endpoints:
POST /api/daytona- Create Sandbox, upload files, and other operationsGET /api/daytona- Get Sandbox information
- Next.js 15 - React framework
- Daytona TypeScript SDK - Sandbox management
- Tailwind CSS - Styling framework
- TypeScript - Type safety
The easiest way to deploy is using Vercel Platform:
- Push code to GitHub
- Import project in Vercel
- Add environment variables in Vercel project settings:
DAYTONA_API_KEYDAYTONA_API_URL
The project is configured to support Cloudflare Pages:
npm run deployMake sure to add the same environment variables in Cloudflare Pages settings.
- Next.js Documentation - Learn Next.js features and API
- Daytona Documentation - Learn Daytona Sandbox features
- Daytona TypeScript SDK - SDK reference documentation
Issues and Pull Requests are welcome!