
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
ChocoDrop: real-time AI image drops for 3D scenes via Model Context Protocol (MCP)
AI-powered content drops for 3D scenes via natural language あらゆる3D空間に、AIコンテンツをちょこんとドロップ
Transform any Three.js scene into an AI-powered content studio:
// Just say what you want in natural language
"猫の置物を右上に作って" → AI generates cat + places top-right
"桜を中央に配置" → Cherry blossoms appear instantly
"青いボールを大きくして" → Scales up blue ball
Works with: Three.js, React Three Fiber, A-Frame, Next.js, Vanilla HTML
git clone https://github.com/nyukicorn/chocodrop.git
<script src="https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.min.js"></script>
<script src="./chocodrop/dist/chocodrop.umd.min.js"></script>
<script>
// あなたの既存のThree.jsシーン
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(/* ... */);
const renderer = new THREE.WebGLRenderer();
// ChocoDrop追加(1行だけ!)
ChocoDrop.createChocoDrop(scene, { camera, renderer });
</script>
git clone https://github.com/nyukicorn/chocodrop.git
cd chocodrop
npm install
import { createChocoDrop } from './chocodrop/src/index.js';
// あなたの既存のThree.jsシーン
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(/* ... */);
const renderer = new THREE.WebGLRenderer();
// ChocoDrop追加(1行だけ!)
createChocoDrop(scene, { camera, renderer });
それだけ! 3D空間に向かって自然に話しかけるだけで、AIで画像や動画を生成して「ちょこっと」配置、インポートして「ちょこんと」設置できます。
| Feature | Description |
|---|---|
| 🎯 Natural Language 3D | "top-right", "center", "behind camera" positioning |
| 🎨 Multiple AI Models | Flux, DALL-E, Stable Diffusion, Video generation |
| 🔄 Real-time Editing | Modify size, position, effects after placement |
| 📦 Framework Agnostic | Works with any Three.js setup |
| 🌐 MCP Integration | Extensible AI model support |
| 🎮 Intuitive UI | Space key activation, no learning curve |
<!DOCTYPE html>
<html>
<head>
<style>
body { margin: 0; background: #000; overflow: hidden; }
#container { width: 100vw; height: 100vh; }
</style>
</head>
<body>
<div id="container"></div>
<!-- Three.js -->
<script src="https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.170.0/examples/js/controls/OrbitControls.js"></script>
<!-- ChocoDrop -->
<script src="https://cdn.jsdelivr.net/npm/@chocodrop/core@latest/dist/chocodrop.umd.min.js"></script>
<script>
// Scene setup
const scene = new THREE.Scene();
scene.background = new THREE.Color(0x1a1a2e);
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
camera.position.set(0, 2, 5);
const renderer = new THREE.WebGLRenderer();
renderer.setSize(window.innerWidth, window.innerHeight);
document.getElementById('container').appendChild(renderer.domElement);
// Controls
const controls = new THREE.OrbitControls(camera, renderer.domElement);
// ChocoDrop initialization
const chocoDrop = ChocoDrop.createChocoDrop(scene, {
camera: camera,
renderer: renderer,
onControlsToggle: (disabled) => {
controls.enabled = !disabled;
}
});
// Render loop
function animate() {
requestAnimationFrame(animate);
controls.update();
renderer.render(scene, camera);
}
animate();
console.log('✅ ChocoDrop ready! Press Space key to start.');
</script>
</body>
</html>
import { Canvas } from '@react-three/fiber';
import { OrbitControls } from '@react-three/drei';
import { createChocoDrop } from '@chocodrop/core';
import { useEffect, useRef } from 'react';
function Scene() {
const sceneRef = useRef();
useEffect(() => {
if (sceneRef.current) {
const chocoDrop = createChocoDrop(sceneRef.current, {
camera: /* camera ref */,
renderer: /* renderer ref */
});
}
}, []);
return (
<Canvas ref={sceneRef}>
<OrbitControls />
<ambientLight intensity={0.5} />
<pointLight position={[10, 10, 10]} />
</Canvas>
);
}
"Add a dragon in the top-right" // → AI generates dragon + places top-right
"Place cherry blossoms in center" // → Cherry blossoms appear in center
"Make it bigger" // → Scale up selected object
"Delete everything" // → Clear all generated content
"ドラゴンを右上に作って" // → AI generates dragon + places top-right
"桜を中央に配置" // → Cherry blossoms appear in center
"大きくして" // → Scale up selected object
"全て削除" // → Clear all generated content
Parameters:
scene: THREE.Scene // Your Three.js scene
options: {
camera?: THREE.Camera // Camera for positioning calculations
renderer?: THREE.Renderer // Renderer for mouse interactions
serverUrl?: string // ChocoDrop server URL (default: auto-detect)
onControlsToggle?: Function // Camera controls toggle callback
sceneOptions?: Object // Additional SceneManager options
uiOptions?: Object // Additional CommandUI options
}
Returns:
{
client: ChocoDropClient // HTTP client for AI generation
sceneManager: SceneManager // 3D scene management
ui: CommandUI // Command interface
}
// Generate AI images
await chocoDrop.client.generateImage('magical forest', {
width: 1024,
height: 1024,
service: 't2i-service'
});
// Execute natural language commands
await chocoDrop.client.executeCommand('Create a blue cat on the left');
// Generate videos
await chocoDrop.client.generateVideo('flowing river', {
duration: 5,
aspect_ratio: '16:9'
});
// Scene management
chocoDrop.sceneManager.clearAll(); // Clear all objects
const objects = chocoDrop.sceneManager.getObjects(); // Get object list
chocoDrop.sceneManager.removeObject(objectId); // Remove specific object
// UI control
chocoDrop.ui.show(); // Show command interface
chocoDrop.ui.hide(); // Hide command interface
chocoDrop.ui.toggle(); // Toggle visibility
If you want to run your own ChocoDrop server:
git clone https://github.com/nyukicorn/chocodrop.git
cd chocodrop
npm install
npm start
The server will start at http://localhost:3011
Requirements:
MIT License - see LICENSE file for details.
FAQs
ChocoDrop: real-time AI image drops for 3D scenes via Model Context Protocol (MCP)
We found that chocodrop demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.