About
Parses a database connection string (DSN) into the fields that matter for its specific driver, masking the password by default and flagging insecure or ambiguous settings like disabled SSL or a relative SQLite path.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Connection String to your project and fits it to your theme.
Code
How Connection String is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { ConnectionString } from "@/components/ui/connection-string";
export default function ConnectionStringDemo() {
return (
<div className="flex w-full items-center justify-center bg-background p-6 text-foreground">
<div className="w-full max-w-xl">
<ConnectionString value="postgres://app:s3cr3t-pw@db.internal:5432/production?sslmode=require&pool_max=20" />
</div>
</div>
);
}








