Readme
Faltown is a full-stack application that combines the power of fal.ai for image generation with the serverless capabilities of val.town.
This app provides a simplified version of Midjourney, allowing users to generate images using simple text prompts.
- Full-Stack TypeScript Application: Built using TypeScript, Hono, and React.
- Serverless Architecture: Leverages val.town's serverless platform for seameless JavaScript development and deployment-free runtime.
- AI-Powered Image Generation: Utilizes fal.ai's machine learning capabilities to generate images based on user prompts.
- Real-Time Updates: Uses React Query for efficient data fetching and real-time UI updates.
- User Authentication: Integrates with val.town's authentication system.
- Rate Limiting: Implements tier-based rate limiting for API requests based on rlimit.
- MainPage Component: The main React component that renders the user interface.
- ImageGenerationRow Component: Displays individual image generation results.
- API Client: Handles communication with the backend API.
- Server-Side App: Implements the Hono-based server, including API endpoints, rate limiting and authentication logic.
To deploy this application on val.town:
- Create a val.town account and set up your environment.
- Set the following environment variables:
FALTOWN_FAL_API_KEY
: Your fal.ai API keyFALTOWN_RLIMIT_NAMESPACE
: Namespace for rate limiting (optional)
- Deploy the code to your val.town environment.
- Navigate to the deployed application URL.
- Sign in using your val.town account.
- Enter a text prompt and select desired image size.
- Click "Generate" to create AI-generated images.
- View your generation history and results in the interface below.
Contributions to Faltown are welcome! Please feel free to submit pull requests or create issues for bugs and feature requests.
Developed with ❤️ using fal.ai and val.town
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
fal-faltown.web.val.run
Updated: October 31, 2024