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

@orcapt/orca-components

v1.0.1

Published

Orca native components for rendering special content markers in Vue applications

Readme

🐋 Orca Components

npm version License: MIT

Native Vue 3 components for rendering rich content using Orca Markers. Designed for chat applications, messaging systems, and any interface that requires dynamic content rendering with Vuetify.

✨ Features

  • 🖼️ Image Display - With modal zoom and loading states
  • 🎬 Video Playback - Video.js player and YouTube embed support
  • 🎵 Audio Player - Customizable audio playback
  • 🗺️ Maps - Mapbox GL JS integration
  • 🎴 Card Lists - Display content in beautiful card layouts
  • 🔘 Interactive Buttons - Action and link buttons with events
  • 📝 Markdown - Full markdown rendering with syntax highlighting
  • Loading States - Smart loading indicators for all content types
  • 🔍 Tracing - Debug trace logs display
  • 🎯 TypeScript - Full TypeScript support with type definitions
  • 🎨 Tailwind CSS - Built with Tailwind utility classes (prefixed tw-)
  • 🚀 Stream Support - Real-time content streaming compatible

📦 Installation

From NPM

npm install @orcapt/orca-components
# or
yarn add @orcapt/orca-components
# or
pnpm add @orcapt/orca-components

Package: @orcapt/orca-components


🚀 Quick Start

1. Basic Usage

<script setup lang="ts">
import { OrcaMarkdown } from "@orcapt/orca-components";
import "@orcapt/orca-components/style.css";
import { ref } from "vue";

const message = ref(`
Hello! This is a test message.

[orca.image.start]
https://example.com/image.jpg
[orca.image.end]
`);
</script>

<template>
  <OrcaMarkdown :description="message" role="assistant" :isLastMessage="true" />
</template>

2. With Event Handling

<script setup lang="ts">
import { OrcaMarkdown } from "@orcapt/orca-components";
import "@orcapt/orca-components/style.css";

const handleButtonClick = async (data) => {
  console.log("Button clicked:", data);
  // Send to backend or update store
};
</script>

<template>
  <OrcaMarkdown
    v-for="msg in messages"
    :key="msg.id"
    :description="msg.content"
    :role="msg.role"
    :isLastMessage="msg.id === lastMessageId"
    @send-message="handleButtonClick"
  />
</template>

📚 Orca Markers Reference

📖 Complete Reference: See MARKERS_REFERENCE.md for a comprehensive guide to all supported markers.

🖼️ Images

[orca.image.start]
https://example.com/image.jpg
[orca.image.end]

With loading state:

[orca.loading.image.start]

[orca.image.start]
https://example.com/image.jpg
[orca.image.end]

🎬 Videos

Regular Video:

[orca.video.start]
https://example.com/video.mp4
[orca.video.end]

YouTube:

[orca.youtube.start]
https://www.youtube.com/watch?v=dQw4w9WgXcQ
[orca.youtube.end]

With Loading:

[orca.loading.video.start]

[orca.video.start]
https://example.com/video.mp4
[orca.video.end]

🗺️ Maps (Location)

[orca.location.start]
35.6892, 51.3890
[orca.location.end]

🔘 Buttons

[orca.buttons.start]
- type: action
  label: Option 1
  id: option1
  color: primary
  row: 1
- type: action
  label: Option 2
  id: option2
  color: secondary
  row: 1
- type: link
  label: Visit Website
  url: https://example.com
  color: info
  row: 2
[orca.buttons.end]

Properties:

  • type: action or link
  • color: Vuetify colors (primary, secondary, error, success, warning, info)
  • row: Row number for grouping buttons
  • id: Unique identifier (for action buttons)
  • url: Link URL (for link buttons)

🎴 Card Lists

[orca.list.card.start]
- photo: https://example.com/image1.jpg
  header: Card Title 1
  subheader: Card description 1
  text: Additional content for card 1
