
できること
生成されるアプリはCSSとJSをインラインで含む1つのHTMLファイルです。保存して、開いて、ホストするだけ。ビルドも依存関係もありません。
生成された瞬間にサンドボックス化されたフレーム内に描画されるので、保存する前に試せます。
このツールは用途を明示しています。小さな自己完結型のユーティリティとプロトタイプです。バックエンドが必要なアイデアには、できないふりをせずその旨を伝えます。
生成されるのはブラウザー内のプレーンなコードです。ダウンロードして、変えて、公開できます。
使い方の流れ
手順1
アプリを説明する文を1つか2つ書きます。
手順2
生成してライブプレビューを試します。
手順3
1つのHTMLファイルをダウンロードするか、コードをコピーします。
よくある質問
AIがHiringsAIの無料エンドポイントを通じて書きます。プロンプトは保存されません。
自己完結した1画面か小さなユーティリティです。SaaS全体を求めると玩具のようなものになります。プロンプトは1つの仕事に絞りましょう。
はい。無料エンドポイントには分単位のレート制限と、UTC午前0時にリセットされる日次キャパシティがあります。どちらかに達すると、ツールがエラーを明確に表示します。
実例
これは、表示されている入力例に対してPrompt to Appが返した実際の出力です。このサイト上のツールからライブで取得したもので、モックアップではありません。
あなたが入力
プロンプト
a pomodoro timer with session counter and a short break between rounds
ツールが返す
<!doctype html>
<html>
<head>
<title>Pomodoro Timer</title>
<style>
body {
background-color: #2b2b2b;
font-family: Arial, sans-serif;
color: #ffffff;
}
.container {
width: 300px;
margin: 50px auto;
text-align: center;
}
.timer {
font-size: 48px;
font-weight: bold;
margin-bottom: 20px;
}
.button {
background-color: #868686;
color: #ffffff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
.button:hover {
background-color: #787878;
}
</style>
</head>
<body>
<div class="container">
<h1>Pomodoro Timer</h1>
<div class="timer" id="timer">25:00</div>
<button class="button" id="start">Start</button>
<button class="button" id="stop" style="display: none;">Stop</button>
<button class="button" id="reset">Reset</button>
<p>Session: <span id="session">0</span></p>
</div>
<script>
var timer = document.getElementById('timer');
var startButton = document.getElementById('start');
var stopButton = document.getElementById('stop');
var resetButton = document.getElementById('reset');
var sessionSpan = document.getElementById('session');
var intervalId;
var session = 0;
var time = 1500;
startButton.addEventListener('click', function() {
startButton.style.display = 'none';
stopButton.style.display = 'inline';
intervalId = setInterval(function() {
var minutes = Math.floor(time / 60);
var seconds = time % 60;
timer.textContent = minutes + ':' + (seconds < 10 ? '0' : '') + seconds;
time--;
if (time === 0) {
clearInterval(intervalId);
session++;
sessionSpan.textContent = session;
time = 300; // short break
startButton.style.display = 'inline';
stopButton.style.display = 'none';
timer.textContent = '00:30';
intervalId = setInterval(function() {
var minutes = Math.floor(time / 60);
var seconds = time % 60;
timer.textContent = minutes + ':' + (seconds < 10 ? '0' : '') + seconds;
time--;
if (time === 0) {
clearInterval(intervalId);
startButton.style.display = 'inline';
stopButton.style.display = 'none';
}
}, 1000);
}
}, 1000);
});
stopButton.addEventListener('click', function() {
clearInterval(intervalId);
startButton.style.display = 'inline';
stopButton.style.display = 'none';
});
resetButton.addEventListener('click', function() {
clearInterval(intervalId);
session = 0;
sessionSpan.textContent = session;
time = 1500;
timer.textContent = '25:00';
startButton.style.display = 'inline';
stopButton.style.display = 'none';
});
</script>
</body>
</html>
パイプライン
仕様シート
パイプライン
ビフォー アフター
パイプライン
パイプライン
パイプライン
パイプライン
パイプライン
パイプライン
ビフォー アフター
パイプライン
パイプライン
パイプライン
パイプライン
ビフォー アフター
パイプライン
ビフォー アフター
パイプライン
パイプライン
ビフォー アフター
入力から出力へ
パイプライン
パイプライン
ビフォー アフター
パイプライン
パイプライン
バー比較