Interactive REPL & Feature Showcase
Tempo offers two dedicated, zero-install in-browser environments running 100% client-side via native ECMAScript Modules (esm.sh):
- 🎨 Feature Showcase & Workbench: A dynamic, visual sandbox to test format tokens, chained mutations, relative durations, world geolocation, and astronomical ephemeris in real time with auto-generated TypeScript code.
- ⚡ Freeform Code REPL: A freeform JavaScript/TypeScript code editor with real-time evaluation, console streaming, official plugin preloading, and snippet URL sharing.
🎨 Interactive Feature Showcase
Explore live formatting, chained mutations, hemisphere-aware astronomical seasons, and celestial mechanics without writing boilerplate:
⚡ Freeform Code REPL
An instant scratchpad for testing custom algorithms, experimental plugin imports, and sharing reproducible snippet links:
Tempo, Temporal, and official plugins.🚀 Open Full-Screen Code REPL↗Key Capabilities
1. Preloaded Official Plugins
Both environments pre-register the core Tempo instance along with default official plugins:
@tempo-kit/plugin-geo@tempo-kit/plugin-celestial
You can immediately access Terms, seasons, and celestial data without import boilerplate:
const t = new Tempo('today', { geo: { lat: -33.86, lng: 151.2 } });
console.log(t.term.szn); // "Spring"
console.log(t.term.lunar.phase); // "First Quarter"2. Dynamic Plugin Loading & Presets
Need an additional plugin like @tempo-kit/plugin-spatial, @tempo-kit/plugin-ticker, or custom third-party modules? Select their preset from the preset dropdown or use standard dynamic imports in the Code REPL:
const { SpatialPlugin } = await import('@tempo-kit/plugin-spatial');
Tempo.use(SpatialPlugin);
console.log('Spatial plugin active!');3. AI Semantic Parsing & Natural Language Scheduling
Explore generative date parsing, conversational recurrence, and multi-point event scheduling powered by @tempo-kit/plugin-ai:
- Select the Preset: AI Semantic Parsing & Scheduling from the preset dropdown.
- Supported Provider Configuration (BYOK): Provide an API key or local endpoint in
Tempo.ai.init({ providers: [...] })before callingTempo.ai.parseorTempo.ai.schedule. - External Resources & Free Keys:
- Groq Console: Ultra-fast inference with a generous free tier (recommended for quick testing).
- Google AI Studio (Gemini): Free API key for Gemini models.
- OpenAI Platform: Standard GPT-4o / GPT-4o-mini keys.
- Ollama: 100% free, private local LLMs. Note: When running locally for browser access, start Ollama with CORS enabled:
OLLAMA_ORIGINS="*" ollama serve.
WARNING
API Key Safety in Share Links: When you click 📋 Share, the editor content is encoded into the URL hash (#code=...). Never paste production or sensitive API keys into shared snippets. For live testing, use ephemeral personal sandbox keys or local Ollama.
4. Shareable Snippets & Presets
- Share: Click the 📋 Share button in the REPL header to encode your code directly into a shareable URL hash (
#code=...). - Copy Code: Click 📋 Copy Code in the Showcase to grab production-ready TypeScript code for your current visual setup.
5. Keyboard Shortcuts
Ctrl + Enter(Windows/Linux) orCmd + Enter(macOS): Immediately re-evaluate the current editor code.Tab: Inserts 2-space indentation.