{"id":29705697,"url":"https://github.com/jaykaycodes/teleprompt","last_synced_at":"2025-07-23T15:04:32.682Z","repository":{"id":162229161,"uuid":"636819410","full_name":"jaykaycodes/teleprompt","owner":"jaykaycodes","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-05T18:35:53.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T17:24:18.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaykaycodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-05T18:10:15.000Z","updated_at":"2023-05-05T18:10:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc925343-7e0d-4dd1-8a52-e5a63edc5534","html_url":"https://github.com/jaykaycodes/teleprompt","commit_stats":null,"previous_names":["jaykaycodes/teleprompt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jaykaycodes/teleprompt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaykaycodes%2Fteleprompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaykaycodes%2Fteleprompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaykaycodes%2Fteleprompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaykaycodes%2Fteleprompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaykaycodes","download_url":"https://codeload.github.com/jaykaycodes/teleprompt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaykaycodes%2Fteleprompt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266699565,"owners_count":23970514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-23T15:02:25.849Z","updated_at":"2025-07-23T15:04:32.667Z","avatar_url":"https://github.com/jaykaycodes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Teleprompt\n\nCreate, compose, and use a AI prompts like you would GraphQL queries.\n\n## Quick Start\n\n```sh\nyarn install\nyarn dev\n```\n\nThen, try it out:\n\n```sh\nyarn workspace example dev\n```\n\n## Example\n\nSuppose you write a prompt template file like this:\n\n`src/prompts/my-amazing-prompt.prompt`\n\n````md\n```ts\ninterface Props {\n  requestedAt: Date\n}\n\ninterface Context {\n  adverb: string\n}\n\nexport default function(props: Props): Context {\n  return {\n    time: requestedAt.toISOString(),\n    adverb: 'ease'\n  }\n}\n\nexport const config: PromptConfig = {\n  model: 'gpt-3.5-turbo',\n}\n\n```\n\nThis is my prompt. I can interpolate variables with ${adverb}! The current time is ${time}.\n````\n\nThen, in your client code, you simply import and call it like so:\n\n`src/App.tsx`\n\n```ts\nimport MyAmazingPrompt from './prompts/my-amazing-prompt.prompt'\n\nexport default function App() {\n  useEffect(() =\u003e {\n    const output = await MyAmazingPrompt(\n      // the `Props` object\n      { requestedAt: new Date() },\n      // Optional. Override the template config\n      { model: 'gpt-4' }\n    )\n    // The AI model receives:\n    // \"This is my prompt. I can interpolate variables with ease! The current time is 2023-05-05T18:31:04.740Z.\"\n    console.log(output)\n    // =\u003e The response from the AI model...\n  }, [])\n\n  return ...\n}\n```\n\n## Development\n\nYou'll first want to [yarn link](https://classic.yarnpkg.com/lang/en/docs/cli/link/) the package dir to the `example/`:\n\n```sh\ncd teleprompt \u0026\u0026 yarn link\ncd ../example \u0026\u0026 yarn link teleprompt\n```\n\nNext, watch for source file changes \u0026 rebuild with:\n```sh\n# At workspace root\nyarn dev\n```\n\nThen, run the `example/` project\n\n```sh\nyarn workspace example dev\n```\n\nNOTE: Any changes to the vite plugin will require a restart of the `example/` project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaykaycodes%2Fteleprompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaykaycodes%2Fteleprompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaykaycodes%2Fteleprompt/lists"}