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 🙏

© 2026 – Pkg Stats / Ryan Hefner

wexts

v3.0.2

Published

Build production-ready full-stack apps with Next.js 16 + NestJS 11 in a unified runtime. Zero URLs. Zero configuration.

Downloads

32

Readme

██╗    ██╗███████╗██╗  ██╗████████╗███████╗
██║    ██║██╔════╝╚██╗██╔╝╚══██╔══╝██╔════╝
██║ █╗ ██║█████╗   ╚███╔╝    ██║   ███████╗
██║███╗██║██╔══╝   ██╔██╗    ██║   ╚════██║
╚███╔███╔╝███████╗██╔╝ ██╗   ██║   ███████║
 ╚══╝╚══╝ ╚══════╝╚═╝  ╚═╝   ╚═╝   ╚══════╝

Build production-ready full-stack apps with Next.js 16 + NestJS 11 in a unified runtime

npm version Downloads License: MIT TypeScript

Quick StartDocumentationExamples


✨ Why WEXTS?

Stop managing separate Next.js and NestJS servers. WEXTS runs both in a single Node.js process with zero configuration.

Traditional Approach:

❌ Two separate servers (Next.js + NestJS)
❌ Complex proxy setup
❌ CORS configuration nightmare
❌ URLs everywhere in your code
❌ Two deployments to manage

WEXTS:

✅ One unified server
✅ Smart routing (automatic)
✅ Zero configuration
✅ Type-safe SDK (no URLs!)
✅ Single deployment

🎯 Key Features

  • 🔥 Unified Runtime - Single Node.js process for frontend + backend
  • 🎨 Zero URLs - Call APIs without explicit URLs
  • Type-Safe - End-to-end TypeScript with auto-complete
  • 🚀 Production Ready - Docker, Railway, Render, Vercel support
  • 🔒 Auth Built-in - JWT authentication out of the box
  • 📦 Prisma ORM - Database integration ready
  • 🐳 Docker Ready - Complete Docker setup included

🚀 Quick Start

# Create new project
npx wexts create my-app

# Start development
cd my-app
pnpm install
pnpm run dev

# Open http://localhost:3000

That's it! Your unified server is running with:

  • ✅ Next.js frontend
  • ✅ NestJS backend API
  • ✅ Smart routing
  • ✅ Hot reload

💡 The Magic - Zero URLs!

❌ Without WEXTS

// Hardcoded URLs everywhere
const response = await fetch('http://localhost:3001/api/users');
const users = await response.json();

// Problems:
// - No type safety
// - CORS issues
// - Environment management
// - Proxy configuration

✅ With WEXTS

import { api } from '@/lib/api';

// Type-safe, zero URLs, works everywhere!
const users = await api.users.findAll();
//    ✅ Auto-complete
//    ✅ Type-safe
//    ✅ No configuration

The SDK automatically connects to your backend. No URLs needed!


📖 Project Structure

my-app/
├── 🚀 server.ts              # Unified server
├── apps/
│   ├── 🔙 api/                # NestJS Backend
│   │   ├── src/
│   │   │   ├── auth/          # JWT Authentication
│   │   │   └── prisma/        # Database ORM
│   │   └── prisma/schema.prisma
│   │
│   └── 🎨 web/                # Next.js Frontend
│       ├── app/               # App Router
│       └── lib/
│           └── api.ts         # 🔥 Type-safe SDK
│
├── 🐳 Dockerfile             # Production build
└── docker-compose.yml         # Docker + PostgreSQL

🏗️ How It Works

┌─────────────────────────────────────────┐
│      Single Node.js Process            │
│                                         │
│  ┌──────────┐        ┌──────────┐     │
│  │ Next.js  │        │  NestJS  │     │
│  │ Frontend │        │  Backend │     │
│  └──────────┘        └──────────┘     │
│                                         │
│       Smart Router Middleware          │
│  ┌─────────────────────────────┐      │
│  │  /api/* → NestJS            │      │
│  │  /*     → Next.js           │      │
│  └─────────────────────────────┘      │
└─────────────────────────────────────────┘

No proxy. No CORS. Just works.


🔐 Built-in Authentication

// Register
const { user, access_token } = await api.auth.register({
    email: '[email protected]',
    password: 'secure123',
    name: 'John Doe'
});

// Login
const { user, access_token } = await api.auth.login({
    email: '[email protected]',
    password: 'secure123'
});

// Get current user
const user = await api.auth.me();

Secure JWT authentication with httpOnly cookies included!


🐳 Deploy Anywhere

Docker (Recommended)

docker-compose up -d

Includes PostgreSQL! Your app is live at http://localhost:3000

Railway (Easiest)

# Push to GitHub, connect Railway, done!

Railway auto-detects WEXTS configuration.

Render / VPS

pnpm run build
pnpm start

One build. One deployment. Works everywhere.


📚 Full Example

// Backend - apps/api/src/posts/posts.controller.ts
@Controller('posts')
@UseGuards(JwtAuthGuard)
export class PostsController {
    @Get()
    findAll() {
        return this.postsService.findAll();
    }

    @Post()
    create(@Body() dto: CreatePostDto) {
        return this.postsService.create(dto);
    }
}

// Frontend - apps/web/lib/api.ts
export const api = {
    posts: {
        findAll: () => request<Post[]>('GET', '/posts'),
        create: (data) => request<Post>('POST', '/posts', data),
    },
};

// Usage - apps/web/app/posts/page.tsx
import { api } from '@/lib/api';

export default async function PostsPage() {
    const posts = await api.posts.findAll(); // Type-safe!
    
    return (
        <div>
            {posts.map(post => (
                <article key={post.id}>
                    <h2>{post.title}</h2>
                    <p>{post.content}</p>
                </article>
            ))}
        </div>
    );
}

Complete type safety from database to UI!


🛠️ Commands

# Development
pnpm run dev          # Start dev server

# Production
pnpm run build        # Build everything
pnpm start            # Start production server

# Database
cd apps/api
npx prisma migrate dev
npx prisma studio

📦 What's Included

  • Next.js 16 - Latest React framework with App Router
  • NestJS 11 - Modern Node.js framework
  • Prisma - Type-safe database ORM
  • JWT Auth - Secure authentication
  • TypeScript - Full type safety
  • Tailwind CSS - Utility-first CSS
  • Docker - Production deployment
  • Examples - Auth, CRUD, and more

🎯 Perfect For

✅ Full-stack applications
✅ SaaS products
✅ Admin dashboards
✅ API + Web combo
✅ Production-ready apps
✅ Rapid prototyping


📚 Documentation


🤝 Contributing

Contributions are welcome! See CONTRIBUTING.md


📄 License

MIT © WEXTS Team


🙏 Built With


Stop managing separate servers. Start building with WEXTS. 🚀

GitHubnpmDocumentation

Made with ❤️ for the TypeScript community