npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@eonui/ai-prompts

v0.1.1

Published

`@eonui/ai-prompts` is the prompt-asset package for EonUI-driven generation workflows. It packages system rules, task templates, guardrails, and example request/output pairs so AI-assisted flows can stay aligned with the EonUI component system instead of

Readme

@eonui/ai-prompts

@eonui/ai-prompts is the prompt-asset package for EonUI-driven generation workflows. It packages system rules, task templates, guardrails, and example request/output pairs so AI-assisted flows can stay aligned with the EonUI component system instead of drifting into invented tags, props, or layouts.

Workspace Note

This folder currently documents the published package surface. The implementation source for @eonui/ai-prompts is not mirrored into revamp/eonui/packages/ai-prompts yet, so this README is the local documentation home for the package.

Docs And Live Reference

Use this README for package-level guidance, export details, and implementation examples. For broader product context, visual references, and the evolving EonUI platform story, refer to https://eonui.com.

Purpose

Use this package when you need to:

  • build prompts for EonUI page generation
  • constrain AI output to documented components
  • seed few-shot examples for forms or dashboards
  • keep prompt rules shared across tools and runtimes

It is especially useful for layout builders, AI Studio features, CMS copilots, and internal automation that should emit Eon-flavored UI instead of generic HTML.

What The Package Exposes Today

The current package ships:

  • systemRules
  • pagePromptTemplate
  • formPromptTemplate
  • dashboardPromptTemplate
  • aiPromptLibrary
  • aiPromptGuide

The packaged library currently includes:

  • a system-rules block focused on documented Eon components
  • page, form, and dashboard templates
  • guardrails that prevent invented props or non-manifest component usage
  • natural-language request/output examples

Install

npm install @eonui/ai-prompts

Recommended Usage Pattern

The cleanest way to use this package is:

  1. start with systemRules
  2. choose the closest template such as pagePromptTemplate, formPromptTemplate, or dashboardPromptTemplate
  3. inject your real product constraints such as domain, target user, allowed components, and success criteria
  4. keep the expected output format explicit so the downstream system can validate or parse it

This package is especially useful when you want consistent AI generation behavior across:

  • internal page builders
  • layout copilots
  • prompt-backed prototyping workflows
  • content or UI generation experiments that should stay aligned with the Eon design language

Example 1: Build a full prompt for page generation

import {
  systemRules,
  pagePromptTemplate
} from '@eonui/ai-prompts';

const userRequest = 'Create a responsive analytics landing page with a KPI row and activity feed.';

const prompt = [
  systemRules.trim(),
  pagePromptTemplate.trim(),
  `User request: ${userRequest}`
].join('\n\n');

console.log(prompt);

Use this when:

  • sending prompts to a model at runtime
  • generating screens from product requirements
  • keeping page generation consistent across multiple tools

Example 2: Pull a specific template from the prompt library

import { aiPromptLibrary } from '@eonui/ai-prompts';

const dashboardPrompt = aiPromptLibrary.templates.dashboard;

console.log(aiPromptLibrary.guardrails);
console.log(dashboardPrompt);

Use this when:

  • you want prompt templates keyed by intent
  • a UI flow needs to switch between page, form, and dashboard generation
  • you are building an internal prompt registry

Example 3: Reuse the few-shot examples

import { aiPromptLibrary } from '@eonui/ai-prompts';

for (const example of aiPromptLibrary.naturalLanguageExamples) {
  console.log(example.request);
  console.log(example.output);
}

Use this when:

  • bootstrapping few-shot prompts
  • building evaluation datasets
  • testing whether a model stays inside EonUI composition rules

Example 4: Show prompt coverage in a docs or admin screen

import { aiPromptGuide } from '@eonui/ai-prompts';

console.log(aiPromptGuide.templates);
console.log(aiPromptGuide.exampleCount);
console.log(aiPromptGuide.guardrails);

Use this when:

  • documenting what the prompt package supports
  • checking prompt inventory in CI or release tooling
  • exposing prompt system capabilities in admin UI

Troubleshooting And Prompt Quality Notes

If the model output feels inconsistent, the usual issue is not the package itself but prompt assembly.

  • If the model ignores structure, restate the response contract near the end of the prompt.
  • If the model invents unsupported components, append an allowlist from your manifest or component registry.
  • If outputs are too generic, inject stronger product context such as audience, data shape, and required states.
  • If results vary too much across runs, keep examples and evaluation criteria stable and version your prompt composition logic.

Where This Package Fits

@eonui/ai-prompts works best alongside:

  • @eonui/manifest for documented component and chart structure
  • @eonui/core for the actual component vocabulary
  • @eonui/angular, @eonui/react, or @eonui/vue when generation targets a specific framework shell

Current Limitations

  • it is a prompt asset package, not a model SDK
  • it does not perform validation by itself
  • templates are intentionally generic and should usually be paired with manifest data
  • prompt selection and provider orchestration still belong in application code or an API layer

Future Prospects

Strong next steps for this package include:

  • prompt packs by feature area such as auth, settings, analytics, and commerce
  • manifest-aware prompt composition helpers
  • structured evaluation sets for regression testing
  • framework-specific generation templates
  • richer guardrails around charts, slots, and theme behavior