Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork0
🤖 A modern command-line & library HTTP client, "for the API era." Like httpie, written in & for TypeScript.
License
stacksjs/httx
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
httx is a simple, fast, lightweight and user-friendly API client. Whether you are working with a CLI, a library or a server, httx is a perfect choice for making HTTP requests.
- 🌐API Requests:easily make API requests in a familiar way
- 🤖CLI:a cross-platform CLI
- 📚Library:use httx as a library in your project
- ⚡Performant:extremely fast and efficient
- 🪶Lightweight:built on web standards, lightweight & without dependencies
- 🐶User-Friendly:user-friendly, simple, powerful API
- 💪🏽Type-Safe:strongly-typed, including type-safe errors
bun install -d @stacksjs/httx
Note
We are trying to release under thehttx package name, which is currently abandoned. Please @npmjs, we would love to!🙏🏽
Making requests is simple. There are two ways of getting started:as a library or as a CLI.
Given the npm package is installed:
importtype{HttxConfig}from'httx'// import { ... } from 'httx'// ...
In case you are trying to start multiple proxies, you may use this configuration:
httx get api.example.com/usershttx post api.example.com/users name=john email=john@example.com -jhttx get api.example.com/files file@./data.txt -mhttx get api.example.com/secure -a username:passwordhttx --helphttx --version
The Reverse Proxy can be configured using ahttx.config.ts(orhttx.config.js) file and it will be automatically loaded when running thereverse-proxy command.
// httx.config.{ts,js}importtype{HttxOptions}from'@stacksjs/httx'importosfrom'node:os'importpathfrom'node:path'constconfig:HttxOptions={verbose:false,}exportdefaultconfig
Then run:
./httx
To learn more, head over to thedocumentation.
buntestPlease see ourreleases page for more information on what has changed recently.
Please review theContributing Guide for details.
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For casual chit-chat with others using this package:
Join the Stacks Discord Server
“Software that is free, but hopes for a postcard.” We love receiving postcards from around the world showing wherehttx is being used! We showcase them on our website too.
Our address: Stacks.js, 12665 Village Ln #2306, Playa Vista, CA 90094, United States 🌎
We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.
The MIT License (MIT). Please seeLICENSE for more information.
Made with 💙
About
🤖 A modern command-line & library HTTP client, "for the API era." Like httpie, written in & for TypeScript.
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.

