@ghosthaise/netx-actions v1.0.2
NetX
Netx is a lightweight and powerful utility library for Next.js that simplifies and enhances API calls and Server Actions management.
It automatically detects and types your actions folder, providing a seamless developer experience — with automatic type inference, retry logic for network/server failures, and an intuitive API for calling actions from your client or server components.
✨Features
⚙️ Auto-discovery of actions from a dedicated folder (e.g. /actions)
🧠 Automatic TypeScript typings based on your action definitions
🔁 Built-in retry mechanism for handling network/server failures
📦 Zero-config setup — just install and organize your actions
🚀 Optimized for Next.js App Router (compatible with Server Actions)
Installation
To install the dependencies, run:
npm i @ghosthaise/netx-actionsUsage
Provide an example of how to use your project:
const netx = require('netx');
// Example usage
netx.doSomething();Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Commit your changes (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature-branch). - Open a pull request.
License
This project is licensed under the MIT License.
Contact
For questions or feedback, please contact your email or other contact info.