convex

Create reactive backends with typed TypeScript server functions and live subscriptions.

2|Updated Jul 15, 2024
One-click install
npx skills add https://github.com/choufeng/impersonate-agents --skill convex-choufeng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convex
Source: https://github.com/choufeng/impersonate-agents/tree/main/.claude/skills/convex
Command: npx skills add https://github.com/choufeng/impersonate-agents --skill convex-choufeng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convex reduces boilerplate in building reactive backends by letting you implement server-side logic as TypeScript functions, with automatic real-time updates, authentication, storage, and client integration.

Core Features & Use Cases

  • Reactive queries and mutations: write TypeScript server code and automatically receive live updates on clients.

  • Server Functions & Actions: encapsulate business logic that can mutate data or call external APIs safely.

  • End-to-end type safety: seamless type inference from database to client.

  • Real-time subscriptions and storage integration with popular frontends (React/Next.js).

  • Use Case: build a collaborative task app or chat system with live data synchronization and secure authentication.

Quick Start

Install the Convex CLI, scaffold a project with convex create, run convex dev to start a local backend, and connect your frontend to the generated API.

Frequently Asked Questions about convex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a reactive backend with real-time data in TypeScript?

To build a reactive backend, write TypeScript server functions that automatically push live data updates to connected clients. This approach eliminates manual WebSocket management and provides real-time synchronization for collaborative applications.

How does Convex handle real-time subscriptions for Next.js and React applications?

Convex handles real-time subscriptions by automatically syncing reactive query results to React and Next.js frontends. When server-side data mutates, subscribed clients receive instant updates without requiring manual API refetching.

Can I implement authentication and server functions for a full-stack TypeScript app?

Yes, you can implement authentication and server functions by writing TypeScript logic that runs on the server. These functions securely manage data mutations, user authentication, and external API calls with end-to-end type safety.

What do I need to set up a reactive backend with Convex?

You need Node.js, TypeScript, and the Convex CLI to set up a reactive backend. Running the scaffold command generates type-safe APIs and starts the local backend server for immediate frontend integration.

Does end-to-end type safety work from the database to the client?

Yes, end-to-end type safety works seamlessly from the database to the client. Convex tooling automatically generates type-safe APIs, inferring TypeScript types through reactive queries and mutations down to your frontend code.

What are the limitations of using reactive backends for server-side logic?

Using reactive backends requires strict adherence to the generated TypeScript server functions and tooling. Developers are constrained by the platform's specific data mutation patterns and must rely on its built-in storage and real-time subscription mechanisms.