🌌 Stellar Spoon – Cosmic Culinary API

Welcome to the interstellar documentation for Stellar Spoon, the only kitchen tool that can stir nebulae, whisk stardust, and serve up a side of black‑hole broth. Use it responsibly; your taste buds may never be the same.

Overview

Stellar Spoon is a lightweight JavaScript library that lets you manipulate astral ingredients in real‑time. It works in browsers, Node, and even in the vacuum of space (no warranty).

Installation

Grab the library from the CDN or npm.

npm install stellar-spoon
<script src="https://unpkg.com/stellar-spoon@latest/dist/spoon.min.js"></script>

Quick Start

Give any element a data-spoon attribute and watch the magic.

<button data-spoon="nebula" class="pulse">Taste the Cosmos</button>

<script>
  Spoon.init(); // automatically finds [data-spoon] attributes
</script>
    
✨ You just unlocked a tiny super‑nova! ✨

API Reference

Sp Spoon.init([options])

Scans the DOM for data-spoon attributes and attaches default behaviours.

Sp Spoon.stir(element, intensity)

Applies a swirling animation to element. intensity is 0‑100.

Sp Spoon.flavor(element, recipe)

Mixes a recipe (object) into the element's style.

Spoon.flavor(btn, {
  color: '#ffcb6b',
  background: 'linear-gradient(45deg, #82aaff, #c3e88d)'
});
    

FAQ

Q: Will it eat my data?

A: Only if you serve it with a side of cookies. No actual data is consumed.

Q: Can I use it on a real spoon?

A: The library works best on DOM elements, but we hear the kitchenware community is experimenting.