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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Hacker News API SDKs → Code Generation in Rust

39 点作者 pmkelly4444超过 1 年前
Hi Hacker News!<p>Patrick and Elias here. We built an SDK &#x2F; Documentation generator for REST APIs. The link included shows the shiny output of our system: the docs! We generated 5 SDKs and docs from the Hacker News OpenAPI we found on GitHub. If you write code in Python, Typescript, Go, Ruby, or Rust, we’d love for you to try an SDK out!<p>If you want to generate SDKs for your own API try our tool here: <a href="https:&#x2F;&#x2F;github.com&#x2F;Sideko-Inc&#x2F;sideko">https:&#x2F;&#x2F;github.com&#x2F;Sideko-Inc&#x2F;sideko</a><p>We are both software engineers, and we built this tool because we were spending too much time writing API integrations, supporting integrations, writing documentation, and manually testing APIs at our jobs. We think every engineer can benefit from spending less time on APIs.<p>The generator is written in Rust because we need the rich type system, macros, and general correctness emphasis to generate working code. The SDKs are typed, they simplify auth, and they handle files.<p>If you want to learn more, check out our complete write up here: <a href="https:&#x2F;&#x2F;sideko.substack.com&#x2F;p&#x2F;the-hacker-news-api-enhanced-by-sideko" rel="nofollow noreferrer">https:&#x2F;&#x2F;sideko.substack.com&#x2F;p&#x2F;the-hacker-news-api-enhanced-b...</a><p>Thanks everyone,<p>PK and EP - team@sideko.dev

11 条评论

typosaur超过 1 年前
Every week there&#x27;s a new SDK &amp; Docs generator popping out. Fern, Speakeasy, LibLab, Stainless. And now Sideko. How many more do we need?<p>Edit: just took a look at the GitHub repo provided and turns out it&#x27;s just a wrapper around their API.
评论 #37918873 未加载
评论 #37950166 未加载
giancarlostoro超过 1 年前
A few years back I built an API with Django REST Framework, and the client wanted a thin client. I opened up Postman, and generated Python code from the requests I was making while testing, then I made it as reusable &#x2F; generic as possible, it was insanely thing, even for not using requests, I forgot what the built-in for Python 2 was called.<p>So I havent had to since, but Postman&#x27;s code generation is enough to give you a boilerplate to go from, but I think also openAPI has code generator tools. I do think making something so repetitive is kind of dull when tooling can automate so much of it and then you refine it as needed.
LatticeAnimal超过 1 年前
Very cool idea! I can&#x27;t wait to use this next time I need bindings to an API.<p>As a side note, I wanted to go see what code was generated (and check the quality) but I couldn&#x27;t find a docs.rs or github for the rust example (did I miss it?). I ended up having to look it up on docs.rs and was surprised that there were no comments there.<p>Do you have plans to add language-level documentation for the generated code?
评论 #37917463 未加载
pmkelly4444超过 1 年前
edit: we&#x27;ve moved all unofficial projects to the &quot;public&quot; subdomain: <a href="https:&#x2F;&#x2F;public.sideko.dev&#x2F;hacker-news&#x2F;docs" rel="nofollow noreferrer">https:&#x2F;&#x2F;public.sideko.dev&#x2F;hacker-news&#x2F;docs</a>
danenania超过 1 年前
Looks interesting! I’m curious how you’re integrating in the target languages? Are you loading a .so&#x2F;.dll lib built by rust? Or wrapping a binary? Something else?
评论 #37918178 未加载
jjn2009超过 1 年前
any plans to generate something for the server side? What I&#x27;ve been prototyping macros which wrap functions to ensure that they adhere to the behavior of an openapi spec.
miloignis超过 1 年前
Hmm, I&#x27;m getting PR_CONNECT_RESET_ERROR
评论 #37916839 未加载
ransy93超过 1 年前
Looks awesome. Can’t wait to try it out!
DGrechko超过 1 年前
Love it, amazing job guys!
skeptrune超过 1 年前
This is quite cool
评论 #37916514 未加载
souperdeluxe超过 1 年前
Wife changing technology. Amazing work guys.
评论 #37920211 未加载