{"id":31900985,"url":"https://github.com/cephalization/orbweaver","last_synced_at":"2025-10-13T12:50:32.902Z","repository":{"id":308765097,"uuid":"1034035427","full_name":"cephalization/orbweaver","owner":"cephalization","description":"A library for rendering pleasing blob-like orbs as ascii or shaded hues.","archived":false,"fork":false,"pushed_at":"2025-08-22T15:42:46.000Z","size":1946,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-22T21:22:52.355Z","etag":null,"topics":["ascii-art","canvas2d","library","npm","pnpm"],"latest_commit_sha":null,"homepage":"https://orbweaver-web.vercel.app/","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/cephalization.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-08-07T18:28:17.000Z","updated_at":"2025-09-08T11:53:08.000Z","dependencies_parsed_at":"2025-08-22T17:26:31.390Z","dependency_job_id":null,"html_url":"https://github.com/cephalization/orbweaver","commit_stats":null,"previous_names":["cephalization/orbweaver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cephalization/orbweaver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cephalization%2Forbweaver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cephalization%2Forbweaver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cephalization%2Forbweaver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cephalization%2Forbweaver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cephalization","download_url":"https://codeload.github.com/cephalization/orbweaver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cephalization%2Forbweaver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015086,"owners_count":26085644,"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-10-13T02:00:06.723Z","response_time":61,"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":["ascii-art","canvas2d","library","npm","pnpm"],"created_at":"2025-10-13T12:50:31.439Z","updated_at":"2025-10-13T12:50:32.890Z","avatar_url":"https://github.com/cephalization.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Orbweaver\n\n![NPM Version](https://img.shields.io/npm/v/orbweaver-core)\n\n\n![orbweaver-demo](https://raw.githubusercontent.com/cephalization/orbweaver/refs/heads/main/assets/demo.gif)\n\nA library for rendering pleasing blob-like orbs as ascii or shaded hues.\n\nIt supports:\n\n- Bring your own rendering backend (canvas, terminal ascii, etc)\n- Customizable colors\n- Responsive interaction (mouse, keyboard, audio, etc)\n- Configurable framerate for performance control\n\n## Packages\n\n| Package | Description | Version |\n|---------|-------------|------|\n| `orbweaver-core` | Core library for rendering orbweavers | [![NPM Version](https://img.shields.io/npm/v/orbweaver-core)](https://www.npmjs.com/package/orbweaver-core) |\n| `orbweaver-react` | React bindings for rendering orbweavers | [![NPM Version](https://img.shields.io/npm/v/orbweaver-react)](https://www.npmjs.com/package/orbweaver-react) |\n\n\n## Usage\n\n```bash\n# install the orbweaver package\npnpm add orbweaver-core\n```\n\nRender a blob in an HTML canvas (auto-initialized canvas ASCII renderer):\n\n```tsx\n// index.ts\nimport { Orbweaver } from \"orbweaver-core\";\n\nconst orbweaver = new Orbweaver(\n  document.getElementById(\"canvas\") as HTMLCanvasElement\n);\n\norbweaver.start();\n```\n\n```html\n\u003c!-- index.html --\u003e\n\u003ccanvas id=\"canvas\" style=\"width: 100%; height: 100%; border-radius: 8px; border: 1px solid #1E3A2F; background: #081B12;\"\u003e\u003c/canvas\u003e\n```\n\nBring your own renderer (advanced):\n\n```ts\n// index.ts\nimport {\n  Orbweaver,\n  CanvasAsciiRenderer,\n  BobBehavior,\n  RotateBehavior,\n  OrbitBehavior,\n  type Renderer,\n} from \"orbweaver-core\";\n\nconst canvas = document.getElementById(\"canvas\") as HTMLCanvasElement;\n\n// You can either use the provided CanvasAsciiRenderer explicitly...\nconst renderer = new CanvasAsciiRenderer(canvas, {\n  cols: 100,\n  rows: 36,\n  foreground: \"#A8FFB5\",\n  background: \"#081B12\",\n});\n\n// ...or supply any custom implementation of the Renderer interface\n// interface Renderer {\n//   getPixelSize(): { width: number; height: number };\n//   getGridSize(): { cols: number; rows: number };\n//   render(intensityAt: (col: number, row: number) =\u003e number): void;\n//   onResize(callback: () =\u003e void): () =\u003e void;\n// }\n\n// Create behaviors\nconst bob = new BobBehavior({ amplitude: 0.05, rate: 2.5 });\nconst rotate = new RotateBehavior({ speed: 2.5, direction: -1 });\nconst orbit = new OrbitBehavior({ radiusUnits: 0.15, angularSpeed: 1 });\n\n// Initialize the orbweaver with the renderer and desired behaviors\nconst orbweaver = new Orbweaver({\n  renderer,\n  behavior: [bob, rotate, orbit],\n});\n\norbweaver.start();\n\n// Update behavior parameters later\nrotate.set({ speed: 2.0 });\nbob.set({ amplitude: 0.4 });\n\n// Apply a transient impulse (normalized units-per-second, towards the center of the renderer)\norbweaver.impulse({ x: 1.2, y: 0 });\n```\n\n## Development\n\nInstall dependencies:\n\n```bash\n# ensure node v23 is installed, and pnpm v10.14\npnpm install\n```\n\nStart the development react app from the root of the monorepo:\n\n```bash\npnpm dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcephalization%2Forbweaver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcephalization%2Forbweaver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcephalization%2Forbweaver/lists"}