Skip to content

AnasAlhwid/autolink

Repository files navigation

Autolink

Automate anything. Always.

Website


Next.js React TypeScript TailwindCSS Shadcn React Flow Jotai Neon Prisma tRPC TanStack Better Auth Inngest Polar Vercel

AutoLink Screenshot

Autolink is a visual workflow automation platform where you design, manage, and execute automated workflows using a drag-and-drop editor. Connect triggers, AI models, HTTP requests, and messaging services into powerful automation sequences. No code required.

πŸ–ΌοΈ Visual Workflow Editor β€” Drag-and-drop canvas powered by React Flow for building automation sequences visually.

πŸ“ Multi-Trigger Support β€” Start workflows with a manual trigger, Google Form submission, Stripe webhook event, and more.

πŸ€– AI Node Types β€” Integrate Anthropic (Claude), OpenAI (GPT), Google Gemini, and more directly into your workflows.

🌐 HTTP Request Node β€” Make arbitrary HTTP calls to any external API as a workflow step.

πŸ’¬ Messaging Nodes β€” Send messages to Discord channels or Slack workspaces automatically.

πŸ” Encrypted Credential Storage β€” Store and manage API keys per provider with AES encryption.

πŸ•‘ Real-Time Execution Tracking β€” Monitor workflow runs live with status, output, and full error logs.

πŸ“„ Execution History β€” Browse a paginated history of all past runs per workflow.

πŸͺ™ Subscription Tiers β€” Polar-powered premium plan gating advanced features.

πŸͺͺ Authentication β€” GitHub & Google OAuth plus email/password sign-in via Better Auth.

and many more, including code architecture and reusability.

Category Technology
Framework Next.js 16 (App Router, React Server Components)
UI Library React 19, Shadcn, Tailwind CSS 4
Visual Editor React Flow (@xyflow/react)
API Layer tRPC v11 + TanStack React Query v5
State Management Jotai
Database PostgreSQL (Neon) via Prisma 7 ORM
Authentication Better Auth v1.4
Subscriptions Polar
AI Providers Vercel AI SDK
Background Jobs Inngest
Encryption Cryptr
Error Monitoring Sentry
Linting / Formatting Biome
Language TypeScript 5

Follow these steps to set up the project locally on your machine.

πŸ“ƒ Prerequisites

πŸ› οΈ Installation & Development

  1. Installation

    # Clone the repository
    git clone https://github.com/AnasAlhwid/autolink.git
    
    # Navigate to the directory
    cd autolink
    
    # Install dependencies
    npm install
  2. Set Up Environment Variables

    Create a new file named .env in the root of your project and add the following content:

    # PostgreSQL connection string (e.g. Neon)
    DATABASE_URL=""
    
    # Random secret key for "Better Auth" session signing
    BETTER_AUTH_SECRET=""
    
    # Base URL of the app (e.g. http://localhost:3000)
    BETTER_AUTH_URL=""
    
    # Comma-separated list of allowed origins
    TRUSTED_ORIGINS=""
    
    # GitHub OAuth app client ID
    GITHUB_CLIENT_ID=""
    
    # GitHub OAuth app client secret
    GITHUB_CLIENT_SECRET=""
    
    # Google OAuth client ID
    GOOGLE_CLIENT_ID=""
    
    # Google OAuth client secret
    GOOGLE_CLIENT_SECRET=""
    
    # Sentry auth token for error monitoring
    SENTRY_AUTH_TOKEN=""
    
    # Polar access token for subscription management
    POLAR_ACCESS_TOKEN=""
    
    # Redirect URL after successful Polar checkout (e.g. http://localhost:3000)
    POLAR_SUCCESS_URL=""
    
    # Publicly accessible app URL (e.g. http://localhost:3000)
    NEXT_PUBLIC_APP_URL=""
    
    # Secret key used by Cryptr to encrypt stored credentials
    ENCRYPTION_KEY=""
    
    # Ngrok tunnel URL for local webhook testing
    NGROK_URL=""
  3. Start the development server

    # Start Next.js server
    npm run dev
    
    # Start Inngest CLI for local webhook testing
    npx inngest-cli@latest dev

    Open http://localhost:3000 in your browser. The root path redirects to /workflows.

Command Description
npm run dev Start the development server at http://localhost:3000
npm run build Production build (runs prisma generate then next build)
npm run start Start the production server
npm run lint Lint source files with Biome
npm run format Auto-format source files with Biome
npm run ngrok:dev Start an ngrok tunnel for local webhook testing
prisma/
β”œβ”€β”€ schema.prisma          # Database schema
└── migrations/            # Migration history
public/
└── logos                  # Logo assets
src/
β”œβ”€β”€ app/                   # Next.js App Router
β”‚   β”œβ”€β”€ (auth)/            # Login & signup pages
β”‚   β”œβ”€β”€ (dashboard)/
β”‚   β”‚   β”œβ”€β”€ (editor)/      # Visual workflow editor route
β”‚   β”‚   └── (rest)/        # Workflows, credentials, executions pages
β”‚   └── api/               # API routes (auth, tRPC, Inngest, webhooks)
β”œβ”€β”€ components/            # Shared UI components (shadcn/ui, React Flow)
β”œβ”€β”€ config/                # Node type registry, constants
β”œβ”€β”€ features/              # Feature-scoped logic
β”‚   β”œβ”€β”€ auth/              # Auth forms
β”‚   β”œβ”€β”€ credentials/       # Credential CRUD (encrypted API keys)
β”‚   β”œβ”€β”€ editor/            # Visual editor components & Jotai atoms
β”‚   β”œβ”€β”€ executions/        # Execution UI & per-node executor components
β”‚   β”œβ”€β”€ subscriptions/     # Polar subscription integration
β”‚   β”œβ”€β”€ triggers/          # Trigger node components
β”‚   └── workflows/         # Workflow CRUD, hooks, tRPC routers
|── hooks/                 # Custom hooks 
β”œβ”€β”€ inngest/               # Inngest client, functions, per-node channels
β”œβ”€β”€ lib/                   # Auth, Prisma, Polar, encryption, utilities
└── trpc/                  # tRPC client, server, routers

Email Β  LinkedIn Β  X Β  GitHub

About

Autolink is a visual workflow automation platform where you design, manage, and execute automated workflows using a drag-and-drop editor. Connect triggers, AI models, HTTP requests, and messaging services into powerful automation sequences. No code required.

Topics

Resources

Stars

Watchers

Forks

Contributors