
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@unisat/permission-service
Advanced tools
Cross-platform permission management service for web3 applications
Cross-platform permission management service for web3 applications.
npm install @unisat/permission-service
# or
yarn add @unisat/permission-service
import { PermissionService, MemoryStorageAdapter, ChainType } from '@unisat/permission-service';
// Create with memory storage
const permissionService = new PermissionService({
storage: new MemoryStorageAdapter(),
storageKey: 'permissions'
});
// Initialize
await permissionService.init();
// Add a connected site
await permissionService.addConnectedSite(
'https://example.com',
'Example DApp',
'https://example.com/icon.png',
ChainType.BITCOIN_MAINNET
);
// Check permissions
const hasPermission = permissionService.hasPermission('https://example.com');
console.log(hasPermission); // true
import { MemoryStorageAdapter } from '@unisat/permission-service/adapters';
const storage = new MemoryStorageAdapter();
import { LocalStorageAdapter } from '@unisat/permission-service/adapters';
const storage = new LocalStorageAdapter();
import { ExtensionPersistStoreAdapter } from '@unisat/permission-service/adapters';
import { createPersistStore } from '@/background/utils';
const storage = new ExtensionPersistStoreAdapter(createPersistStore, 'permissions');
Main service class for managing permissions.
init(): Initialize the serviceaddConnectedSite(origin, name, icon, chain): Add a connected sitehasPermission(origin): Check if origin has permissiongetSite(origin): Get site informationgetConnectedSites(): Get all connected sitesremoveConnectedSite(origin): Remove a connected sitetopConnectedSite(origin): Pin site to topunpinConnectedSite(origin): Unpin siteMIT
FAQs
Cross-platform permission management service for web3 applications
We found that @unisat/permission-service demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.