Show HN: Time-aware utilities for LLM prompts (TypeScript)

time-ai.blueprintlab.io

1 points by yaoke259 7 hours ago

TL;DR: A lightweight TS library to parse natural-language dates and inject temporal context into LLM prompts. It turns vague phrases like "tomorrow" into precise, timezone-aware dates to reduce ambiguity in agents, schedulers, and chatbots.

Why you might care: - Fewer ambiguous instructions ("next Tuesday" -> 2025-09-23) - Works across timezones/locales - Choose formatting strategy: preserve, normalize, or hybrid

Quick example:

``` enhancePrompt("Schedule a demo next Tuesday and remind me tomorrow") → "Schedule a demo next Tuesday (2025-09-23) and remind me tomorrow (2025-09-16)" ```

Links: - Project: https://time-ai.blueprintlab.io - GitHub: https://github.com/BlueprintLabIO/time-ai - NPM: https://www.npmjs.com/package/@blueprintlabio/time-ai

Would love feedback on real-world prompts, tricky date phrases, and missing patterns.