
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@sollinked/sdk
Advanced tools
Sollinked is the Mail, Calendar, and Github Platform build on Solana. Users are able create @sollinked.com emails, schedule appointments through our Calendar feature, and manage Github issues all in one place!
With this SDK, you'll be able to integrate Sollinked into your app in a matter of minutes!
This app is constantly under development so be prepared to see exciting new features in the coming days!
You will have to wrap your Component in the SollinkedProvider like so.
import { Provider as SollinkedProvider } from '@sollinked/sdk';
...
return (
<SollinkedProvider
auth={{
address, // publicKey.toBase58()
message: "message you used to verify the address's ownership"
}}
>
<Component/>
</SollinkedProvider>
)
And that's it, really. Simple right?
If you wish to useSollinked anywhere in your web app, you'll have to wrap your App component.
Before you start using Sollinked, you need to initialize it like so.
const { init } = useSollinked();
useEffect(() => {
const initSollinked = async() => {
await init(signature); // signature you obtained from the user signing your verification message
}
initSollinked(); // if you wish to use await
init(signature); // you can init like this too if you want to
}, []);
In the components wrapped inside SollinkedProvider, you can call useSollinked() like any React hook. Example:
...
const { user } = useSollinked();
...
{
user, // User object
signature, // User's signature
isVerified, // If user is registered on Sollinked
isVerifying, // If useSollinked is still querying the backend
// lines below are functions
init, // initialize
account: { // may be undefined
me, // updates User object
create: createAccount, // creates Sollinked Account
update: updateAccount, // updates Sollinked Account
},
mail: { // may be undefined
setTiers: setMailTiers, // set User's email tiers
claim: claimMail, // soon: claim a specific unclaimed email's contents
claimAll: claimAllMail, // soon: claim all unclaimed emails' contents
},
calendar: { // may be undefined
setPresetPrice: setCalendarPresetPrice, // set User's preset prices like Wednesday 10am 10USDC for meeting
setCustomPrice: setCalendarCustomPrice, // Set a custom price to a date, example, 2023-09-08 6am 10USDC
},
github: { // may be undefined
create: createGithubProfile, // creates a Sollinked Github Profile for the user
update: updateGithubProfile,// updates the Sollinked Github Profile for the user
toggle: toggleGitHubProfileStatus,// toggle User's Github Profile Bot Status
get: getGithubDetails, // no verification needed: gets the Sollinked Github Profile's details
newIssue: newGithubIssue, // no verification needed: creates a Github issue after payment
delete: deleteGithubProfile, // deletes User's github profile
},
integration: { // may be undefined
update: updateIntegration, // Updates User's Discord / custom webhooks
test: testIntegration, // Sends a test notification to the user's Discord / Custom webhooks
}
}
Soon tm.
Every component is typed, please refer to the typings while I make some examples.
FAQs
SDK for Sollinked
We found that @sollinked/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.