Legal Wave is an example application that highlights what can be done with the Confido Legal platform.The code is open source and available on GitHub. It utilizes the popular Next.js framework and is written in TypeScript and React. We also use Chakra UI for UI components.Legal Wave’s user account structure mimics a SaaS practice management app which would have multiple Firms, each with their own data, using the application. It allows users to create an account, connect to their Confido Legal account, and accept payments through different payment vehicles. We will be continually updating this codebase.
Try it out!
We’ve hosted the Legal Wave application here. Sign up for an account and
connect a Confido Legal sandbox account to try it out.
confido-legal/legal-wave
Review the code on GitHub, clone the repo and run it locally.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Confido Legal Docs","description":"Confido Legal is a payment platform for law firms, enabling them to accept payments online, manage client billing, and streamline financial operations.","colors":{"primary":"#3182CE","light":"#63B3ED","dark":"#2B6CB0"},"logo":{"light":"https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/logo/confido-light.svg?fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=59e59e04f2624b986bcdb76be415d9ac","dark":"https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/logo/confido-dark.svg?fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=faef7bb026670bc6b43cdd76d13b1a42"},"favicon":"https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/favicon.svg?fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=40f6787c2efddf6e51151ec4257f3e84","navbar":{"links":[],"primary":{"type":"button","label":"Login to Sandbox","href":"https://app.sandbox.confidolegal.com"}},"footer":{"socials":{"github":"https://github.com/confido-legal","linkedin":"https://www.linkedin.com/company/confidolegal/posts?feedView=all"}},"styling":{"codeblocks":"system","latex":false},"errors":{"404":{"redirect":false}},"navigation":{"global":{"anchors":[{"anchor":"GraphQL Playground","icon":"webhook","href":"https://api.sandbox.gravity-legal.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"confido","hasAudioNarration":false,"actualSubdomain":"confido","customDomains":["docs.confidolegal.com"],"gitSource":{"type":"github","owner":"confido-legal","repo":"confido","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b10690b088758b1e121b914","clientVersion":"0.0.4416","searchFilterCounts":[{"language":"default","tag":"Docs","count":40},{"language":"default","tag":"Hosted Fields","count":12},{"language":"default","tag":"onboarding.js","count":7},{"language":"default","tag":"Onboarding.js","count":7},{"language":"default","tag":"hosted-fields.js","count":6},{"language":"default","tag":"Receive Money","count":5},{"language":"default","tag":"Send Money (Disbursements)","count":5},{"language":"default","tag":"Firm Onboarding","count":4},{"language":"default","tag":"Introduction","count":4},{"language":"default","tag":"Payments Lifecycle","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"examples/legal-wave","slug":"/examples/legal-wave","pageMetadata":{"title":"Legal Wave","description":null,"href":"/examples/legal-wave"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,p:`p`,..._provideComponents(),...props.components},{Card}=_components;if(!Card)_missingMdxReference(`Card`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://confido-legal-wave.vercel.app`,children:`Legal Wave`}),` is an example application that highlights what can be done with the Confido Legal platform.`]}),`\n`,_jsxs(_components.p,{children:[`The code is open source and available on `,_jsx(_components.a,{href:`https://github.com/confido-legal/confido-legal-wave`,children:`GitHub`}),`. It utilizes the popular `,_jsx(_components.a,{href:`https://nextjs.org`,children:`Next.js`}),` framework and is written in TypeScript and React. We also use `,_jsx(_components.a,{href:`https://chakra-ui.com/`,children:`Chakra UI`}),` for UI components.`]}),`\n`,_jsx(_components.p,{children:`Legal Wave’s user account structure mimics a SaaS practice management app which would have multiple Firms, each with their own data, using the application. It allows users to create an account, connect to their Confido Legal account, and accept payments through different payment vehicles. We will be continually updating this codebase.`}),`\n`,_jsx(Card,{title:`Try it out!`,href:`https://confido-legal-wave.vercel.app/signup`,cta:`https://confido-legal-wave.vercel.app`,img:`https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/images/legal-wave-screenshot.png?fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=bad9e2bdf978c08230bb86b525a66a69`,\"data-og-width\":`1747`,width:`1747`,\"data-og-height\":`854`,height:`854`,\"data-path\":`images/legal-wave-screenshot.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/images/legal-wave-screenshot.png?w=280\u0026fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=38e30aca9c9e29273c5cdf2787294b4a 280w, https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/images/legal-wave-screenshot.png?w=560\u0026fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=3a4af6a0e902b6e9d9e412de2e3e7b5e 560w, https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/images/legal-wave-screenshot.png?w=840\u0026fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=273ab99d3439d7d2484e263134833352 840w, https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/images/legal-wave-screenshot.png?w=1100\u0026fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=7e65d592f661ce9147ee3845769728f0 1100w, https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/images/legal-wave-screenshot.png?w=1650\u0026fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=3dc49527d4ad712027de49e1ea5d2f21 1650w, https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/images/legal-wave-screenshot.png?w=2500\u0026fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=277ac0bb7fa91ee2417d988463fa6440 2500w`,children:_jsx(_components.p,{children:`We’ve hosted the Legal Wave application here. Sign up for an account and\nconnect a Confido Legal sandbox account to try it out.`})}),`\n`,_jsx(Card,{title:`confido-legal/legal-wave`,icon:`github`,href:`https://github.com/confido-legal/confido-legal-wave`,children:_jsx(_components.p,{children:`Review the code on GitHub, clone the repo and run it locally.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Legal Wave","description":null,"href":"/examples/legal-wave"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"confido","siteName":"Confido Legal Docs","title":"Legal Wave - Confido Legal Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T22:56:27.890Z","originalFileLocation":"examples/legal-wave.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Confido Legal Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Legal Wave - Confido Legal Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Confido Legal Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.confidolegal.com/examples/legal-wave\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://confido.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Legal+Wave\u0026amp;theme=12ecdbe0b967a4cd4a43c39f\u0026amp;signature=fcffb561da427479688db4da8475748a2cc2b99317a24220e112cc6370f90e0d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Legal Wave - Confido Legal Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://confido.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Legal+Wave\u0026amp;theme=12ecdbe0b967a4cd4a43c39f\u0026amp;signature=fcffb561da427479688db4da8475748a2cc2b99317a24220e112cc6370f90e0d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/confido/0kX2bqucJpSMOF-O/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Confido Legal Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3182CE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.confidolegal.com/examples/legal-wave\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/examples/legal-wave.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.confidolegal.com/#organization\",\"name\":\"Confido Legal Docs\",\"url\":\"https://docs.confidolegal.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/confido/lCdATAQyzqcZ3EaC/logo/confido-light.svg?fit=max\u0026auto=format\u0026n=lCdATAQyzqcZ3EaC\u0026q=85\u0026s=59e59e04f2624b986bcdb76be415d9ac\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.confidolegal.com#website\",\"name\":\"Confido Legal Docs\",\"url\":\"https://docs.confidolegal.com\",\"publisher\":{\"@id\":\"https://docs.confidolegal.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.confidolegal.com/examples/legal-wave#webpage\",\"url\":\"https://docs.confidolegal.com/examples/legal-wave\",\"name\":\"Legal Wave\",\"dateModified\":\"2026-10-30T22:56:27.890Z\",\"isPartOf\":{\"@id\":\"https://docs.confidolegal.com#website\"}},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.confidolegal.com/examples/legal-wave#article\",\"headline\":\"Legal Wave\",\"name\":\"Legal Wave\",\"url\":\"https://docs.confidolegal.com/examples/legal-wave\",\"mainEntityOfPage\":{\"@id\":\"https://docs.confidolegal.com/examples/legal-wave#webpage\"},\"dateModified\":\"2026-10-30T22:56:27.890Z\",\"publisher\":{\"@id\":\"https://docs.confidolegal.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.confidolegal.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Confido Legal Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Confido Legal Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/examples/legal-wave.md","siteName":"Confido Legal Docs","nav":{"global":{"anchors":[{"anchor":"GraphQL Playground","icon":"webhook","href":"https://api.sandbox.gravity-legal.com"}]},"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":"/docs/introduction/overview"}]},{"tab":"hosted-fields.js","pages":[{"title":"hosted-fields.js","href":"/hosted-fields-js/overview"}]},{"tab":"onboarding.js","pages":[{"title":"onboarding.js","href":"/onboarding-js/overview"}]},{"tab":"Examples","pages":[{"title":"Legal Wave","href":"/examples/legal-wave"},{"title":"CodeSandbox","description":null,"href":"/examples/code-sandbox"}]},{"tab":"Migrations","pages":[{"title":"Migrations","href":"/migrations/voids-and-refunds-migration"}]},{"tab":"Upcoming Changes","pages":[{"title":"Upcoming Changes","href":"/upcoming-changes/firm-declined-status"}]},{"tab":"Salesforce","pages":[{"title":"Salesforce","href":"/salesforce/overview"}]}]},"basePath":"","title":"Legal Wave - Confido Legal Docs","deploymentId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","buildId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","dynamics":[],"chunks":[]}