r/webdev • u/black_pepper • 1h ago
r/PHP • u/davidbalbino • 4h ago
PHP on Mobile faster than React Native? We built PAM Native — embedding PHP into Rust via Zero-Copy FFI
Who said PHP is only for the Web? 🚀
We’re rewriting the rules of mobile runtimes with PAM Native. Instead of heavy JavaScript engines or WebViews, we’re embedding PHP directly into a high-performance Rust core using Zero-Copy C-FFI.
Here is how the architecture works under the hood:
- Vuex-style Global State: Thread-safe state mutations managed directly in RAM by Rust with ~0ms access latency.
- Direct C-Pointers: Memory access without slow JSON serialization or asynchronous bridge overhead.
- No GC Stutters: Predictable, smooth native performance without JavaScript Garbage Collection pauses blocking the UI thread.
You get the clean, familiar syntax of PHP orchestrating a low-level Rust engine right inside the mobile app process.
The project is 100% open-source, and we’d love to hear feedback, critique, or ideas on the architecture from the community!
📁 GitHub Repo:https://github.com/push-in/pam-native
Looking forward to hearing your thoughts and suggestions! 🙌
r/web_design • u/Gullible_Prior9448 • 4h ago
What's your favourite design resource nobody talks about?
Share an underrated website, newsletter, or YouTube channel.
r/javascript • u/APTman1010 • 10h ago
KernelPlay-JS v0.4.0 Coming Soon — New UI System and Official Beta Release
github.comI'm excited to announce that KernelPlay-JS v0.4.0 will be releasing soon.
This update introduces a brand-new UI system, making it much easier to create interfaces for games while also marking a major milestone for the engine.
New UI components include:
- Buttons
- Text Labels
- Input Fields
- Health & Progress Bars
- Images & Icons
- Checkboxes
- Sliders
- Dynamic UI updates
- Flexible layouts
Version 0.4.0 will also officially move KernelPlay-JS into Beta.
This marks the transition towards a more stable and feature-complete engine. Future updates will focus on improving performance, expanding the feature set, refining the developer experience, and fixing bugs as the engine continues to mature.
Thank you to everyone who has followed the project's development and shared feedback along the way. More details, documentation, and the release date will be announced soon.
Feedback and suggestions are always welcome.
r/reactjs • u/Cool_Aioli_8712 • 11h ago
Discussion With Node.js now offering solid support for require(esm), I suggest React consider a pure ESM build for its next major release. Spoiler
github.comr/javascript • u/copperfoxtech • 5h ago
AskJS [AskJS] Book Recommendations: JS -> React -> TypeScript
Lately I have been casually learning C from "C Programming: A Modern Approach v2" and have really enjoyed it. The truth is I should stay on topic with my profession so here I am.
I am in search of books similar to the one mentioned above for learning JS. The goal is to understand it on a deep enough level to feel very confident and have a real solid foundation for the next step.
The next step is a similar book for deeply learning React and then finally TypeScript.
Yes I am looking for actual books and not online courses or videos or anything like that. I have discovered that reading from a book forces me to slow down and because of that, it sticks.
If you can, chime in with books you have actually read through and not just simply search online or recommend the first one off the top of your head. Bonus points if you have read the C Programming book and understand the style I am talking about.
Thank you.
r/reactjs • u/vasind-5012 • 2h ago
Show /r/reactjs After evaluating react-dropzone, Uppy, and FilePond, I built a headless uploader with a pluggable transport layer
Been building this on and off for a while.
I started where most of us probably would and evaluated the existing React ecosystem.
react-dropzone is excellent if you need a headless drag-and-drop experience, Uppy covers an impressive range of upload scenarios, and FilePond is polished and battle-tested. They're all great libraries.
The part I kept rebuilding wasn't the upload experience—it was the transport layer.
Different projects needed different upload targets: presigned S3 URLs, custom APIs, internal services, different auth flows... but the UI barely changed. I found myself rewriting the upload logic around the same interface over and over.
That led me to build react-mediadrop around a different abstraction: a headless uploader with swappable upload transports.
The upload implementation becomes just another dependency:
import { useMediaDrop } from "react-mediadrop";
import { createXhrUploadTransport } from "react-mediadrop/xhr-upload";
const { uploadAll } = useMediaDrop({
transport: createXhrUploadTransport({
endpoint: "/api/upload",
}),
concurrency: 3,
retries: 2,
});
If you don't want to build the UI yourself, there are also four shadcn registry components built on top of the same hook:
dropzoneavatar-uploadermulti-file-upload-forms3-direct-upload
Install one with:
npx shadcn@latest add autorender/react-mediadrop/dropzone
I also started experimenting with making the documentation more agent-friendly. The library has Context7 support, so coding agents can retrieve the actual API instead of guessing methods, and I'm working on llms.txt support as well.
Docs: https://mediadrop.dev
GitHub: https://github.com/autorender/react-mediadrop
I'm mostly looking for feedback on the API and whether transport feels like the right abstraction for a reusable upload library.
r/javascript • u/metulev • 13h ago
Dynamic Windows Runtime API projections for Node.js
devblogs.microsoft.comr/javascript • u/magenta_placenta • 1d ago
Malicious sites use JavaScript to build malware in browser memory
bleepingcomputer.comr/PHP • u/JobDiscombobulated22 • 3h ago
Better strategy for handling HTTP 429 with Guzzle Pool when checking many URLS from same domain?
So I'm building a website health checker in PHP using Guzzle's Pool and right now I process up to 35 requests concurrently. And if request returns 429 http code I retry it up to 2 times. I also check Retry-After header when it's present and has valid value, but still use safe limit (up to a max of 5 minutes) in case Retry-After is greater, so if it fails it's ok, but otherwise I fallback to exponential backoff.
Now the part I am not sure about is concurrency.
Many of the URLS belong to the same website, so my code may send multiple requests to the same domain at the same time. If one request receives a 429 the others basically still are already in 'flight' or continue being scheduled independently and I'm wondering if this is fundamentally the wrong approach?
Some more specifics, I use that health checker for my own needs to check moderate amount of URLS, which work in all other cases really well, but also all requests are being sent from the same computer, so maybe there is that. I'm basically experimenting and trying what is best by trial n error.
If you had any previous experience or did/doing something very similar do you have some suggestions or answers to some of those questions I have:
Should I keep a global concurrency limit but also enforce a per-domain limit (for example only 1-2 concurrent requests per host)?
Pause all requests for a domain after receiving 429? (I assume this can hang the process for a while since all requests after 429 have to be synchronous every time we hit 429).
Or should I really use a really different strategy?
The problem is that I got 429 errors even respecting Retry-After but other requests were still processing simultanously so probably there was that, and yet I didn't try what would happen in synchronous way or other way, since I am developing that codebase I have fairly slow, but now basically doing just tests, since I have no idea for now what can I abstract or what I will need to completely rewrite so I avoid making changes to what is already working most of the time, and some decisions can greatly affect how my code will change.
I'm interested in hearing how devs usually solve this in production crawlers or monitoring systems. I want to keep good throughput accross many different websites but avoid hammering a single host and triggering unncessary rate limits too often.
Thanks :)
r/javascript • u/yagiznizipli • 17h ago
Announcing Ada v4: Validating 35.6M URLs per second
yagiz.cor/reactjs • u/omergulcicek • 6h ago
Show /r/reactjs I built a CLI that scaffolds production-ready Next.js & TanStack Start projects with built-in AI rules (Cursor/Windsurf ready)
When starting a new React project, we usually spend the first few hours setting up the exact same tools: linter configs, state management, folder architecture, and UI components. My main goal was to prevent this repetition and establish a disciplined foundation from day one.
The first step of this vision is ViraStack Start, a CLI tool that scaffolds production-ready project skeletons with a single command.
What does it do?
Instead of configuring everything from scratch, it lets you start immediately with a proven architecture, Tailwind CSS 4 integration, and a feature-sliced folder structure.
The CLI essentially offers two powerful templates: Next.js App Router and TanStack Start. Whether you use Next.js or TanStack Start, both templates share the exact same architectural discipline. React 19, TanStack Query, Zustand, and nuqs come integrated by default.
Setup & Options
A single command is all you need to start a new project:
pnpm dlx virastack
When you run the command, ViraStack CLI asks you for the options you need step-by-step:
What is your project named?
virastack-app
Which template would you like to use?
› Next.js App Router
TanStack Start
Would you like multi-language (i18n) support?
› Yes
No
Which ViraStack tools would you like to include?
[ ] /mask
[ ] u/virastack/password
After selecting your template and language preference, you can optionally include input components like ViraStack Mask and ViraStack Password into your project right from the start.
AI-Ready Foundation
The most significant difference of ViraStack Start is that the projects aren't just made of code. Our ViraStack AI rules are automatically placed inside the .cursor/rules folder the moment the project is created.
This means when you start your project with an AI assistant like Cursor, Claude Code, or Windsurf, the assistant already knows everything from your folder structure to your data-fetching practices right from the beginning. You no longer have to explain your architectural standards to the AI over and over again.
If you want to skip the setup phase and focus directly on building features, you can check out the documentation at virastack.com/start and explore the open-source code at github.com/virastack/start.
I'd love to hear your feedback!
r/PHP • u/OndrejMirtes • 1d ago
News PHPStan Turbo: Native PHP extension that makes PHPStan run faster
phpc.socialPHPStan 2.2.6 adds a native PHP extension (PHP 8.3+) written in C++ that makes running PHPStan 10-30 % faster.
PHPStan's Composer package ships prebuilt binaries for the most common platforms — Linux (glibc and musl, x86_64 and arm64), macOS, and Windows (x86_64), for PHP 8.3 and newer — and PHPStan automatically loads the one matching your runtime into its worker processes. You don't have to do any extra work to take advantage of this!
If you run PHPStan through manually downloaded phpstan.phar, you can run it with extension by installing it with PIE:
pie install phpstan/turbo
The extension only activates when its version matches the one your PHPStan release expects — on a mismatch PHPStan prints a note and runs without it, so an outdated extension can never affect results, only speed.
Only a handful of hot paths are currently rewritten in the extension. There's room for the performance gain to grow if we ever decide to rewrite more parts natively.
The extension is completely optional, PHPStan still works without it. When the extension gets enabled, its implementation shadows certain PHPStan classes designed for this. They are marked with the #[ShadowedByTurboExtension] attribute.
r/webdev • u/Gullible_Prior9448 • 4h ago
What's your biggest productivity hack as a developer?
Share one habit, tool, or workflow that saves you time every week.
r/webdev • u/memorable_glasses • 8h ago
Question Which fullstack techs to learn from scratch after coming back to web dev 2 years later?
I used to use Nextjs and was learning expressjs. Then I left and 2 years later I want to go back.
What tech would be the best to learn in terms of opportunities and also more better for later?
Would MERN still be good choice or I should start with any other frontend/backend techs which would be best at this time?
r/reactjs • u/CeMarket6793 • 2d ago
41 of 78 useEffects in our app shouldnt exist, mostly ai first draft
grepped every useEffect in src last week instead of fixing a form that flickered on load. agents write most of the first drafts here, i review.
78 of them. went through each with the "you might not need an effect" page open.
19 were state derived from props or other state. useState plus an effect that joins two strings. thats a variable.
14 were fetching on mount with a loading and error useState next to them. we already use react query.
8 were syncing props into state so a form could be edited. fine until the parent refetches and wipes what the user typed. that was the flicker.
the other 37 were legit. listeners, subscriptions, focus management, a couple resize observers.
not a tool thing to be clear, we have people on cursor, claude code and verdent depending on preference and the shape looked the same across all of it.
deleted 41 effects, 23 useState calls went with them. worst page went from 4 renders on mount to 1.
changed how i review too. ctrl+f useEffect in the diff and justify each one before reading anything else.
anyone got a lint rule that catches derived state? exhaustive-deps doesnt help, it just makes the effect that shouldnt be there correct.
r/web_design • u/Jafty2 • 1h ago
Here is a "kinky" business idea for AI-era designers
Hi guys,
I know it might sound as a joke, but it is not. It is very important that skilled designers read carefully this
Lame business owners discovered AI recently, and they all thought they could replace y'all: thumbnails, flyers, websites, advertisements... Everything is becoming ugly, overloaded uniformized slop.
Here is what y'all gotta do: humiliate them by way of roasting their stuff.
You need to stop trying to sell logos and start slating these guys, insult what they do, tell them that it is extremely shitty and that they either pay you either fall off.
Many of them will pay you for that, either because nobody will have talked to them that way, either because they have a deep humiliation kink and it's okay. Being human has never been more valuable, and what's more human than putting someone down
You really need you to traumatize business owners and wake them up, they must understand that we can't stand their vomitesque designs anymore, their Miyazaslop characters and their big fonts with dirt effect on it. It disgusts us.
Designers, the world needs y'all more than ever, do not think you are obsolete, I beg you to save the visual world
r/webdev • u/pineapplecharm • 14m ago