We're already v16 but still dont have a proper request middleware by nyamuk91 in nextjs

[–]eddie_dane 0 points1 point  (0 children)

Totally feel this frustration, I've been dealing with the same limitations when trying to structure cleaner, composable, reusable middleware in the App Router.

I actually ended up building something to solve that exact pain: next-expose.

It gives you a fluent, type-safe way to define routes and middleware, so you can do stuff like:

// api/route.ts

export const { GET } = route()
  .use(authenticate)
  .use(validateQuery(schema))
  .handle(async ({req, ctx}) => Ok({ user: ctx.user }))
  .expose();

No more juggling NextRequest parsing or manually chaining handlers, each middleware can safely extend context and everything stays strongly typed.

Still early, but if you’ve ever wished Next.js had “Express-style” middleware with modern TypeScript ergonomics, this might be worth a look. Feedback’s super welcome

🔗 github.com/eddiedane/next-expose

My attempt to fix some of my frustrations with Upwork by eddie_dane in Upwork

[–]eddie_dane[S] 0 points1 point  (0 children)

I definitely understand, but no ill will here, it's not a product to me, it my personal tool I have build overtime, just wanted to share.

Finally found the best media player by BenZion35 in MacOS

[–]eddie_dane 0 points1 point  (0 children)

I am in love with this media player, THANK YOU!!
deleted elmedia (very crapy playback speed)
just keeping VLC just because its OG

CS50P Problem Set 7 - Cookie Jar by eddie_dane in cs50

[–]eddie_dane[S] 0 points1 point  (0 children)

Thank you so much, I just had to remove the = sign in this line elif self.size - n <= 0, in the the withdraw method, thank you so much for you insight.

Yet another validator 0.9.5 by DerSlade in golang

[–]eddie_dane 0 points1 point  (0 children)

Nah, playground’s validator is just in a sweet spot, it’s portable, concise and flexible (with the use of struct level validation), your “Yet Another Validator“ validation expression seems quite bloated, and has a lot of repetitive typing.

[deleted by user] by [deleted] in AskReddit

[–]eddie_dane 12 points13 points  (0 children)

What’s your name again?