PageSourceSearch

https://bani.africa/_next/static/chunks/5497-7a34ac85e9204df9.js

js bani.africa collected 2026-10-03 21:43:30 UTC 11,209 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5497],{6695:function(e,t,s){s.r(t);var l=s(5893),a=s(7294),i=s(7219),r=s(2446),n=s(240);let x="npx -y bani-mcp",d=()=>{let[e,t]=(0,a.useState)(!1),s=async()=>{try{await navigator.clipboard.writeText(x),t(!0),setTimeout(()=>t(!1),2e3)}catch(e){t(!1)}};return(0,l.jsxs)("div",{className:"relative flex flex-col justify-center items-start sm:items-center text-center md:text-left w-full md:w-[85%] lg:w-[80%] h-fit z-[5] min-h-[400px] max-h-[700px] website-banner-alt px-5 md:px-[5%] lg:px-[8%]",children:[(0,l.jsx)("div",{className:"blue-fade-gradient absolute top-[20%] left-1/2 -translate-x-1/2 w-[60%] h-[40%] rounded-full -z-10"}),(0,l.jsx)("p",{className:"text-grey-text basier-medium leading-none bani-base mb-6 md:mb-8",children:"BANI MCP SERVER"}),(0,l.jsxs)("h1",{className:"text-black bani-heading mb-5 md:mb-6 text-left sm:text-center",children:["Bani, inside your ",(0,l.jsx)("br",{className:"sm:hidden"}),(0,l.jsx)("span",{className:"text-blue-gradient",children:"AI assistant"})]}),(0,l.jsx)("p",{className:"text-grey-text font-light bani-title mb-8 md:mb-10 text-left sm:text-center",children:"Connect Claude, Cursor, VS Code or any MCP client to your Bani account. Create customers, collect payments, send payouts, verify identities and pay bills, just by asking."}),(0,l.jsxs)("button",{type:"button",onClick:s,className:"flex items-center gap-4 roun
1ded-xl bg-grey-black text-white px-5 h-[50px] md:h-[56px] mb-6 md:mb-8 hover:bg-blue-deep transition-colors duration-500","aria-label":"Copy install command",children:[(0,l.jsx)("span",{className:"text-grey-144 bani-code",children:"$"}),(0,l.jsx)("span",{className:"bani-code text-base md:text-lg",children:x}),e?(0,l.jsx)(i.UgA,{className:"text-green-light"}):(0,l.jsx)(i.C3L,{className:"text-grey-144"})]}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-center w-fit space-y-4 md:space-y-0 md:space-x-2",children:[(0,l.jsx)("a",{href:"#setup",children:(0,l.jsx)(r.Z,{text:"Set it up in 2 minutes",onClick:()=>{var e;return null==window?void 0:null===(e=window.dataLayer)||void 0===e?void 0:e.push({event:"event",eventProps:{category:"MCP Setup",action:"MCP Setup",label:"MCP Setup - mcp banner",value:3}})},height:"h-[50px] md:h-[56px]",textClass:"text-lg",buttonClass:"!px-4 sm:px-8 !rounded-xl bg-blue-gradient"})}),(0,l.jsx)("a",{href:n.TD,target:"_blank",rel:"noreferrer",children:(0,l.jsx)(r.Z,{text:"View on npm",isOutline:!0,whiteBg:!0,textColor:"black",height:"h-[50px] md:h-[56px]",textClass:"text-lg",buttonClass:"!px-4 sm:px-8 !rounded-xl"})})]})]})};t.default=d},6660:function(e,t,s){s.r(t);var l=s(5893),a=s(7294),i=s(7430),r=s(240);let n=[{title:"Get your API keys",body:"In the Bani dashboard, go to Settings > API Keys and copy your access token, public key, private key and tribe reference."},{title:"Add Bani to your client",body:"Paste the config for your client. There's nothing to install, because your client runs the server with npx."},{title:"Start in sandbox",body:"BANI_ENV defaults to sandbox. Test everything there, then switch to live when you're ready."}],x=()=>{let[e,t]=(0,a.useState)(0),s=r.Qq[e];return(0,l.jsxs)("div",{id:"setup",className:"grid grid-cols-1 lg:grid-cols-[1fr_1.35fr] gap-12 lg:gap-16 justify-between items-start w-full h-fit my-16 md:my-[110px] scroll-mt-[140px]",children:[(0,l.jsxs)("div",{className:"flex flex-col justify-start items-start w-full gap-y-8",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,l.jsx)("p",{className:"text-blue basier-medium bani-base",children:"SETUP"}),(0,l.jsx)("h2",{className:"text-black bani-heading-alt-2",children:"Up and running in two minutes"}),(0,l.jsx)("p",{className:"text-grey-text font-light bani-lg",children:"One config block connects your assistant to the Bani API. Every request is signed with your merchant private key."})]}),(0,l.jsx)("ol",{className:"flex flex-col gap-y-6 w-full",children:n.map((e,t)=>{let{title:s,body:a}=e;return(0,l.jsxs)("li",{className:"flex items-start gap-5",children:[(0,l.jsx)("span",{className:"flex shrink-0 justify-center items-center w-10 h-10 rounded-full bg-blue-dull text-blue basier-medium",children:t+1}),(0,l.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,l.jsx)("h3",{className:"text-black text-lg md:text-xl",children:s}),(0,l.jsx)("p",{className:"text-grey-text font-light text-base md:text-lg leading-relaxed",children:a})]})]},s)})})]}),(0,l.jsxs)("div",{className:"flex flex-col w-full min-w-0 gap-y-4",children:[(0,l.jsx)("div",{className:"flex flex-wrap gap-2 p-1.5 rounded-[14px] bg-grey-whitesmoke w-fit max-w-full",children:r.Qq.map((s,a)=>{let{name:i}=s;return(0,l.jsx)("button",{type:"button",onClick:()=>t(a),className:"px-4 py-2 rounded-[10px] text-sm md:text-base basier-medium transition-all duration-300 ".concat(e===a?"bg-white text-blue shadow-card":"text-grey-text hover:text-blue"),children:i},i)})}),(0,l.jsx)(i.Z,{code:s.code,language:s.language,filename:s.filename}),(0,l.jsx)("p",{className:"text-grey-text font-light text-sm md:text-base leading-relaxed",children:s.note})]})]})};t.default=x},2052:function(e,t,s){s.r(t);var l=s(5893);s(7294);var a=s(240);let i=a.Q1.reduce((e,t)=>{let{count:s}=t;return e+s},0),r=()=>(0,l.jsxs)("div",{className:"flex flex-col justify-start items-start w-full h-fit gap-y-10 md:gap-y-14 my-16 md:my-[110px]",children:[(0,l.jsx)("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-end w-full gap-6",children:(0,l.jsxs)("div",{className:"flex flex-col gap-y-4 md:w-[60%]",children:[(0,l.jsx)("p",{className:"text-blue basier-medium bani-base",children:"WHAT'S INCLUDED"}),(0,l.jsxs)("h2",{className:"text-black bani-heading-alt-2",children:[i," tools across the whole Bani API"]}),(0,l.jsxs)("p",{className:"text-grey-text font-light bani-lg",children:["Tools are grouped into toolsets. Use"," ",(0,l.jsx)("span",{className:"bani-code text-blue",children:"BANI_TOOLSETS"})," to load only the groups you need."]})]})}),(0,l.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8 w-full",children:a.Q1.map(e=>{let{key:t,title:s,count:a,body:i,optIn:r}=e;return(0,l.jsxs)("div",{className:"flex flex-col justify-between items-start gap-y-6 w-full rounded-[30px] bg-white p-7 md:p-9 shadow-card-3",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-y-3",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,l.jsx)("h3",{className:"text-black text-xl md:text-[22px]",children:s}),r&&(0,l.jsx)("span",{className:"px-2.5 py-0.5 rounded-full bg-yellow/[.15] text-[#B37A00] text-sm basier-medium",children:"Opt-in"})]}),(0,l.jsx)("p",{className:"text-grey-text font-light leading-loose text-sm md:text-lg",children:i})]}),(0,l.jsxs)("div",{className:"flex justify-between items-center w-full pt-4 border-t border-grey-border",children:[(0,l.jsx)("span",{className:"bani-code text-sm md:text-base text-grey-text",children:t}),(0,l.jsxs)("span",{className:"text-blue basier-medium text-sm md:text-base",children:[a," ",1===a?"tool":"tools"]})]})]},t)})})]});t.default=r},5067:function(e,t,s){s.r(t);var l=s(5893),a=s(7294),i=s(7219),r=s(240);let n=()=>{let[e,t]=(0,a.useState)(0),{prompt:s,tools:n,reply:x}=r.kz[e];return(0,l.jsxs)("div",{className:"flex flex-col justify-start items-center w-full h-fit py-14 md:py-[110px] bg-black relative overflow-hidden",children:[(0,l.jsx)("div",{className:"blue-black-fade-gradient absolute top-[-280px] left-[-280px] min-h-[450px] min-w-[500px] rounded-full"}),(0,l.jsx)("div",{className:"blue-black-fade-gradient absolute bottom-[-280px] right-[-280px] min-h-[450px] min-w-[500px] rounded-full"}),(0,l.jsxs)("div",{className:"relative grid grid-cols-1 lg:grid-cols-[1fr_1.35fr] gap-12 lg:gap-16 items-center w-full px-5 md:px-[5%] lg:px-[8%]",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-y-6",children:[(0,l.jsx)("p",{className:"text-blue-textHover basier-medium bani-base",children:"SEE IT IN ACTION"}),(0,l.jsx)("h2",{className:"text-white bani-heading-alt-2",children:"Describe the task. Your assistant makes the calls."}),(0,l.jsx)("p",{className:"text-grey-white font-light bani-lg",children:"The assistant picks the right Bani tools, chains them together and reports back. You don't have to look up endpoints or build request bodies."}),(0,l.jsx)("div",{className:"flex flex-col gap-3 w-full",children:r.kz.map((s,a)=>{let{label:i}=s;return(0,l.jsxs)("button",{type:"button",onClick:()=>t(a),className:"flex justify-between items-center w-full px-5 py-4 rounded-[14px] border text-left text-base md:text-lg transition-all duration-300 ".concat(e===a?"bg-white text-black border-white":"bg-white/[.03] text-grey-white border-white/[.15] hover:border-white/[.4]"),children:[(0,l.jsx)("span",{children:i}),(0,l.jsx)("span",{className:"w-2.5 h-2.5 rounded-full ".concat(e===a?"bg-blue-gradient":"bg-white/[.15]")}
1)]},i)})})]}),(0,l.jsxs)("div",{className:"flex flex-col w-full min-w-0 rounded-[30px] bg-grey-black border border-white/[.08] p-5 md:p-8 gap-y-6 shadow-card-2",children:[(0,l.jsxs)("div",{className:"flex items-start gap-3",children:[(0,l.jsx)("span",{className:"flex shrink-0 justify-center items-center w-9 h-9 rounded-full bg-grey-15 text-white",children:(0,l.jsx)(i.fzv,{})}),(0,l.jsx)("p",{className:"text-white text-base md:text-lg leading-relaxed pt-1",children:s})]}),(0,l.jsx)("div",{className:"flex flex-col gap-2 pl-0 md:pl-12",children:n.map(e=>{let{name:t,destructive:s}=e;return(0,l.jsxs)("div",{className:"flex flex-wrap justify-between items-center gap-2 px-4 py-3 rounded-[12px] border ".concat(s?"border-yellow/[.4] bg-yellow/[.08]":"border-white/[.08] bg-white/[.03]"),children:[(0,l.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,l.jsx)(i.V7f,{className:"shrink-0 text-blue-textHover"}),(0,l.jsx)("span",{className:"bani-code text-sm md:text-base text-white/[.9] truncate",children:t})]}),s?(0,l.jsxs)("span",{className:"flex items-center gap-1.5 text-yellow text-sm",children:[(0,l.jsx)(i.bfl,{})," Approval required"]}):(0,l.jsx)(i.UgA,{className:"text-green-light"})]},t)})}),(0,l.jsxs)("div",{className:"flex items-start gap-3",children:[(0,l.jsx)("span",{className:"flex shrink-0 justify-center items-center w-9 h-9 rounded-full bg-blue-gradient text-white basier-medium text-sm",children:"AI"}),(0,l.jsx)("div",{className:"flex flex-col gap-y-3 pt-1",children:x.map(e=>(0,l.jsx)("p",{className:"text-grey-white font-light text-base md:text-lg leading-relaxed",children:e},e))})]})]})]})]})};t.default=n},5497:function(e,t,s){s.r(t);var l=s(5893);s(7294);var a=s(6695),i=s(6660),r=s(5067),n=s(2052),x=s(1386);let d=()=>(0,l.jsxs)("div",{className:"flex flex-col justify-start items-center h-fit w-full",children:[(0,l.jsx)(a.default,{}),(0,l.jsx)("div",{className:"flex flex-col justify-start items-center h-fit w-full px-5 md:px-[5%] lg:px-[8%]",children:(0,l.jsx)(i.default,{})}),(0,l.jsx)(r.default,{}),(0,l.jsxs)("div",{className:"flex flex-col justify-start items-center h-fit w-full px-5 md:px-[5%] lg:px-[8%]",children:[(0,l.jsx)(n.default,{}),(0,l.jsx)(x.default,{})]})]});t.default=d}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.