it-tools icon indicating copy to clipboard operation
it-tools copied to clipboard

an API

Open chris-merrill opened this issue 1 year ago • 4 comments

What type of request is this?

New tool idea

Clear and concise description of the feature you are proposing

I think it would be amazing if some of the tools were accessible via a REST API.

Is their example of this tool in the wild?

I also use/self-host stirling pdf. https://github.com/Stirling-Tools/Stirling-PDF it has a REST API that I use for automations and code.

Additional context

No response

Validations

  • [X] Check the feature is not already implemented in the project.
  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • [X] Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).

chris-merrill avatar Jun 27 '24 22:06 chris-merrill

Hi @chris-merrill, an API is server-side, so as it-tools is client side only, an API will never be possible, sorry

sharevb avatar Jul 07 '24 21:07 sharevb

Is it possible to go "in that direction"? Not building completely new, but have input and output in a format, that could be used as kind of an API? I was thinking about an example:

The UUIDs generator (depending on version) takes parameters UUID version and Quantity and responds with a string. If I can add the parameters via URL like https://it-tools.tech/uuid-generator/?uuidVersion=v4&quantity=2 and the response is displayed on the website as it is right now as a default, but could take another parameter like response=json and the result for https://it-tools.tech/uuid-generator/?uuidVersion=v4&quantity=2&response=json would be a raw text file with the json contents, I could then "build my own API" around that or work with HTTP requests.

wohfab avatar Aug 02 '24 15:08 wohfab

Hi @wohfab, it-tools is a pure "client side" tool. No server part, exce^pt for serving "static file". So response=json weuld need to be evaluated by a browser with something like Selenium/Puppeeter or some command line tool like https://www.npmjs.com/package/domcurl. Curl or wget alone will not evaluate client js so response will be boilerplate

sharevb avatar Aug 03 '24 08:08 sharevb

@chris-merrill @wohfab the tools of IT-Tools are easy to export and use in another place whereever js/ts is used. If You have client code which You want to be able to do the same that a Tool here does just copy the <tool>.service.ts of the tool into Your project. Heck, You can ask a GPT to rewrite it in any other language and I'm sure it will be a breeze. ; )

gornvan avatar Oct 09 '24 21:10 gornvan

@chris-merrill @wohfab the tools of IT-Tools are easy to export and use in another place whereever js/ts is used. If You have client code which You want to be able to do the same that a Tool here does just copy the <tool>.service.ts of the tool into Your project. Heck, You can ask a GPT to rewrite it in any other language and I'm sure it will be a breeze. ; )

I was wanting to learn how to create an MCP service, so I picked this as a starter. Right now some of the tools need refining, but it works. I used VS Code, Copilot Chat Agent, Playwright MCP & Claude Sonnet 4. You can use it as an MCP service or just an API. https://github.com/wrenchpilot/it-tools-mcp

wrenchpilot avatar Jun 25 '25 20:06 wrenchpilot

Hi @wrenchpilot, really impressive and may be extended with tools from my fork? if anyone wants more tools

And if you arr interested in up to date version of it-tools, I made kind of a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)

sharevb avatar Jul 06 '25 15:07 sharevb

@sharevb nice! I'll take a look!

wrenchpilot avatar Jul 07 '25 13:07 wrenchpilot