npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@lemur-bookstores/secure-stack

v0.1.1

Published

Full-stack TypeScript framework with hybrid communication (gRPC + tRPC), built-in security mesh, and premium developer experience

Readme

SecureStack Framework

Full-stack TypeScript framework with hybrid communication (gRPC + tRPC), built-in security mesh, and premium developer experience

npm version npm downloads License: MIT TypeScript Build Status Code Coverage GitHub stars GitHub forks GitHub issues PRs Welcome Contributors LinkedIn Changelog

🚀 Features

  • Hybrid Communication: gRPC for internal microservices + tRPC for client-server
  • Type-Safety End-to-End: Complete type inference without manual codegen
  • Built-in Security Mesh: Encrypted communication, JWT auth, rate limiting, audit logs
  • Express-like DX: Familiar middleware system and routing
  • Plug-and-Play Modules: Auth, RBAC, Cache, Storage, Realtime, and more

🧩 Modules & Use Cases

🔐 Authentication & Security (@lemur-bookstores/auth)

Complete security suite with JWT, RBAC, and Session management.

  • Use Case: Protect your API with role-based access control and secure session handling.
  • Docs: Auth Setup | RBAC Guide

🕸️ Service Mesh (@lemur-bookstores/mesh)

Internal communication layer with mTLS-like encryption and service discovery.

📱 Client SDK (@lemur-bookstores/client)

Type-safe client SDK with React integration, auth helpers, and CSRF protection.

  • Use Case: Build secure frontend applications with authentication, session management, and RBAC.
  • Features: Middleware pipeline, token management, SessionProvider with SSR hydration, auth hooks (useSignIn, useSignOut, useIsAuthenticated), RBAC guards (SessionGuard, RoleGate, PermissionGate), CSRF protection, server-side utilities for Next.js
  • Docs: Client API | Auth Helper Hooks | CSRF Protection | React Hooks | SSR Support

⚡ Realtime (@lemur-bookstores/realtime)

Scalable WebSocket support using Socket.io and Redis.

  • Use Case: Build chat apps, live notifications, or collaborative tools.
  • Docs: Realtime Overview

🛠️ CLI Tool (@lemur-bookstores/cli)

Powerful CLI for scaffolding, code generation, and management.

  • Use Case: Quickly bootstrap new services or generate boilerplate code.
  • Docs: CLI Guide

📦 Installation

npm install @lemur-bookstores/secure-stack
# or
pnpm add @lemur-bookstores/secure-stack
# or
yarn add @lemur-bookstores/secure-stack

🎯 Quick Start

import { SecureStack, router } from '@lemur-bookstores/secure-stack';
import { z } from 'zod';

const app = new SecureStack({
  name: 'my-service',
  port: 50051,
});

const userRouter = router().query('getUser', {
  input: z.string(),
  handler: async ({ input }) => {
    return { id: input, name: 'John Doe' };
  },
});

app.router('user', userRouter);

await app.start();
console.log('🚀 Server ready!');

📚 Documentation

Visit our documentation for detailed guides and API reference.

🏗️ Project Structure

This is a monorepo managed with Turborepo and npm workspaces:

secure-stack/
├── packages/
│   └── core/                    # @lemur-bookstores/core
│       ├── src/
│       │   ├── SecureStack.ts   # Main framework class
│       │   ├── router.ts        # Router builder
│       │   ├── types.ts         # Type definitions
│       │   └── index.ts         # Package entry point
│       ├── package.json
│       ├── tsconfig.json
│       └── tsup.config.ts
├── examples/
│   └── basic/                   # Basic usage example
│       ├── src/
│       │   └── index.ts
│       └── package.json
├── docs/                        # Documentation (coming soon)
├── .development-guide/          # Development planning docs
│   ├── roadmap.md              # Development roadmap
│   ├── feasibility-analysis.md # Feasibility analysis
│   └── secure-microservices-mesh.md # Mesh documentation
├── package.json                 # Root package.json
├── turbo.json                   # Turborepo configuration
├── pnpm-workspace.yaml          # Workspace configuration
└── tsconfig.json                # Shared TypeScript config

Packages

  • @lemur-bookstores/core - Core framework with context, middleware, and router
  • @lemur-bookstores/server - Server implementation with HTTP, tRPC, and gRPC adapters
  • @lemur-bookstores/client - Client SDK with React integration, auth, CSRF protection, and SSR support
  • @lemur-bookstores/mesh - Service Mesh (coming soon)
  • @lemur-bookstores/cli - CLI tool (coming soon)

🚀 Getting Started

Prerequisites

  • Node.js 20+ or Bun 1.0+
  • npm (comes with Node.js)

Installation

# Clone the repository
git clone https://github.com/lemur-bookstores/secure-stack.git
cd secure-stack

# Install dependencies
npm install

# Build all packages
npm run build

# Run the basic example
npm run dev --workspace=examples/basic

Development

# Run all packages in dev mode
npm run dev

# Run tests
npm run test

# Lint code
npm run lint

# Format code
npm run format

# Type check
npm run typecheck

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

MIT © @elkincp5

🙏 Acknowledgments

Inspired by:

  • Express - Simplicity and familiarity
  • Firebase - Premium developer experience
  • tRPC - Type-safe APIs
  • NestJS - Enterprise architecture patterns