An opinionated framework for building terminally online agentic apps.
# Using npm
npx create-fatduck-app my-ai-app
# Using bun
bunx create-fatduck-app my-ai-app
The template sets up a complete AI application environment with:
- Twitter integration for AI-powered tweets
- Telegram bot support
- GitHub integration
- Environment configuration
- TypeScript support out of the box
# Create a new FatDuck app
clone this repo
# Navigate to your project
cd my-ai-app
# Install dependencies
npm install
# or
bun install
# Add Twitter integration
fatduckai add tweet
# Add Telegram bot
fatduckai add telegram
# These commands will create the necessary files and configurations
Create a .env
file in your project root:
# Telegram Configuration (added by fatduckai add telegram)
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
OPENAI_API_KEY=your_openai_api_key
# To Run
npm run start
or
bun ./src/index.ts
create-fatduckai-app/
├── .env
├── ai/
│ ├── prompts/
│ │ └── tweet.ts
│ └── tools/
│ └── btc-price.ts
├── src/
│ ├── clients/
│ │ └── telegram/
├── package.json
└── tsconfig.json
After adding the Twitter integration:
- Set up your Twitter Developer account
- Create a new app in the Twitter Developer Portal
- Generate API keys and tokens
- Add them to your
.env
file
After adding the Telegram integration:
- Create a new bot via BotFather
- Get your bot token
- Add it to your
.env
file
- Generate a GitHub Personal Access Token
- Add it to your
.env
file asGITHUB_TOKEN
# Run in development mode
npm run dev
# or
bun run dev
# Build for production
npm run build
# or
bun run build
# Start production server
npm start
# or
bun start
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.