https://github.com/daniel-boll/axum-js
A Axum http wrapper for NodeJS
https://github.com/daniel-boll/axum-js
axum hacktoberfest hacktoberfest2023 javascript napi napi-rs native-module rust-lang
Last synced: 4 months ago
JSON representation
A Axum http wrapper for NodeJS
- Host: GitHub
- URL: https://github.com/daniel-boll/axum-js
- Owner: Daniel-Boll
- License: mit
- Created: 2023-10-06T23:44:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T00:45:15.000Z (over 2 years ago)
- Last Synced: 2025-04-02T10:06:43.551Z (10 months ago)
- Topics: axum, hacktoberfest, hacktoberfest2023, javascript, napi, napi-rs, native-module, rust-lang
- Language: Rust
- Homepage:
- Size: 1.02 MB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
![Tests Status][badge-tests]
![Deploy Status][badge-deploy]
[badge-tests]:https://img.shields.io/github/actions/workflow/status/daniel-boll/axum-js/test.yml?branch=main&label=tests&logo=github&style=for-the-badge
[badge-deploy]:https://img.shields.io/github/actions/workflow/status/daniel-boll/axum-js/publish.yml?branch=main&label=deploy&logo=github&style=for-the-badge
[](https://www.npmjs.com/package/@lambda-group/axum-js)
[](LICENSE)
[](CONTRIBUTING.md)
[](https://x.com/db_regret)
`axum-js` is a TypeScript/JavaScript wrapper around the Rust [Axum](https://github.com/tokio-rs/axum) crate, brought to you via [Napi-rs](https://github.com/napi-rs/napi-rs). This initiative seeks to imbue the JavaScript ecosystem with the resiliency and efficiency inherent to Axum.
Initiated during Hacktoberfest 2023 by Daniel Boll, this project now thrives under the stewardship of the `@lambda-group`.
## 🎯 Supported Platforms
- `darwin-x64`
- `linux-x64-gnu`
- `win32-x64-msvc`
## 🚀 Installation
```bash
npm install @lambda-group/axum-js
```
## 🛠 Usage
```javascript
import { axum } from "@lambda-group/axum-js";
const app = axum();
const port = 3000;
app.get('/', (req, res) => {
res.send('Hello World!')
});
app.listen(port, () => {
console.log(`Server is humming on port ${port}`)
});
```
## 🤝 Contributing
We're always on the lookout for contributions. Navigate to [CONTRIBUTING.md](CONTRIBUTING.md) for the scoop on how you can join the crew.
## 📜 License
Distributed under the [MIT License](LICENSE).
## 🙏 Acknowledgements
- Kudos to the Axum and Napi-rs communities for laying the groundwork that made `axum-js` feasible.
- A world of thanks to every contributor to `axum-js`, your input, no matter the magnitude, propels us forward.
---
Idealized with ❤️ by Daniel Boll