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

@flexireact/core

v4.1.1

Published

The Modern React Framework v4 - React 19, SSR, SSG, Islands, Edge Runtime, 50+ UI Components, TypeScript, Tailwind v4

Downloads

94

Readme

⚡ FlexiReact v4.1

The Edge-First React Framework

npm version npm downloads License TypeScript

A modern React framework focused on performance, clarity and modern React APIs.
Inspired by Next.js, Remix and Astro — but simpler, lighter and edge-native.

Quick Start · Features · Documentation · Roadmap


🚀 Quick Start

npx create-flexireact my-app
cd my-app
npm run dev

Open http://localhost:3000 and start building! 🎉


✨ Why FlexiReact?

FlexiReact is for developers who want:

| Feature | Description | |---------|-------------| | ⚛️ Modern React | React 19, Server Components, Server Actions, Suspense | | 🏝️ Islands | Partial hydration — zero JS for static content | | ⚡ Edge-First | Runs on Node, Bun, Deno, Cloudflare Workers | | 📁 File Routing | Three conventions: routes/, app/, pages/ | | 🎯 Explicit | No hidden caching, no magic behavior |


🧩 Features

⚛️ React 19 Native

// Server Component (default)
export default async function Page() {
  const data = await db.query('SELECT * FROM posts');
  return <PostList posts={data} />;
}
'use client';
// Client Component
export function LikeButton() {
  const [liked, setLiked] = useState(false);
  return <button onClick={() => setLiked(!liked)}>❤️</button>;
}

🏝️ Islands Architecture

Only hydrate what needs interactivity:

'use island';

export function Counter() {
  const [count, setCount] = useState(0);
  return (
    <button onClick={() => setCount(c => c + 1)}>
      Count: {count}
    </button>
  );
}

📁 File-Based Routing

routes/
├── home.tsx           → /
├── about.tsx          → /about
├── blog/
│   ├── index.tsx      → /blog
│   └── [slug].tsx     → /blog/:slug
└── api/
    └── users.ts       → /api/users

🔌 API Routes

// routes/api/users.ts
export async function GET() {
  return Response.json({ users: await getUsers() });
}

export async function POST(req: Request) {
  const body = await req.json();
  return Response.json({ created: true });
}

🛡️ Middleware

// middleware.ts
export default function middleware(request) {
  if (!request.headers.get('authorization')) {
    return Response.redirect('/login');
  }
}

export const config = {
  matcher: ['/dashboard/:path*']
};

🖥️ Rendering Modes

| Mode | Description | |------|-------------| | SSR | Server-side rendering (default) | | SSG | Static generation at build time | | ISR | Incremental Static Regeneration | | Streaming | Progressive HTML rendering |

// Enable ISR with revalidation
export const revalidate = 60; // seconds

export default function Page() {
  return <div>This page revalidates every 60s</div>;
}

🛠️ CLI

# Create & Run
npx create-flexireact my-app    # Create new project
flexi dev                        # Development server
flexi build                      # Production build
flexi start                      # Start production server

# Scaffolding
flexi g page dashboard           # Generate page
flexi g component Button         # Generate component
flexi g api users                # Generate API route

# Utilities
flexi doctor                     # Diagnose issues
flexi upgrade                    # Upgrade FlexiReact

⚙️ Configuration

Create a flexireact.config.ts in your project root:

// flexireact.config.ts
import { defineConfig } from '@flexireact/core/config';

export default defineConfig({
  // Directories
  pagesDir: 'pages',
  layoutsDir: 'layouts',
  publicDir: 'public',
  outDir: '.flexi',

  // Server
  server: {
    port: 3000,
    host: 'localhost'
  },

  // Build
  build: {
    target: 'es2022',
    minify: true,
    sourcemap: true
  },

  // Features
  islands: {
    enabled: true
  },
  rsc: {
    enabled: true
  },
  ssg: {
    enabled: false,
    paths: []
  }
});

Configuration is validated with Zod. Invalid options will show clear error messages.


📦 Packages

| Package | Description | |---------|-------------| | @flexireact/core | Core framework | | create-flexireact | Project scaffolding CLI | | @flexireact/flexi-ui | UI component library (coming soon) |


🛣️ Roadmap

v4.x (Current)

  • [x] React 19 support
  • [x] Islands architecture
  • [x] File-based routing (3 conventions)
  • [x] SSR / SSG / ISR
  • [x] Middleware system
  • [ ] Plugin system v1
  • [ ] Image optimization

v5 (Future)

  • [ ] Unified compiler pipeline
  • [ ] First-class plugin ecosystem
  • [ ] Advanced DevTools
  • [ ] Partial Prerendering (PPR)

🤝 Contributing

FlexiReact is open-source and community-driven.
Contributions, feedback and discussions are welcome!


📄 License

MIT © FlexiReact Team


Built with ❤️ for developers who value clarity and performance.

⬆ Back to top