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.

Show HN: Samen – build API's with TypeScript, get a typesafe client SDK for free

5 pointsby kamilafsarover 2 years ago

1 comment

kamilafsarover 2 years ago
Hi HN!<p>After years of lurking and reading, I&#x27;m thrilled to post my very first Show HN.<p>We are a small development agency from the Netherlands, we build web apps, mobile apps and API&#x27;s for our clients. All with TypeScript. For most of our projects we are responsible for both client (app) and server (api).<p>We used to do this with express and similar frameworks. In this situation you need to write code for your client to call the API, parse the incoming data on the backend, and then there is always hassle sharing your models between client and server.<p>Since about a year or two we use our home grown backend development kit we call Samen, and never ever looked back. Samen has a minimal API (just one function) with which you export functions in a special file called &quot;samen.ts&quot; in your source code. Samen will analyse your exported functions and generate an SDK for you. The SDK will include the models you use, and all the endpoints as regular async functions.<p>We&#x27;re very excited to get feedback from the HN community.
评论 #32667500 未加载