Repository navigation
Releases
v0.6.1
A patch release that redraws the twelve generated coats.
Coats
- Ginger, Sage, Siamese, Strawberry Milk, Blue Frost, Lavender, Tuxedo, Peach, Honey, Mocha, Mint and Midnight Blue now share Classic's exact outlines and poses in every frame. Before, they had broken outlines, noisy color, and poses that shifted between frames of the same animation.
- Siamese has proper points: dark ears, paws, tail and face mask, with blue eyes.
- Tuxedo and Midnight Blue keep their faces readable on dark fur, and Midnight Blue gets the amber eyes from its concept.
- Lavender, Sage and Ginger lose the dark smudges in their fur.
- The twelve coats together shrink from 536 KB to 69 KB, so the studio and the extension load less.
- Ginger's description now reads "Marmalade fur and a cream-colored chest".
Site
- The social preview image shows the redrawn coats.
Update with npm install oneko@0.6.1, or for the registry component run npx shadcn@latest add https://oneko.dhrv.pw/r/oneko.json again. The Chrome extension is attached below.
Full changelog: v0.6.0...v0.6.1
v0.6.0
A release for the Chrome extension, the studio, and the hosted framework wrappers.
Extension
- The cat now shows on pages whose security policy blocks inline images. Coats ship inside the extension instead of as data URLs.
- The popup lists the sites the cat is turned off on, each with a way to turn it back on.
- A new switch turns thought bubbles off.
- Pages opened before the extension was installed get a note asking for a reload, and local files explain how to allow file access in Chrome.
- With reduced motion turned on in the system, the cat stays and rests instead of disappearing.
- Off switches in the popup are now visible against the background.
Studio
- Your last three drawings are kept, each with a thumbnail, instead of each one overwriting the last.
- Back to my cat survives a reload after opening a shared cat, and an unsaved clip survives a visit to another tab.
- Recording explains an empty take or a browser that can't record.
- Right clicks no longer paint the coat, the color swap picker stays usable while a recolor settles, and the canvas announces the current cell to screen readers.
- The exported friend kitten matches the one the playground runs.
Frameworks
- The hosted Svelte and Solid wrappers expose the tour controls:
goTo,say,sit,follow,petanddropTreat. - The hosted Vue wrapper declares the
soundsprop type.
Site
- A 404 page with a lost cat waiting by the way home.
- The guide covers the npm package and corrects claims that had drifted from the engine. The docs menu on phones folds away after jumping to a section.
- The Android app icon no longer crops the cat.
Update with npm install oneko@0.6.0, or for the registry component run npx shadcn@latest add https://oneko.dhrv.pw/r/oneko.json again. The Chrome extension is attached below.
Full changelog: v0.5.1...v0.6.0
v0.5.1
A fixes release: steadier options, safer share links, and a much lighter studio.
Component
- Every option is now checked and clamped in one place. Out-of-range values such as
volume={2}or a negativespeedare pulled into range instead of throwing or misbehaving. - Vue, Solid, and Svelte cats now start with their props, so
initialPosandstorageKeyapply from the first frame. say()bubbles are no longer replaced by automatic ones, and the zoomies bubble respectsbubbleEnabled.- Keyboard focus gets its own target, so tabbing no longer moves the remembered cursor position.
goTo()with an invalid selector resolvesfalseinstead of throwing.- A skin that fails to load can be retried, and the laser trail stops animating while the pointer is still.
- Keep-out and favorite zones are read every few ticks rather than every tick, and the page-wide obstacle scan waits until scrolling settles.
Studio
- Coat previews are static images, so the studio page is about 40 KB instead of 800 KB.
- Share links and configuration files missing some settings now open with the defaults instead of being rejected. Hosted coats in share links are checked like
?sprite=. ?sprite=no longer overrides changes made while it loads, and is removed from the address once applied.- Settings save shortly after a change instead of on every keystroke, and are flushed when the page closes.
- Sounds: stopping before the microphone starts cancels the recording, uploads longer than 60 seconds are refused before decoding, and trim errors are shown.
- The Share panel no longer stretches with long custom-coat links, the keyboard drawing cursor starts on its real cell, touch targets meet 44px, and the clip editor manages focus.
Extension
- Stored settings are validated before use.
Update with npm install oneko@0.5.1, or for the registry component run npx shadcn@latest add https://oneko.dhrv.pw/r/oneko.json again. The Chrome extension is attached below.
Full changelog: v0.5.0...v0.5.1
v0.5.0
Your cat can look and sound like nobody else’s.
Studio
- Draw: edit all 32 sprite frames pixel by pixel from any coat, with a live animation preview, mirrored drawing, onion skinning, frame tools, and undo.
- Sounds: replace any of 11 moments with an uploaded or recorded clip, trim it, shift its pitch, or silence that moment.
- Share: links now carry the whole cat, drawn coats and recorded sounds included. Nothing is uploaded; the cat lives in the link. Links with custom art or sound run long, so use the configuration file where a chat app cuts them.
- Opening a shared link offers Back to my cat, and reloading keeps your edits instead of applying the link again.
Component
- New
soundsprop for React,createOneko, and the framework wrappers. Map moments to clip URLs, pass an array as a pool, or an empty array to silence a moment. Other moments keep the built-in sounds.
<Oneko meow sounds={{ pet: "/sounds/chirp.mp3", moving: [] }} />Sites with a Content Security Policy should allow data: in media-src for clips exported from the studio.
Other
- Utility files such as
llms.txtand framework wrappers are now markednoindex. - Configuration files can be up to 1 MB, up from 512 KB, to fit sounds. Older
#oneko=share links keep working.
Update with npm install oneko@0.5.0, or for the registry component run npx shadcn@latest add https://oneko.dhrv.pw/r/oneko.json again. The Chrome extension is attached below.
Full changelog: v0.4.1...v0.5.0
v0.4.1
A tidier cat. No behavior changes.
- Removed dead code, unused exports, and comments that only restated the code.
- Releases now publish to npm from GitHub Actions with trusted publishing, so every version comes with provenance.
Update with npm install oneko@0.4.1, or for the registry component run npx shadcn@latest add https://oneko.dhrv.pw/r/oneko.json again. The Chrome extension zip is attached below.
Full changelog: v0.4.0...v0.4.1
v0.4.0
Your cat has more to do.
Play
grabbable: pick the cat up and toss it. It spins, bounces off the edges, and lands on its feet. A click without dragging pets it.treats: double-click empty space to drop a fish. The nearest cat runs over and eats it.data-oneko-knockable: now and then a resting cat walks up to the element, stares at you, and paws it off the screen. It comes back a few seconds later.data-oneko-box: if it fits, it sits. A resting cat naps in the box for a while.
Tour cat
goTo,say,sit,follow,pet, anddropTreaton the React ref,createOneko(),<oneko-cat>, and the Vue, Svelte, and Solid components.data-oneko-say="…"makes the nearest cat comment on whatever the pointer rests on or keyboard focus reaches.- New events:
onPet,onCatchCursor,onSleep,onToss, andonTreat.<oneko-cat>dispatchespet,catchcursor,sleep,toss, andtreat.
Seasons and moods
seasonal(on by default): a witch hat Oct 20–31, a Santa hat Dec 18–29, and a party hat Dec 30–Jan 2, plus a few themed thoughts. Setseasonal={false}to opt out, or pass"halloween"to preview.timeOfDay: zoomies at dawn and dusk, drowsy after lunch, asleep late at night.affection: remembers pets and treats and greets returning visitors.
Every new option except seasonal is off by default. Update with npm install oneko@0.4.0, or for the registry component run npx shadcn@latest add https://oneko.dhrv.pw/r/oneko.json again. The Chrome extension zip is attached below.
Full changelog: v0.3.1...v0.4.0
v0.3.1
Fixes cat sounds.
Ten sound files in 0.3.0 and earlier were not audio, so the alert state never made a sound and two of the freerun sounds failed silently. They are removed. When alert, the cat now meows using the idle sounds. A new test makes sure every bundled sound is a real Ogg file.
Update with npm install oneko@0.3.1. If you copied public/cat-sounds/ for the registry component, copy it again. The Chrome extension zip is attached below.
Full changelog: v0.3.0...v0.3.1
v0.3.0
Oneko now ships as an npm package with everything bundled, and it can follow you around the whole web in Chrome.
npm package
The engine and all 24 coats are in the package, so nothing loads from oneko.dhrv.pw at runtime.
npm install onekoimport Oneko from "oneko"; // React
import Oneko from "oneko/vue";
import Oneko from "oneko/svelte";
import Oneko from "oneko/solid";
import { createOneko } from "oneko/vanilla";Every entry takes the same props as the registry component. Importing during SSR has no DOM side effects, and the React entry is marked "use client", so Next.js App Router can import it from a server component. See the package README.
Chrome extension
The cat on every site you visit. The toolbar popup sets the coat, size, and sounds, and has a per-site switch. It runs the same engine as oneko.js, bundled in the extension. It reads no page content and collects no data.
To try it before it reaches the Web Store, download oneko-chrome-0.3.0.zip below, unzip it, open chrome://extensions, turn on Developer mode, and choose Load unpacked.
Also
- Contributing guide plus issue and pull request templates.
- A cleaner social preview image.
Full changelog: v0.2.0...v0.3.0
v0.2.0
Oneko now works beyond React, cats can keep each other company, and they pay attention to the page.
No React? Still a cat
One script tag brings a cat to any site: Astro, Hugo, WordPress, or plain HTML. Options are data- attributes named after the props.
<script type="module" src="https://oneko.dhrv.pw/oneko.js" data-skin="calico" data-meow></script>You can also use a <oneko-cat> element, which fires a statechange event and works in Angular and Lit, or the createOneko() API.
Svelte, Vue, and Solid
Download one component and use the same props as the React component:
curl -o src/lib/Oneko.svelte https://oneko.dhrv.pw/frameworks/Oneko.svelte
curl -o src/components/Oneko.vue https://oneko.dhrv.pw/frameworks/Oneko.vue
curl -o src/components/Oneko.tsx https://oneko.dhrv.pw/frameworks/Oneko.solid.tsxThey load the hosted engine in the browser, so SvelteKit, Nuxt, and SolidStart can render them during SSR.
A parade of cats
Mount several cats and set chase="cat": each one follows the cat mounted before it. A cat resting beside a napping friend dozes off too.
Page reactions
All off by default:
napWhileTyping: dozes off while visitors type, and wakes when the pointer moves.followFocus: walks to whatever keyboard focus lands on.perchOnHover: sits on a link or button the pointer rests on. Adddata-oneko-perchto make anything a perch.
Visitor controls and reduced motion
setCatsHidden()anduseCatsHidden()hide every cat on the site, and the choice is remembered. With the hosted script,<button data-oneko-toggle>does the same with no JavaScript.pettablemakes the cat a keyboard-reachable "Pet the cat" button.reducedMotion="rest"shows a still, sleeping cat to visitors who prefer reduced motion, instead of hiding it.
Lighter installs and hosted coats
- Named skins load the first time one is used, so the full install drops from about 578 KB to about 31 KB gzipped up front.
- The studio accepts an https link to a 256 × 128 sprite sheet. Share it with
/studio?sprite=https://…or a share link.
Site
- The home page and docs describe every way to add a cat, not only React.
- The docs sidebar fits without scrolling.
- The landing page staggers in with Motion springs.
- A new social preview image.
Notes
- Every cat element now has
data-oneko-cat. Only the first keepsid="oneko-react". getSkinSourcereturnsundefineduntil a named skin has loaded; useloadSkinSourceoruseSkinSourceto wait for it.- Studio configuration files and share links from earlier versions still load.
Full Changelog: v0.1.0...v0.2.0