Gathering detailed insights and metrics for bitcoin-inscription-viewer
Gathering detailed insights and metrics for bitcoin-inscription-viewer
Gathering detailed insights and metrics for bitcoin-inscription-viewer
Gathering detailed insights and metrics for bitcoin-inscription-viewer
npm install bitcoin-inscription-viewer
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (83.06%)
HTML (10.92%)
JavaScript (5.48%)
CSS (0.54%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
27 Commits
1 Branches
1 Contributors
Updated on Jul 05, 2025
Latest Version
2.3.7
Package Id
bitcoin-inscription-viewer@2.3.7
Unpacked Size
2.43 MB
Size
594.19 kB
File Count
117
NPM Version
11.3.0
Node Version
23.1.0
Published on
Jul 07, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
21
A React/TypeScript library for displaying Bitcoin Ordinals inscriptions with responsive design and comprehensive content support.
🔧 Compatibility: React 18 & React 19 | TypeScript 5+ | Modern Browsers
1npm install bitcoin-inscription-viewer
1import { InscriptionGallery } from 'bitcoin-inscription-viewer'; 2 3function MyApp() { 4 const inscriptionIds = [ 5 '6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0', 6 'e317a2a5d68bd1004ae15a06175a319272a10389ff125c98820389edef8b0a94i0' 7 ]; 8 9 return ( 10 <InscriptionGallery 11 inscriptionIds={inscriptionIds} 12 columns={3} 13 cardSize={200} 14 enableModal={true} 15 /> 16 ); 17}
Visit our comprehensive documentation:
For Production Use: Please refer to our Working Features Only page for accurate implementation details.
Some of our examples show "aspirational" features that aren't fully implemented yet. We've now:
toUpperCase()
crashes or unsafe operationsQuick Reference:
Display multiple inscriptions in a responsive grid:
1<InscriptionGallery 2 inscriptionIds={['inscription1', 'inscription2']} 3 columns={3} 4 cardSize={200} 5 enableModal={true} 6 showIndex={true} 7/>
Auto-fetch inscriptions from connected LaserEyes wallet:
1import { LaserEyesProvider } from '@omnisat/lasereyes'; 2 3<LaserEyesProvider> 4 <LaserEyesInscriptionGallery 5 columns={3} 6 cardSize={250} 7 enableModal={true} 8 /> 9</LaserEyesProvider>
Display individual inscriptions with full controls:
1<InscriptionRenderer 2 inscriptionId="6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0" 3 size={400} 4 showHeader={true} 5 showControls={true} 6/>
1npm install bitcoin-inscription-viewer
1yarn add bitcoin-inscription-viewer
1import 'bitcoin-inscription-viewer/dist/style.css';
Works with any Bitcoin Ordinals API:
The library includes an optional service worker for intelligent caching and offline support. The service worker provides:
The library includes built-in in-memory caching for improved performance:
1import { useInscriptionCache } from 'bitcoin-inscription-viewer'; 2 3function App() { 4 const { 5 cachedData, 6 cacheSize, 7 clearCache, 8 getCachedData, 9 setCachedData 10 } = useInscriptionCache(); 11 12 return ( 13 <div> 14 <div>Cache Size: {Object.keys(cachedData).length} entries</div> 15 <button onClick={clearCache}>Clear Cache</button> 16 {/* Your inscription components */} 17 </div> 18 ); 19}
The caching system improves load times for frequently viewed inscriptions and reduces API requests.
MIT License - see LICENSE file for details.
Built with ❤️ for the Bitcoin ecosystem
No vulnerabilities found.
No security vulnerabilities found.