PPM

@pixygon/companion

Pixiel, the companion anima that follows a person across every pearl: the spec, the smooth 3D Pixiel (three.js, lazy) with a pixel icon for small places, the mind, the API client and the React pieces (face, icon, dock, hatch, sculptor, shop).

Install

# .npmrc
@pixygon:registry=https://ppm.pixygon.io/

npm install @pixygon/companion@0.11.2

Versions

VersionPublishedIntegrity
0.11.2 latest2026-11-16sha512-YUEq78lwgbwivl8…
0.11.1 2026-10-12sha512-tEGv18gCAirpMdA…
0.11.0 2026-10-04sha512-DBHbAm0//zfWTiG…
0.10.6 2026-10-04sha512-LqADzFjqrRYE+es…
0.10.5 2026-10-04sha512-ECAIzyOTxd/XHbi…
0.10.4 2026-10-04sha512-5MRRjWwN1tcuTKM…
0.10.3 2026-10-04sha512-Q1H2J1FT2m/T299…
0.10.2 2026-10-03sha512-rlTZKnTiD3BL5Ly…
0.10.1 2026-10-03sha512-poUbI73sdYJkfSs…
0.10.0 2026-10-03sha512-GO+JZRR2lBV0hf3…
0.9.2 2026-10-03sha512-8Cz73NmaJHdS19g…
0.9.1 2026-10-03sha512-2v+rGAgfzvagw+5…
0.9.0 2026-10-03sha512-DFWSR5RLb0xfynE…
0.8.0 2026-10-03sha512-n7Hebt2KxiLJXOW…
0.7.1 2026-10-03sha512-TU0CMbTIvoDYvhH…
0.7.0 2026-10-03sha512-W1QiT46HCk1lwtx…
0.6.2 2026-10-02sha512-DG9SlRA6cZJcBt3…
0.6.1 2026-10-02sha512-Oe2B+U6zCGxT8x5…
0.6.0 2026-10-02sha512-GgsgR6lxXBBKtR9…
0.5.0 2026-10-02sha512-IvKkowk43KxPhaK…
0.4.1 2026-10-02sha512-eWkdyHAMBy7Ahk4…
0.4.0 2026-10-02sha512-2KnSTItWpp0WcaA…
0.3.0 2026-10-02sha512-W6Cc04BBwSAUCKQ…
0.2.0 2026-10-02sha512-4/dal9Zyz4GCQD+…
0.1.1 2026-10-02sha512-Pn0inzThF410Lnf…
0.1.0 2026-10-02sha512-qpbGh8xDr8cgLmw…

@pixygon/companion

Pixiel: the companion anima that follows a person across every pearl they are signed in to. Each person hatches one from a spark, sculpts it, dresses it, and talks to it. Decisions: Dyson/docs/companion/0001-pixiel-companion.md (the companion), 0002-homes-parties-stores.md (homes, parties, the three stores). API: /v1/me/companion (PixygonAPI services/companion/).

EntryWhatReact?
@pixygon/companionthe spec (generated from the API), the 2D drawing (the pixel icon), the mind, the shared animation loop, the API clientno
@pixygon/companion/reactPixielFace (smooth 3D by default), PixielIcon (pixel, for small places), SparkFace, CompanionDock (the corner chat)yes
@pixygon/companion/threethe 3D Pixiel (three.js): buildPixiel, and getStage(), one shared WebGL renderer that draws every face on the page. Loaded lazily by PixielFace.no
@pixygon/companion/roomPixielRoom: a home in 3D (decision 0002). The room, its Pixiel walking around, house parties on the API socket (send your Pixiel, emotes, short lines, report), and for the owner: Decorate and the door. user = whose; leave it out for your own.yes
@pixygon/companion/homePixielHome for pixiel.ai: hatch, sculpt, shop, memories, conversationsyes

Pearls don't import this directly. @pixygon/site mounts the dock through CornerChat: signed out, the pearl's concierge is unchanged; signed in, it lazy-loads the person's Pixiel.

import { CompanionDock } from '@pixygon/companion/react';
<CompanionDock token={() => auth.accessToken} slug="splitsheet" />

A host can set the greeting, the input placeholder and buttons. A button with match also catches typed messages it is for: they are not sent to chat (and not charged), and the dock answers with the button's steer line and the button. match: 'image' uses the built-in isImageRequest check (English and Norwegian).

<CompanionDock token={getToken} slug="pixiel"
  greeting={(n) => `Hi, it's ${n}. Tell me what's broken or what you'd like.`}
  placeholder="Feedback or a question…"
  buttons={[{ label: 'Make an image', href: '/create', match: 'image', steer: 'Images are made in the image prompt:' }]} />

Rules:

Furniture: carved in Chisel, kept in the Quarry

Every piece a Pixiel home can hold is a Chisel recipe in furniture/recipes.mjs (carving steps + physical materials: gloss, fabric, glass, metal…). QUARRY_TOKEN=… node furniture/publish.mjs [piece,…] sends them to the Quarry, which carves each one and names it by its recipe; the ids land in src/furniture-designs.ts. Rooms load quarry.pixygon.io/models/<design>.glb (one fetch per design per page, cloned per placement); the hand-built three.js piece in src/three/room.ts stands in while it loads, or if it cannot.

All packages · packument JSON