TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

APIPass -Interest in a Node.js Rest Client for Most Commonly Used APIs?

1 pointsby mx2323about 5 years ago
hey everyone one of the things that annoys me about REST APIs is the integration of them. everyone integrates with the same APIs over and over again, rediscovering what the endpoints are, how the parameters work, guessing what the return fields are, writing the pagination code, figuring out how to get a token, etc. even amongst the most popular APIs, openAPI adherence is poor.<p>I&#x27;m thinking about starting an open-source project around building a REST client in Node.JS &#x2F; TypeScript that has wrappers for the most popular REST APIs. It would come with types and documentation so you could see the parameters in Typescript.<p>I think, especially if you work at a SaaS and you need to build a lot of integrations with popular 3rd parties fast - it could be useful.<p>The great thing would be that you could work with a lot of APIs quickly, with the same syntax, without having to pause and go look up documentation, etc.<p>To start, the RestClient would be super slim, maybe only including some of the most common endpoints of some of the most common APIs - but let&#x27;s be real, the Slack and JIRA APIs have hundreds of endpoints, and we all only use one or two of them.<p>Here&#x27;s my list of the first ten API calls that I might consider putting in the REST Client<p>========<p>slack postMessageToChannel<p>jira get all issues in project<p>googleSheets readData, writeData, listSheets<p>salesforce getAllOpportunities, getAllContacts<p>twilio sendTextMessage, doPhoneCall<p>gitlab getLatestCommits<p>github getLatestCommits<p>gmail sendEmail<p>twitter get latest tweets for user ========<p>The syntax would be, at a high level -<p>apiPass.slack().postMessage({message:&#x27;foo bar}) OR apiPass.jira().getIssues({&#x27;projectID&#x27;:foo}})<p>thoughts?<p>if you are interested - LMK by leaving a comment.

no comments

no comments