{"id":23044721,"url":"https://github.com/christ-offer/silverbullet-openai-plug","last_synced_at":"2025-08-24T11:40:46.237Z","repository":{"id":63825157,"uuid":"570688899","full_name":"christ-offer/silverbullet-openai-plug","owner":"christ-offer","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-28T17:53:10.000Z","size":54,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-14T05:37:07.559Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/christ-offer.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}},"created_at":"2022-11-25T20:37:47.000Z","updated_at":"2024-11-14T20:02:57.000Z","dependencies_parsed_at":"2023-02-15T18:01:43.487Z","dependency_job_id":null,"html_url":"https://github.com/christ-offer/silverbullet-openai-plug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"silverbulletmd/silverbullet-plug-template","purl":"pkg:github/christ-offer/silverbullet-openai-plug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christ-offer%2Fsilverbullet-openai-plug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christ-offer%2Fsilverbullet-openai-plug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christ-offer%2Fsilverbullet-openai-plug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christ-offer%2Fsilverbullet-openai-plug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christ-offer","download_url":"https://codeload.github.com/christ-offer/silverbullet-openai-plug/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christ-offer%2Fsilverbullet-openai-plug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271854475,"owners_count":24834453,"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-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":"2024-12-15T21:14:37.114Z","updated_at":"2025-08-24T11:40:46.172Z","avatar_url":"https://github.com/christ-offer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SilverBullet plug for OpenAI Completions\n\nWarning: Do not use other than on localhost. There is no encryption or any\nsecurity in place at all.\n\nFor this to work you will have to create a page called `SECRETS`. And create a\nyaml codeblock that looks like this:\n\n```yaml\nopenai: your-key-here\n```\n\nYou will also need to specify the model/engine settings in a page called\n`openai/settings` and create a yaml codeblock that looks like this:\n\n```yaml\ncodeCompletion:\n  model: code-davinci-002\n  max_tokens: 200\n  temperature: 1\n  top_p: 1\n  n: 1\n  stream: false\n  logprobs: null\n  stop: \"\"\ncompletion:\n  model: text-davinci-002\n  max_tokens: 200\n  temperature: 0.7\n  top_p: 1\n  n: 1\n  stream: false\n  logprobs: null\n  stop: \"\"\nedit:\n  model: text-edit-davinci-001\n  instruction: \"Fix any spelling mistake\"\nimageGeneration:\n  n: 1\n  size: \"1024x1024\"\n```\n\nIt uses a OpenAI Library/Wrapper I made myself. You can find it here:\nhttps://deno.land/x/openai_mini/\n\nThe current commands are:\n\n- OpenAI: Full Page Completion\n  - Creates a completion based on the full content of the current page\n- OpenAI: Selection Completion\n  - Creates a completion based on the selected text\n- OpenAI: Image Generation\n  - Creates an image based on the selected text\n- OpenAI: Edit Selection\n  - Edits the selected text based on the instruction in the settings page\n\n## Wait, SilverBullet?\n\nIf you don't know what it is, check its [webpage](https://silverbullet.md), but\nif you want me to spoil the fun: it is an extensible note taking app with\nmarkdown and plain files at its core (well... there is a bit of magic in there\ntoo, but what good it would be without a little magic?)\n\n## Installation\n\nYou can also install it directly from this github repo, by adding the following\nto your `PLUGS` note:\n\n```\n- github:christ-offer/silverbullet-openai-plug/openai.plug.json\n```\n\nto your `PLUGS` file, run `Plugs: Update` command and off you go!\n\n## Build\n\nTo build this plug, make sure you have `plugos-bundle` installed. If not, be\nsure to have [Deno](https://deno.land) installed first, then run:\n\n```shell\ndeno install -f -A --unstable --importmap https://deno.land/x/silverbullet/import_map.json https://deno.land/x/silverbullet/plugos/bin/plugos-bundle.ts\n```\n\nAfter this, build the plug with\n\n```shell\ndeno task build\n```\n\nOr to watch for changes and rebuild automatically\n\n```shell\ndeno task watch\n```\n\nThen, load the locally built plug, add it to your `PLUGS` note with an absolute\npath, for instance:\n\n```\n- file:/Users/you/path/to/openai.plug.json\n```\n\nAnd run the `Plugs: Update` command in SilverBullet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrist-offer%2Fsilverbullet-openai-plug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrist-offer%2Fsilverbullet-openai-plug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrist-offer%2Fsilverbullet-openai-plug/lists"}