Skip to content
 
 

Repository files navigation

PhotinoX Logo

PhotinoX.Server

NuGet Version Build License NuGet Downloads

Optional static-file server (Kestrel) for PhotinoX apps.
Use it to serve local wwwroot and ESM modules without browser restrictions (CORS, file://).
Useful when JavaScript modules cannot be loaded directly from disk.

Note: PhotinoX.Server is an independent fork of tryphotino/photino.NET.Server under the Apache‑2.0 license and is not affiliated with the original project or organization.

Core (ecosystem)


Install

dotnet add package PhotinoX.Server

Targets net8.0; net9.0; net10.0.

Samples

Why this server?

Browsers block many operations from file:// (CORS) and refuse to load ESM modules without proper HTTP/MIME. PhotinoX.Server runs a minimal Kestrel host so your app serves wwwroot and modules over http://localhost:<port>, avoiding those restrictions.

It can serve files from the physical web root and fall back to embedded resources under Resources/<webRootFolder>.

Notes

  • Minimal defaults: static files, default documents, and optional SPA fallback.
  • No MVC/SignalR — focused on local dev / packaged desktop apps.
  • Works on Windows, macOS, Linux with supported .NET runtimes.

Build from source

dotnet restore Photino.NET.Server\PhotinoX.Server.csproj
dotnet build   Photino.NET.Server\PhotinoX.Server.csproj -c Release
dotnet pack    Photino.NET.Server\PhotinoX.Server.csproj -c Release -o artifacts

CI: see .github/workflows/build.yml (build + pack + upload .nupkg/.snupkg).

Contributing

Issues and PRs are welcome. Keep PRs focused, minimal, and consistent with the rest of PhotinoX.

License

PhotinoX.Server is licensed under Apache‑2.0.

About

Optional static file server (Kestrel) for PhotinoX apps. Maintained fork of Photino.NET.Server

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages