1.0.2 • Published 7 months ago

@ghosthaise/netx-actions v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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-actions

Usage

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:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit your changes (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature-branch).
  5. 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.

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago