Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🤖 A modern command-line & library HTTP client, "for the API era." Like httpie, written in & for TypeScript.

License

NotificationsYou must be signed in to change notification settings

stacksjs/httx

Social Card of this repo

npm versionGitHub ActionsCommitizen friendly

httx

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.

Screenshot of httx

Features

  • 🌐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

Install

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!🙏🏽

Get Started

Making requests is simple. There are two ways of getting started:as a library or as a CLI.

Library

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:

CLI

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

Configuration

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.

Testing

buntest

Changelog

Please see ourreleases page for more information on what has changed recently.

Contributing

Please review theContributing Guide for details.

Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discussions on GitHub

For casual chit-chat with others using this package:

Join the Stacks Discord Server

Postcardware

“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 🌎

Sponsors

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.

Credits

License

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

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp