{"id":21511442,"url":"https://github.com/cablehead/stream-of-snippets","last_synced_at":"2025-04-09T17:52:07.129Z","repository":{"id":261977683,"uuid":"885872691","full_name":"cablehead/stream-of-snippets","owner":"cablehead","description":"a personal stream of snippets","archived":false,"fork":false,"pushed_at":"2024-12-08T16:49:57.000Z","size":112,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T22:54:21.008Z","etag":null,"topics":["cross-stream","denoland","event-sourcing","localfirst","microblog","solidjs","vitejs","xs"],"latest_commit_sha":null,"homepage":"https://ndyg.streamofsnippets.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/cablehead.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":"2024-11-09T16:06:46.000Z","updated_at":"2025-01-24T19:19:29.000Z","dependencies_parsed_at":"2024-11-09T17:33:57.154Z","dependency_job_id":"eaed95b1-7428-4276-b387-4b0c8d557a47","html_url":"https://github.com/cablehead/stream-of-snippets","commit_stats":{"total_commits":57,"total_committers":1,"mean_commits":57.0,"dds":0.0,"last_synced_commit":"e30d130a797a89655364273b1a9feeb59ada65cc"},"previous_names":["cablehead/stream-of-snippets"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cablehead%2Fstream-of-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cablehead%2Fstream-of-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cablehead%2Fstream-of-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cablehead%2Fstream-of-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cablehead","download_url":"https://codeload.github.com/cablehead/stream-of-snippets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083236,"owners_count":21045063,"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":["cross-stream","denoland","event-sourcing","localfirst","microblog","solidjs","vitejs","xs"],"created_at":"2024-11-23T22:08:55.674Z","updated_at":"2025-04-09T17:52:07.105Z","avatar_url":"https://github.com/cablehead.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A personal microblog that allows you to share a 'stream of snippets'—fragments of Markdown that you can append from the command line.\n\n## a stream of snippets\n\n\u003cimg width=\"1024\" alt=\"a women projecting a 'stream of snippets', notes she's curated, kung fu cartoon styled, seemingly to save the world\" src=\"https://github.com/user-attachments/assets/4369df4a-ddae-437c-ba3d-aef007c3fd44\"\u003e\n\n### overview\n\nThis is a lightweight, static [SolidJS](https://www.solidjs.com) app that tails an [`xs`](https://github.com/cablehead/xs) event stream. It publishes frames with the topic 'snippet' and displays them as Markdown fragments.\n\n### dev\n\n```bash\n$ git clone https://github.com/cablehead/stream-of-snippets.git\n$ cd stream-of-snippets\n\n# run the event stream in one window\n$ xs serve ./store —expose :3021\n\n# run vite in another window\n$ deno task dev\n\n# append a snippet in a 3rd window\n$ echo \"my first post\" | xs append ./store snippet\n```\n\n![image](https://github.com/user-attachments/assets/ffcb4947-209f-407a-81b7-653d24d01eff)\n\n[vite.config.ts](https://github.com/cablehead/stream-of-snippets/blob/main/vite.config.ts#L9-L14) is configured to proxy `/api/*` to localhost:3021, to expose the event stream\n\n\u003cpre\u003e\nhttp://your-stream-of-snippets...\n┌───────────────────────────────────────────────────┐\n│   # proxy /api to xs                              │\n│   # /api/*  ◀─────────────────────────────────────┼────────┐\n│                                                   │        │\n│   # otherwise serve the static SolidJS built dist │        │\n│   # /* -\u003e ./dist/*                                │        │\n└───────────────────────────────────────────────────┘        │\n                               ┌─────────────────────────────┴─────┐\n                               │ `xs serve ./store --expose :3021` │\n                               └────────────────────────────▲──────┘\n  to publish:                                               │\n      $ bp | xs append ./store snippet  ]───────────────────┘\n\u003c/pre\u003e\n\n### screencasts and screenshots\n\n\nhttps://github.com/user-attachments/assets/fba60beb-c5ae-42ba-97b4-e9564a74b722\n\n\u003cimg width=\"1024\" alt=\"image\" src=\"https://github.com/user-attachments/assets/d20189c4-3f13-4595-b0b5-b5fdc11cf518\"\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcablehead%2Fstream-of-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcablehead%2Fstream-of-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcablehead%2Fstream-of-snippets/lists"}