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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Mountaineer – Webapps in Python and React

145 点作者 icyfox大约 1 年前
Hey HN, I’m Pierce. Today I’m open sourcing a beta of Mountaineer, an integrated framework for building webapps in React and Python.<p>I’ve written a good 25+ webapps over the last few years in almost every major framework under the sun. Python and React remain my favorite. They let you get started quickly and grow to scale. But the developer experience of linking these two worlds remains less than optimal:<p>— Sharing typehints and schemas across frontend and backend code<p>— Scattered fetch() calls to template data and modify server objects<p>— Server side rendering &#x2F; gateway support<p>— Error handling on frontend fetches<p>Mountaineer is an attempt to solve those problems. I didn’t want to re-invent the wheel of what Python and React are good at, so it’s relatively light on syntax. It provides one frontend hook for React apps and introduces a MVC convention on the backend for managing views. Support files are generated progressively through a local watcher, so IDE type-hints and function calls work out of the box.<p>It’s more intuitive to explain with some code, so pop over to the Github if you’re interested in this stack and taking a look:<p>Github: <a href="https:&#x2F;&#x2F;github.com&#x2F;piercefreeman&#x2F;mountaineer">https:&#x2F;&#x2F;github.com&#x2F;piercefreeman&#x2F;mountaineer</a><p>More context: <a href="https:&#x2F;&#x2F;freeman.vc&#x2F;notes&#x2F;mountaineer-v01-webapps-in-python-and-react" rel="nofollow">https:&#x2F;&#x2F;freeman.vc&#x2F;notes&#x2F;mountaineer-v01-webapps-in-python-a...</a><p>Would love to hear your thoughts!

23 条评论

yoz大约 1 年前
Kudos for how much polish and documentation work you&#x27;ve done here. It&#x27;s rare to see a v0.1 release that&#x27;s this accessible to newcomers, even rarer to see it all from one person. You clearly care about developer experience and that makes the project much more inviting.
评论 #39527629 未加载
评论 #39530282 未加载
samtechie大约 1 年前
Before I try a web framework, I want to know if there&#x27;s an easy way to do authentication, authorization and multitenancy. Multitenancy may have multiple approaches but am talking about something as simple as row-based multitenancy to get things started. But I also understand this may be a lot for version 0.1. Either way, this is still fantastic work and thanks for sharing.
评论 #39539521 未加载
评论 #39539406 未加载
zeddotes大约 1 年前
This is cool! It&#x27;s weird that I, very recently, created a project based on FastAPI and had a strong desire for a React frontend as well, so I created a solution for it. My solution actually supports React SSR as well and this project has motivated me to publish my library. Thanks!
评论 #39530235 未加载
ElevenPhonons大约 1 年前
This looks interesting, but there&#x27;s a lot of moving pieces (rust, python, typescript, react, v8).<p>Maybe remove the .DS_Store files from repo and update your gitignore globally to avoid this issue. Also, Pydantic has SecretStr that might be useful to use.
评论 #39539456 未加载
iwebdevfromhome大约 1 年前
Very interesting work! Thanks for sharing. How hard do you think it&#x27;d be to swap React for Svelte ? Not that I feel strong for one or the other but I&#x27;m the process of learning svelte and having a good backend strategy for svelte views would be cool.
selecsosi大约 1 年前
This would be fun to wire up into django middleware for some quick VM binding for react frontends. Appreciate the approach, as other&#x27;s have said kudos and keep up the good work! Any work in this space to help alleviate the boilerplate is great
评论 #39529550 未加载
dvcoolarun大约 1 年前
This looks interesting! I need to try this on the weekend :)<p>By the way, I have been able to integrate JavaScript and any backend language with a hybrid approach, which works really well for large-scale commercial projects.<p>In a hybrid application, we&#x27;ll have all of the following types of pages:<p>-- Server-first Django&#x2F;Laravel&#x2F;Ruby pages with little-to-no JavaScript.<p>-- Client-first JavaScript pages with little-to-no Django&#x2F;Laravel&#x2F;Ruby.<p>More Details Here ... <a href="https:&#x2F;&#x2F;twitter.com&#x2F;dvcoolarun&#x2F;status&#x2F;1753310384843337907" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;dvcoolarun&#x2F;status&#x2F;1753310384843337907</a>
bormaj大约 1 年前
I&#x27;m very happy to see that this package makes use of pydantic. I have been a heavy user of Dash and there is a ton of room there for an improved dev experience via typed models&#x2F;components&#x2F;callbacks built on pydantic primitives.<p>Personally, I probably won&#x27;t venture to use this as I don&#x27;t really need the extra client-side flexibility that this provides, but it&#x27;s an impressive project for an early stage release.<p>There have been several other web app packages highlighted here over the last week. It&#x27;s great to see new work being done on open source hobby projects on the web app front for Python&#x2F;react&#x2F;rust.
ninjha01大约 1 年前
I have a less elegant, but perhaps less &quot;magic&quot; setup here: <a href="https:&#x2F;&#x2F;github.com&#x2F;nitro-bio&#x2F;micro-app">https:&#x2F;&#x2F;github.com&#x2F;nitro-bio&#x2F;micro-app</a>
mlamina大约 1 年前
Looove that approach! Other than the TODO example, is there a full project I can look at that&#x27;s based on Mountaineer? If I choose to be an early adopter, what are the current gaps &#x2F; shortcomings I need to look out for?
buremba大约 1 年前
Seems interesting as current Python-based solutions don&#x27;t have good support for Javascript. I see the support for the binding is from Python to JS but do you have any plans to support two-way binding work?
评论 #39525473 未加载
silent_cal大约 1 年前
This is awesome, thank you for building this. I&#x27;ve been looking for something like this for a long time. Does it have any built-in authentication features?
android521大约 1 年前
i like the idea of tight integration between frontend and backend by abstracting out the api&#x2F;data fetching&#x2F;transformation which is a lot of busy work
kapitanjakc大约 1 年前
Hi I am trying to learn react for integration with Django.<p>I keep starting to build tic tac to application and then just leave it there.<p>Any tips and or documents on how to properly learn react ?
评论 #39532605 未加载
评论 #39531521 未加载
评论 #39529533 未加载
3abiton大约 1 年前
What makes it better than the current existing solutions though? For someone who is just interested in rapid prototyping?
phantompeace大约 1 年前
Brilliant project. I was looking for something like this for my projects - can’t wait to try it.
Rumudiez大约 1 年前
Does it support serverside rendering (SSR)?
评论 #39525595 未加载
robertlagrant大约 1 年前
Very nice. I would probably not try it, as it&#x27;s FastAPI based, but more of these things need to spring up!
评论 #39525314 未加载
akshay-deo大约 1 年前
Does anybody know something similar in Golang?
评论 #39641226 未加载
greenie_beans大约 1 年前
interesting, def gonna try it out. thanks for sharing your work.
frankfrank13大约 1 年前
Seems very neat!
liuxiaopai大约 1 年前
very cool
xandrius大约 1 年前
I personally would like to see less of Python in the world but nevertheless great job!
评论 #39525598 未加载
评论 #39527140 未加载