Use https://docs.scrypt.io/how-to-integrate-a-frontend/ to …
Use https://docs.scrypt.io/how-to-integrate-a-frontend/ to integrate scrypt into the project
Use this smart contract as the locking script:
https://github.com/sCrypt-Inc/boilerplate/blob/master/src/contracts/hodlocker.ts
Use the .sendBsv function in Panda Wallet to lock up satoshis to the locking script: https://panda-wallet.gitbook.io/provider-api/the-basics/send-bsv#custom-scripts
Check out how its done in: https://github.com/zer0dt/simply-stream/blob/main/components/stream/fund-stream-button.tsx