Skip to content

murabcd/fragmenta

Repository files navigation

Modern Form Builder Built With Next.js.

Modern Form Builder Built With Next.js, Convex, and AI SDK.

  • Drag-and-drop form builder with live preview and customization
  • Supports multiple question types, validation, and conditional logic
  • Easy form sharing, embedding, and real-time response collection
  • Workspace and team management with roles and permissions
  • Secure authentication with OAuth and password protection

Features · Model provider Deploy your own · Running locally


Features

  • Next.js App Router
    • Advanced routing for seamless navigation and performance
    • React Server Components for server-side rendering and increased performance
  • Convex
    • Real-time database for storing form data and responses
    • Backend functions for form logic and processing
  • Convex Auth
    • Simple and secure authentication without external services
    • Built-in support for magic links, OTPs, OAuth, and password authentication
  • AI SDK
    • Unified API for generating text, structured objects, and tool calls with LLMs
    • Hooks for building dynamic chat and generative user interfaces
  • Shadcn/ui

Model Providers

This app ships with Openai provider as the default. However, with the AI SDK, you can switch LLM providers to Ollama, Anthropic, Cohere, and many more with just a few lines of code.

Deploy your own

You can deploy your own version of Fragmenta to Vercel with one click:

Deploy with Vercel

Running locally

You will need to use the environment variables defined in .env.example to run Fragmenta. It's recommended you use Vercel Environment Variables for this, but a .env file is all that is necessary.

Note: You should not commit your .env file or it will expose secrets that will allow others to control access to your various Convex and authentication provider accounts.

  1. Install Vercel CLI: npm i -g vercel
  2. Link local instance with Vercel and GitHub accounts (creates .vercel directory): vercel link
  3. Download your environment variables: vercel env pull
npm install
npm run dev

Your app should now be running on localhost:3000.

About

Modern Form Builder Built with Next.js, AI SDK and Convex

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published