{"id":19227000,"url":"https://github.com/dvtng/superprompt","last_synced_at":"2025-04-21T00:32:59.660Z","repository":{"id":181151280,"uuid":"662340181","full_name":"dvtng/superprompt","owner":"dvtng","description":"Prompt Development Environment for GPT","archived":false,"fork":false,"pushed_at":"2023-07-23T23:15:17.000Z","size":589,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T07:43:46.907Z","etag":null,"topics":["ai","chatgpt","llms"],"latest_commit_sha":null,"homepage":"https://superprompt.dvtng.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dvtng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-04T23:24:38.000Z","updated_at":"2025-03-15T13:46:05.000Z","dependencies_parsed_at":"2024-11-09T15:24:29.143Z","dependency_job_id":"e58e0225-f5b6-4787-85ca-853d39b78af5","html_url":"https://github.com/dvtng/superprompt","commit_stats":null,"previous_names":["dvtng/superprompt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvtng%2Fsuperprompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvtng%2Fsuperprompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvtng%2Fsuperprompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvtng%2Fsuperprompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvtng","download_url":"https://codeload.github.com/dvtng/superprompt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249980902,"owners_count":21355523,"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","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":["ai","chatgpt","llms"],"created_at":"2024-11-09T15:21:17.549Z","updated_at":"2025-04-21T00:32:59.274Z","avatar_url":"https://github.com/dvtng.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/dvtng/superprompt\"\u003e\n      \u003cimg src=\"public/logo.svg\" alt=\"Logo\" width=\"60\" height=\"60\" /\u003e\n  \u003c/a\u003e\n  \u003ch1 align=\"center\"\u003esuperprompt\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n    The Prompt Development Environment for GPT.\n  \u003c/p\u003e\n  \u003cimg src=\"public/screenshot.png\" alt=\"Superprompt screenshot\" width=\"100%\" /\u003e\n\u003c/div\u003e\n\n## Use\n\nTo quickly get started, visit [superprompt.dvtng.com](https://superprompt.dvtng.com). Alternatively, follow the instructions below to run it locally.\n\n## Running locally\n\nClone this repository.\n\n```sh\ngit clone https://github.com/dvtng/superprompt.git\n```\n\nInstall dependencies.\n\n```sh\ncd superprompt\nnpm install\n```\n\nStart the server.\n\n```sh\nnpm run dev\n```\n\n## Writing prompt templates\n\nSuperprompt enables you to create prompt templates with placeholders.\n\n### Variables\n\nA `{name}` is a **variable** placeholder that allows you to input values for substitution.\n\n```\nWhat is a good product name for {product_description}?\n```\n\n### Generators\n\nUse the `{*}` **generator** placeholder to create multi-step conversations.\n\n```\nName 3 experts who'd be great at answering \"{question}\"\n{*}\nNow answer the question from the perspective of each expert.\n```\n\nWhen encountering a **generator** placeholder, superprompt yields to GPT to generate the next message.\n\nYou can combine a **generator** placeholder with a variable name to store the generated output.\n\n```\nDescribe the tone of the following text in one word. Choose between professional and casual:\n{them}\n{*tone}\nRewrite the following text in a {tone} tone:\n{you}\n```\n\nIn this example, the generated `{*tone}` value is stored and reused as `{tone}` later in the prompt.\n\n### Functions (experimental)\n\nSuperprompt provides some built-in functions that can be called from templates\nby placing them in a placeholder, e.g. `{now()}`.\n\nPlease note that these are currently experimental and may change in the future.\n\n#### google(query)\n\nSearches Google with the given query.\n\n```\n{google(\"What is Apple's current stock price?\")}\n```\n\n#### now()\n\nReturns the current date as a string.\n\n#### location()\n\nReturns the user's current location as a JSON object. Uses the browser's\ngeolocation API and requires the user to grant permission.\n\n#### math(expression)\n\nEvaluates a mathematical expression.\n\n#### weather(latitude, longitude)\n\nRetrieves the current weather at the given latitude and longitude as a JSON\nobject.\n\n#### file:query(question)\n\nSearches a file for excerpts that are related to the question and outputs them.\n\n```\nConsider the following excerpts:\n---\n{book:query(question)}\n---\nPretend to be the character {character_name} from the above excerpts.\nI'm going to ask you questions and I want you to respond as {character_name} would.\nTake care to mimic their personality and mannerisms.\nLet's start.\n{question}\n```\n\n#### file:summarize()\n\nSummarizes the contents of a file.\n\n```\nThe following is a book summary:\n---\n{book:summarize()}\n---\nGive me 5 adjectives that describe the book.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvtng%2Fsuperprompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvtng%2Fsuperprompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvtng%2Fsuperprompt/lists"}