https://github.com/fireproof-storage/use-vibes
Transform any DOM element into an AI-augmented micro-app
https://github.com/fireproof-storage/use-vibes
Last synced: about 1 year ago
JSON representation
Transform any DOM element into an AI-augmented micro-app
- Host: GitHub
- URL: https://github.com/fireproof-storage/use-vibes
- Owner: fireproof-storage
- License: other
- Created: 2025-03-30T20:51:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-14T00:32:25.000Z (about 1 year ago)
- Last Synced: 2025-05-14T00:35:43.190Z (about 1 year ago)
- Language: TypeScript
- Size: 796 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# use-vibes
A lightweight library that transforms any DOM element into an AI-powered micro-app.
## Installation
```bash
pnpm add use-vibes
```
## Components
### ImgGen
A React component for generating images with AI:
```jsx
import { ImgGen } from 'use-vibes';
function MyComponent() {
return (
);
}
```
#### Props
- `prompt`: Text prompt for image generation (required)
- `options`: Options for image generation (optional)
- `className`: CSS class name for the image element (optional)
- `alt`: Alt text for the image (defaults to prompt)
## Development
```bash
# Install dependencies
pnpm install
# Build the library
pnpm build
# Run tests
pnpm test
```
## License
MIT