An open API service indexing awesome lists of open source software.

https://github.com/boluwatifee4/foisit

Foisit: Control Any UI with Natural Language. REACT, ANGULAR & VUE
https://github.com/boluwatifee4/foisit

ai assistant-chat-bots chatbot nlp web

Last synced: 4 months ago
JSON representation

Foisit: Control Any UI with Natural Language. REACT, ANGULAR & VUE

Awesome Lists containing this project

README

          

# Foisit: AI-Powered Voice & UI Assistant

Foisit Logo

**Foisit** is an AI-powered assistant for web applications that combines natural language processing with a modern UI overlay.

> [!NOTE] > **Voice Support Status**: Voice recognition and responses are currently in development and will be released in a future update. The current version focuses on high-performance text-based interactions and AI intent matching.

---

## Currently Supported

- **Text-First Assistant**: A sleek, interactive chat overlay for all user queries.
- **Smart Intent (AI)**: Natural language understanding (securely proxied).
- **Critical Actions**: Automated confirmation flow for safe execution of sensitive commands.
- **Deterministic Matching**: Ultra-fast exact matching for predefined commands.
- **Gesture Activation**: Trigger the overlay via a floating watermark (double-click/tap).
- **Framework Wrappers**: Full support for Angular, React, and Vue.

---

## Framework Wrappers

Install the wrapper specifically for your framework. The core engine is included automatically.

| Package | Framework | Installation |
| :-------------------------------------------------- | :-------- | :------------------------------------ |
| [`@foisit/angular-wrapper`](./libs/angular-wrapper) | Angular | `npm install @foisit/angular-wrapper` |
| [`@foisit/react-wrapper`](./libs/react-wrapper) | React | `npm install @foisit/react-wrapper` |
| [`@foisit/vue-wrapper`](./libs/vue-wrapper) | Vue | `npm install @foisit/vue-wrapper` |

---

## Live Demos

Try Foisit in action with our interactive demos:

| Framework | Demo Link | Development Server |
| :-------- | :----------------------------------------------- | :-------------------------- |
| Angular | [View Demo](https://ng-foisit-demo.netlify.app/) | `npx nx serve foisit-ng` |
| React | [View Demo](https://foisit-react.netlify.app/) | `npx nx serve foisit-react` |
| Vue | [View Demo](https://foisit-vue.netlify.app/) | `npx nx serve foisit-vue` |

---

## Quick Start (React Example)

```tsx
import { AssistantProvider } from '@foisit/react-wrapper';

const config = {
enableSmartIntent: true,
introMessage: 'How can I help you today?',
commands: [
{
command: 'dark mode',
action: () => setDarkMode(true),
keywords: ['lights out', 'night'],
},
{
command: 'delete order',
critical: true,
description: 'delete your last order',
action: () => deleteOrder(),
},
],
};

function App() {
return (



);
}
```

---

## Critical Action Confirmation

Foisit automatically handles confirmation for commands marked as `critical: true`.

**User:** "Delete my order"
**Assistant:** "Are you sure you want to delete your last order?"
**Buttons:** [Yes] [No]

---

## Theme Customization

Foisit supports two theme modes:

- **Glass** (default): Glassmorphism with blur effects, adapts to light/dark mode
- **Solid**: Opaque UI with fully customizable colors

```tsx
const config = {
theme: 'solid',
themeColors: {
background: '#1e1e2e',
text: '#cdd6f4',
accent: '#89b4fa',
},
commands: [...],
};
```

---

## Development (Nx Monorepo)

```bash
# Serve Angular Demo
npx nx serve foisit-ng

# Serve React Demo
npx nx serve foisit-react

# Serve Vue Demo
npx nx serve foisit-vue
```

---

## License

Licensed under the **MIT License**.