astralyxdev

Connection String

Component

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>
  );
}

Dependencies

More by astralyxdev

View all
  • Rate Limit Meter

    Rate Limit Meter

    18
  • Note Graph

    Note Graph

    13
  • Prompt Versions

    Prompt Versions

    7
  • Migration List

    Migration List

    7
  • IP Cluster

    IP Cluster

    7
  • Checkout Summary

    Checkout Summary

    7
  • Odds Display

    Odds Display

    5
  • Budget Guard

    Budget Guard

    5