A laptop, a phone and a hand writing in a notebook on a wooden desk, banner image on the Prompt to App page

ツール/ Buildスイート

Prompt to App

小さなアプリをひとことで説明するだけで、すぐにプレビューしてダウンロードできる、動く単一ファイルのHTMLアプリが手に入ります。

「セッション履歴つきポモドーロタイマー」や「評価で割り勘するチップ計算機」と入力するだけで、動作する自己完結型のHTMLアプリが手に入ります。ページ内でプレビューでき、1ファイルでダウンロードでき、ブラウザーが動くところならどこでも実行できます。

ツールを開く
Screenshot of the Prompt to App tool

できること

できること。

単一ファイル出力

生成されるアプリはCSSとJSをインラインで含む1つのHTMLファイルです。保存して、開いて、ホストするだけ。ビルドも依存関係もありません。

即時プレビュー

生成された瞬間にサンドボックス化されたフレーム内に描画されるので、保存する前に試せます。

正直な制限の表示

このツールは用途を明示しています。小さな自己完結型のユーティリティとプロトタイプです。バックエンドが必要なアイデアには、できないふりをせずその旨を伝えます。

完全にあなたのもの

生成されるのはブラウザー内のプレーンなコードです。ダウンロードして、変えて、公開できます。

使い方の流れ

使い方。

手順1

アプリを説明する文を1つか2つ書きます。

手順2

生成してライブプレビューを試します。

手順3

1つのHTMLファイルをダウンロードするか、コードをコピーします。

よくある質問

コードはどう書かれますか?

AIがHiringsAIの無料エンドポイントを通じて書きます。プロンプトは保存されません。

どのくらい大きなアプリをつくれますか?

自己完結した1画面か小さなユーティリティです。SaaS全体を求めると玩具のようなものになります。プロンプトは1つの仕事に絞りましょう。

1日の制限はありますか?

はい。無料エンドポイントには分単位のレート制限と、UTC午前0時にリセットされる日次キャパシティがあります。どちらかに達すると、ツールがエラーを明確に表示します。

Prompt to Appを開く

実例

ツールそのものからの実際の出力。

これは、表示されている入力例に対して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>
自分の入力で試す

Buildスイートのその他のツール

Font Pairing LabWebhook TesterPricing Page BuilderLanding Page MakerStatus Page Starter
A wooden desk with glasses, a coffee cup, a plant and the edge of a laptop, banner image on the Prompt to App page

今すぐ試す。

Prompt to Appはブラウザー内で動きます。アカウントは不要です。

パイプライン

有用な説明から始める

Open the pageRead the prefilledexampleEdit it into yourown appPress Generate app
Open the pageRead the prefilled exampleEdit it into your own appPress Generate app
アプリは最初プレースホルダーのようなサンプルを表示しますが、ヘルパーが読み込まれると入力済みの例に置き換わります。

仕様シート

固定のリクエスト定数

Minimum prompt length12 charsMaximum reply1024 tokensEndpointPOST /api/aiDownload filenameapp.htmlBlob typetext/htmlIframe sandboxscripts only
Minimum prompt length12 charsMaximum reply1024 tokensEndpointPOST /api/aiDownload filenameapp.htmlBlob typetext/htmlIframe sandboxscripts only
これらの値はユーザー設定ではなく、ページのソースに固定されています。

パイプライン

押すたびに1つのリクエスト

Trim descriptionValidate lengthDisable GeneratebuttonPost to /api/aiRestore button andlabel
Trim descriptionValidate lengthDisable Generate buttonPost to /api/aiRestore button and label
リクエストの実行中はボタンが無効になります。

ビフォー アフター

1つの文が1つのアプリになる

Your sentenceGenerated appa pomodoro timer withsession historyand a long-break every 4sessions<!doctype html> documentInline CSS and JS onlyDark single-screen UI
Your sentence to Generated appa pomodoro timer with sessionhistory<!doctype html> documentand a long-break every 4 sessionsInline CSS and JS onlyDark single-screen UI
入力済みの例は入力の形を示します。成功するとコードボックスが1つの完全なドキュメントで満たされます。