- photo: https://example.com/image2.jpg
  header: Card Title 2
  subheader: Card description 2
  text: Additional content for card 2
[orca.list.card.end]

With Loading:

[orca.loading.card.start]

🎵 Audio

[orca.audio.start]
- label: Track 1
  url: https://example.com/audio1.mp3
  type: audio/mp3
- label: Track 2
  url: https://example.com/audio2.mp3
  type: audio/mp3
[orca.audio.end]

🔍 Tracing (Debug)

[orca.tracing.start]
visibility: admin
content: {
  "request_id": "req_123456",
  "timestamp": "2024-12-10T12:00:00Z",
  "duration": "245ms",
  "status": "success"
}
[orca.tracing.end]

Visibility Options:

  • all: Visible to everyone
  • admin: Only visible to admins

⏳ Loading States

General Loading:

[orca.loading.start]

Image Loading:

[orca.loading.image.start]

Video Loading:

[orca.loading.video.start]

Card Loading:

[orca.loading.card.start]

Note: Loading markers don't need an end tag - they're replaced when actual content arrives.


🎯 Props

interface OrcaMarkdownProps {
  /** Content string with Orca markers */
  description: string;

  /** Sender role */
  role: "user" | "assistant";

  /** Additional images */
  images?: Record<string, any>;

  /** Attached files */
  fileAttachments?: string[];

  /** Is this the last message? (enables buttons) */
  isLastMessage?: boolean;

  /** Store identifier for message management */
  storeIdentifier?: string;

  /** Visibility level */
  visibility?: "all" | "admin";

  /** Agent ID */
  agentId?: string;

  /** Message ID */
  messageId?: string;
}

📤 Events

@send-message

Emitted when user clicks action buttons:

interface SendMessageData {
  message: string;
  buttonData?: ButtonData;
  type: "text" | "button-action" | "button-link";
}

Example:

<OrcaMarkdown
  :description="message"
  role="assistant"
  @send-message="handleSendMessage"
/>

<script setup>
const handleSendMessage = (data) => {
  console.log("Message:", data.message);
  console.log("Button:", data.buttonData);
  // Send to server or update store
};
</script>

🔧 Advanced Configuration

Mapbox Token Setup

The component uses a default token, but for production you should use your own:

// In your main app file
import mapboxgl from "mapbox-gl";

mapboxgl.accessToken = "YOUR_MAPBOX_TOKEN";

Custom Styling

<style scoped>
/* Override default styles */
:deep(.message-content) {
  /* Custom styles */
}

:deep(.image-container img) {
  border-radius: 20px;
}

:deep(.action-button) {
  font-size: 16px;
}
</style>

Tailwind Classes

All Tailwind classes are prefixed with tw- to avoid conflicts:

<div class="tw-flex tw-items-center tw-gap-4">
  <!-- Your content -->
</div>

🛠️ Development

Local Development

# Clone repository
git clone <repository-url>
cd orca-components-package

# Install dependencies
npm install --legacy-peer-deps

# Start dev server
npm run dev

# Build package
npm run build

# Type check
npm run type-check

Quick Deploy (for local testing)

# Build, pack, and install in one command
npm run quick-deploy

# Or use the bash script
./dev-deploy.sh

See DEV_GUIDE.md for detailed development instructions.


📝 Changelog

See CHANGELOG.md for release notes.


📖 Complete Markers Reference

For a complete reference of all supported Orca markers, see MARKERS_REFERENCE.md.

This includes:

  • ✅ All loading markers (orca.loading.*, orca.image.loading, etc.)
  • ✅ All content markers (image, video, location, card, buttons, audio, tracing)
  • ✅ Complete usage examples
  • ✅ Best practices
  • ✅ Format specifications

🤝 Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

🐛 Bug Reports

To report bugs or request features:


📄 License

MIT © Orca Team


🙏 Credits

Built with amazing tools:


Made with ❤️ by the Orca Team