@aivue/writer
v1.0.1
Published
In-place AI writing actions for Vue — rewrite, shorten, expand, fix grammar, change tone, and continue, in the style of Notion AI and Grammarly
Maintainers
Readme
@aivue/writer
In-place writing actions for Vue apps. The same edits people expect from Notion AI, Grammarly, and Google Docs: rewrite, shorten, expand, fix grammar, change tone, and continue.
Features
- Rewrite, shorten, expand, fix grammar, change tone, and continue
- Edits the text the user is already writing
- Uses the same
@aivue/coreclient as the rest of the suite useWriterwhen you want the actions without the built-in editor- Vue 2 and Vue 3
npm install @aivue/writer @aivue/core<script setup>
import { ref } from 'vue';
import { AIClient } from '@aivue/core';
import { AiWriter } from '@aivue/writer';
import '@aivue/writer/style.css';
const draft = ref('Paste a paragraph here.');
const client = new AIClient({ provider: 'openai', apiKey: import.meta.env.VITE_OPENAI_API_KEY });
</script>
<template>
<AiWriter v-model="draft" :client="client" />
</template>useWriter is available when you want the actions without the built-in editor.