パイプライン

返答は使えるか、名前が付くかのどちらか

Reply arrivesStarts withbackend prefix?Otherwise findfull HTMLNo full HTML:explainFull HTML: showapp
Reply arrivesStarts with backend prefix?Otherwise find full HTMLNo full HTML: explainFull HTML: show app
ハンドラーは特別な返答をアプリとして実行する前に振り分けます。

パイプライン

プレビューはプレースホルダーから始まる

Page loadsSet iframe srcdocShow waitingmessageReplace on firstsuccess
Page loadsSet iframe srcdocShow waiting messageReplace on first success
生成前、iframeには小さなローカルの待機ドキュメントが入っています。

パイプライン

レスポンスとJSONエラーを分離

Read responsestatusParse JSON bodyIf error: showservice messageIf success: readreply text
Read response statusParse JSON bodyIf error: show service messageIf success: read reply text
ハンドラーはHTTPステータスが成功でなくてもJSONボディを読みます。

パイプライン

バックエンドが必要という返答はメモに留まる

Reply starts withprefixEscape its HTMLShow as page noteLeave app codeuntouched
Reply starts with prefixEscape its HTMLShow as page noteLeave app code untouched
特別なプレフィックスにより、ハンドラーは実行ではなく説明を返します。

パイプライン

完全なページが抽出される

Search doctypethrough html closeElse search htmlthrough closeUse first fullmatchReject partialreply
Search doctype through html closeElse search html through closeUse first full matchReject partial reply
ドキュメント全体に見える最初の一致が使われます。doctypeまたはhtmlで始まるものです。

パイプライン

不完全な返答は拒否される

No completedocument matchShowincomplete-replyerrorDo not previewfragmentSuggest narrowerdescription
No complete document matchShow incomplete-reply errorDo not preview fragmentSuggest narrower description
抽出に失敗した場合、断片を実行するのではなく、古いアプリはプレビューに入れません。

ビフォー アフター

成功した実行で変わること

Before successAfter successEmpty code boxWaiting preview frameAny earlier generated appCode box filledPreview shows the new appOld app replaced, no history
Before success to After successEmpty code boxCode box filledWaiting preview framePreview shows the new appAny earlier generated appOld app replaced, no history
抽出されたテキストは見つかってから表示・プレビューされ、それまでプレビューに入っていたものを置き換えます。

パイプライン

プレビューは分離されている

Put code into codeboxAssign iframesrcdocApply iframesandboxAllow scripts onlyRender app
Put code into code boxAssign iframe srcdocApply iframe sandboxAllow scripts onlyRender app
生成されたJavaScriptはiframe内で実行できますが、サンドボックスは同一オリジンアクセスを許しません。

パイプライン

コピーとダウンロードは同じソースを読む

Read code boxCopy: clipboardwriteDownload: localBlobReject empty codebox
Read code boxCopy: clipboard writeDownload: local BlobReject empty code box
どちらの書き出しもコードボックスの現在の値を使います。

パイプライン

コードをコピー

Read code boxRequire nonemptycodeWrite clipboardtextNo network request
Read code boxRequire nonempty codeWrite clipboard textNo network request
コピーはコードがあるときだけ実行されます。

パイプライン

コードをダウンロード

Read code boxRequire nonemptycodeCreate text/htmlBlobCreate object URLDownload app.html
Read code boxRequire nonempty codeCreate text/html BlobCreate object URLDownload app.html
生成されたBlobはローカルに留まります。

ビフォー アフター

失敗ごとに名前付きの経路がある

Input itemsOutput itemsService or HTTP errorIncomplete documentBackend-neededNetwork exceptionService error textNarrow-description hintBackend noteNetwork retry text
Input items to Output itemsService or HTTP errorService error textIncomplete documentNarrow-description hintBackend-neededBackend noteNetwork exceptionNetwork retry text
ツールはすべてのエラーを1つのメッセージにまとめません。

