A collection of lightweight, edge-runtime compatible libraries for modern web frameworks. Built with TypeScript and optimized for edge computing environments like Cloudflare Workers, Vercel Edge Functions, and Deno Deploy.
Core Firebase Authentication library providing JWT verification, token decoding, and authentication utilities. This is the foundation for other Firebase Auth integrations.
Features:
- JWT token verification using Firebase public keys
- Token decoding and validation
- Sign in with password
- Sign up functionality
- Sign in with custom token
- Edge runtime compatible (no Node.js dependencies)
Google Identity Toolkit services for account management and authentication.
Features:
- Account lookup
- Sign in with password
- Sign up
Firebase Authentication middleware for H3 framework.
Features:
- H3 middleware for JWT verification
- Automatic user context injection
- Customizable user transformation
- Type-safe user context
Firebase Authentication middleware for Hono framework.
Features:
- Hono middleware for JWT verification
- Automatic current user context injection
- Customizable user transformation
- Type-safe user context
Each package can be installed independently:
# Firebase Auth core library
pnpm add @fiboup/firebase-auth
# H3 integration
pnpm add @fiboup/h3-firebase-auth
# Hono integration
pnpm add @fiboup/hono-firebase-auth
# Google Identity Toolkit
pnpm add @fiboup/google-identify-toolkitThis is a monorepo managed with pnpm workspaces.
- Node.js 18+
- pnpm 8+
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Build specific package
pnpm build:firebase-auth
pnpm build:hono-firebase-auth
# Lint and format
pnpm lint.check
pnpm lint.format
# Run tests
pnpm testedgelibs/
├── packages/
│ ├── firebase-auth/ # Core Firebase Auth library
│ ├── google-identify/ # Google Identity Toolkit
│ ├── h3-firebase-auth/ # H3 framework integration
│ └── hono-firebase-auth/ # Hono framework integration
├── package.json
├── pnpm-workspace.yaml
└── tsconfig.json
All packages in this monorepo are designed to run on edge runtimes:
- ✅ Cloudflare Workers
- ✅ Vercel Edge Functions
- ✅ Deno Deploy
- ✅ Netlify Edge Functions
- ✅ Bun
- ✅ Node.js (with ESM support)
These libraries avoid Node.js-specific APIs and use Web Standards APIs, making them compatible with modern edge computing platforms.
MIT © Hieu Tran
Contributions are welcome! Please feel free to submit a Pull Request.
- Author: Hieu Tran hieutran.fu@gmail.com
- Repository: https://github.com/hieuhani/edgelibs