Package Manager
Hermis supports all major Node.js package managers. Choose the one you prefer:- npm
- yarn
- pnpm
Available Packages
Adapter Base
Vanilla JavaScript implementation with TypeScript support. This is the foundation package that works with any JavaScript/TypeScript framework.- npm
- yarn
- pnpm
- Building with vanilla JavaScript or TypeScript
- Using Other frameworks (Vue, Svelte, Angular, etc.)
- Creating custom wallet adapters
- Extending existing adapters
- Need maximum flexibility and framework independence
React Package
React hooks and providers for seamless integration with React applications.- npm
- yarn
- pnpm
- Building React applications
- Want React-specific hooks and context
- Need automatic state management
Vue Package
Vue support is coming soon! Star our GitHub repo to get notified when it’s released.
TypeScript Support
All packages include TypeScript definitions out of the box. No additional@types packages are needed.
Framework-Specific Setup
Next.js
For Next.js 13+ with App Router:app/providers.tsx
Vite
For Vite projects, install the polyfills:vite.config.ts:
Verifying Installation
After installation, verify everything works: For Adapter Base:Troubleshooting
Module not found errors
Module not found errors
If you see module not found errors, ensure all required packages are installed. Check the package documentation for any peer dependencies that may be needed for your specific use case.
Buffer is not defined
Buffer is not defined
This is common in browser environments. Add buffer polyfill:Then import at the top of your entry file:
TypeScript errors
TypeScript errors
All packages include TypeScript definitions. If you encounter errors, ensure you’re using a recent version of TypeScript.
Webpack 5 errors
Webpack 5 errors
Webpack 5 no longer includes Node.js polyfills by default. You’ll need to configure them manually in your webpack config.
