{"id":29120092,"url":"https://github.com/ryanfarber/prompty","last_synced_at":"2025-06-29T14:37:46.393Z","repository":{"id":301476788,"uuid":"1009382731","full_name":"ryanfarber/prompty","owner":"ryanfarber","description":"llm prompt helper","archived":false,"fork":false,"pushed_at":"2025-06-27T03:39:11.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-27T04:53:09.681Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ryanfarber.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,"zenodo":null}},"created_at":"2025-06-27T03:33:49.000Z","updated_at":"2025-06-27T03:39:14.000Z","dependencies_parsed_at":"2025-06-27T05:05:39.954Z","dependency_job_id":null,"html_url":"https://github.com/ryanfarber/prompty","commit_stats":null,"previous_names":["ryanfarber/prompty"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryanfarber/prompty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Fprompty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Fprompty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Fprompty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Fprompty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanfarber","download_url":"https://codeload.github.com/ryanfarber/prompty/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanfarber%2Fprompty/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262611861,"owners_count":23337180,"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":[],"created_at":"2025-06-29T14:37:44.243Z","updated_at":"2025-06-29T14:37:46.381Z","avatar_url":"https://github.com/ryanfarber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prompter\na simple tool to help format LLM prompts dynamically\n\n## usage\n\n```javascript\nconst Prompter = require(\"@ryanforever/prompter\")\nconst prompter = new Prompter({\n\tfromFiles: {\n\t\tsystemPrompt: \"./prompts/system-prompt-v1.js\"\n\t},\n\tfromText: {\n\t\tprompt2: \"you are a helpful assistant named {{assitantName}}.  the current date is {{currentDate}}\" // format variables in {{}}\n\t},\n\tstrict: false // throw error if input variables do not match prompt variables, or variables are missing\n})\n\n// assign variables at run time\nlet prompt = prompter.get(\"prompt2\", {\n\tassitantName: \"botlab\",\n\tcurrentDate: new Date(Date.now())\n})\n\n// upsert prompt variables.  this will only change the {{currentDate}} variable, leaving all other variables the same\nprompt = prompter.update(\"prompt2\", {\n\tcurrentDate: new Date(Date.now())\n})\n```\n\n\n## tools\n```javascript\nconst prompter = require(\"@ryanforever/prompter\")\n\n// in line text prompt\nlet prompt1 = prompter.fromText(\"hello {{username}}\", {\n\tusername: \"ryan forever\"\n})\n\n// read prompt text from a file instead\nlet prompt2 = prompter.fromFile(\"./my-prompt.txt\", {\n\tcurrentDate: new Date(Date.now())\n})\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanfarber%2Fprompty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanfarber%2Fprompty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanfarber%2Fprompty/lists"}