パイプライン

ネットワーク例外でコントロールが復帰する

Fetch throwsRestore buttonRestore buttonlabelShow network error
Fetch throwsRestore buttonRestore button labelShow network error
fetchの失敗は捕捉され、ボタンが無効のままにはなりません。

ビフォー アフター

組み込みの例はプロンプトの固定具

Input itemsOutput itemsPomodoro requestSession history detailSingle-screen app ideaNot a stored generation
Input items to Output itemsPomodoro requestSingle-screen app ideaSession history detailNot a stored generation
この例は、書くべき範囲を絞ったリクエストの形を示しています。

パイプライン

バックエンドが必要な場合は生成が止まる

Idea needsaccountsIdea needsdatabaseIdea needs backendserverReturnbackend-needednote
Idea needs accountsIdea needs databaseIdea needs backend serverReturn backend-needed note
リクエストは、存在するふりをするのではなく、その旨を報告するようモデルに明示的に指示しています。

パイプライン

結果を取り出す

Preview resultRead code boxChoose copy ordownloadEdit in your owneditor
Preview resultRead code boxChoose copy or downloadEdit in your own editor
どちらの書き出しも同じコードボックスの値から来ます。

ビフォー アフター

データの向きは一方向

Leaves the pageStays in the pageYour app descriptionOne Generate pressPrompt posted to /api/aiCode and exports stay local
Leaves the page to Stays in the pageYour app descriptionPrompt posted to /api/aiOne Generate pressCode and exports stay local
実行時にプロンプトはエンドポイントへ送られ、生成されたコードはページのコントロール内に保持されます。

入力から出力へ

説明からアプリへ

AppdescriptionLive previewCode boxPrompt to AppInOut
InApp descriptionPrompt to AppLive previewCode boxOut
ページは入力と結果を分けています。

パイプライン

ボタンが始まったあと

Button readsGeneratingButton disabledWait for responseRestore originallabelShow result orerror
Button reads GeneratingButton disabledWait for responseRestore original labelShow result or error
コントロールは完了時刻を約束せず、処理中であることだけを伝えます。

パイプライン

ダウンロード後に使う

Download app.htmlOpen locallyInspect generatedcodeTest in yourbrowserEdit as needed
Download app.htmlOpen locallyInspect generated codeTest in your browserEdit as needed
ダウンロードしたHTMLはリクエストの指示どおり自己完結しています。公開前に実際に生成されたページを確認してください。

ビフォー アフター

1つの文から1つのファイルへ

Input itemsOutput itemsOne app descriptionOne Generate pressOne API requestOne code-box document
Input items to Output itemsOne app descriptionOne API requestOne Generate pressOne code-box document
成功した実行は1つのリクエストを1つのHTMLドキュメントに変えます。

パイプライン

生成にアカウント状態の経路はない

DescribeGeneratePreview or inspectCopy/downloadLeave page: notool-side save
DescribeGeneratePreview or inspectCopy/downloadLeave page: no tool-side save
ツールページにはプロジェクトの保存や共有のハンドラーはありません。

パイプライン

生成されたアプリは自分で確認する

Run in sandboxTry its controlsReview code textAdjust thedescriptionRegenerate ifneeded
Run in sandboxTry its controlsReview code textAdjust the descriptionRegenerate if needed
プレビューはコードが描画できることの証明であり、製品要件をすべて満たすことの証明ではありません。

バー比較

ページソース内のハンドラーのサイズ

Generate app28 source linesDownload .html9 source linesCopy code2 source lines
Generate app28 source linesDownload .html9 source linesCopy code2 source lines
生成ハンドラーはバリデーション、リクエスト、すべてのエラー経路を担い、コピーは保護された1回の呼び出しです。行数はツールページのソースで数えています。