Skip to content

Constrainly is a modern web platform for generating constraint-based test cases for competitive programming and algorithm problems. It provides an intuitive interface to define variables with complex relationships and automatically generate valid test data.

Notifications You must be signed in to change notification settings

shashanksingh2002/constrainly

Repository files navigation

Constrainly - Test Case Generator

Constrainly is a modern web platform for generating constraint-based test cases for competitive programming and algorithm problems. It provides an intuitive interface to define variables with complex relationships and automatically generate valid test data.

🎯 Key Features

  • Variable Types: Support for scalars, arrays, matrices, strings, trees, and graphs
  • Smart Dependencies: Variables can depend on other variables' runtime values
  • Constraint System: Define min/max ranges, relationships, and custom rules
  • Visual Dependency Graph: Interactive visualization of variable relationships
  • Flexible Output Formats: Customize how test cases are formatted and structured
  • Authentication: Secure Google OAuth login with user management
  • Database Integration: Persistent storage with Neon PostgreSQL and Redis caching

🔧 How It Works

  1. Define Variables: Create variables (n, array, matrix, etc.) with constraints
  2. Set Dependencies: Link variables so one depends on another's generated value
  3. Configure Output: Choose how test cases should be formatted
  4. Generate: Automatically create multiple valid test cases respecting all constraints

💡 Perfect For

  • Competitive programming contest preparation
  • Algorithm testing and validation
  • Educational programming exercises
  • Automated test case generation for coding interviews

Built with Next.js, TypeScript, Tailwind CSS, and modern web technologies for a seamless developer experience.

About

Constrainly is a modern web platform for generating constraint-based test cases for competitive programming and algorithm problems. It provides an intuitive interface to define variables with complex relationships and automatically generate valid test data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published