@humlabs/templates
v0.3.0
Published
Forwarding shim — all templates now ship from @humlabs/react. Kept for backwards compatibility.
Maintainers
Readme
@humlabs/templates
Status: Complete
Pre-built widget templates for Hum visitor counters. All 20 beautifully designed, animated widgets.
Installation
npm install @humlabs/core @humlabs/react @humlabs/templatesQuick Start
import { HumProvider } from '@humlabs/react';
import { MinimalPill } from '@humlabs/templates';
function App() {
return (
<HumProvider siteId="site_abc123">
<MinimalPill />
</HumProvider>
);
}Available Templates (20)
All templates accept: count, siteId, label, accent, theme, className, style
- MinimalPill, TerminalBadge, GlassWidget, NeonBadge
- RetroPixel, CompactDot, FloatingWidget, BrutalistBadge
- NewspaperBadge, StickerBadge, StatCard, LiveBlob
- StampBadge, LedCounter, GradientPill, AvatarStack
- SparkCard, CodePrompt, CodePromptV2, NotificationToast, BigNumber
Development
Watch Mode (Auto-rebuild)
npm run devThis will watch for changes and automatically rebuild the package.
Build Once
npm run buildRun Tests
npm testAdding New Templates
- Create new component in
src/components/ - Export it in
src/index.ts - Rebuild:
npm run build - Template will automatically appear in website and package
License
MIT
