TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

5 点作者 kamilafsar超过 2 年前

1 comment

kamilafsar超过 2 年前
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 未加载