Hello HN,<p>during past few days I was exploring concept of single source file applications where you can hide the build system.<p>I've cobbled together snaptail which hides nextjs build system and allows to work with just a single file.<p>It works great for fast prototyping or building an internal/local apps.<p>There is also support for API routes that can be exported via api variable.<p>An example:<p><pre><code> // myapp.tsx
export const App = () => <div>Hello world!</div>
export const api = [
{
method: "GET", path: "/api/hello",
handler: async (req, reply) => {
return reply.send({ hello: "world" });
}
}
];
// shell:
npx snaptail myapp.tsx</code></pre>