NyanCAD Server
NyanCAD Server is a Python package that provides an ASGI server for hosting NyanCAD applications with marimo notebook integration.
Features
- Serves NyanCAD static files (HTML, CSS, JavaScript, assets) at the root path
- Integrates marimo notebook server at
/notebook/endpoint - Bundles all static assets in the wheel for easy deployment
- Simple command-line interface for starting the server
- Development mode with auto-reload support
Installation
pip install nyancad-server
Usage
Command Line
Start the server with default settings (localhost:8080):
nyancad-server
Custom host and port:
nyancad-server --host 0.0.0.0 --port 3000
Development mode with auto-reload:
nyancad-server --reload
Programmatic Usage
from nyancad_server.server import create_app
import uvicorn
app = create_app()
uvicorn.run(app, host="localhost", port=8080)
Server Endpoints
/- NyanCAD web interface (static files)/css/,/js/,/library/, etc. - Static assets/wheels/- Python wheels (including nyancad package)/notebook/- Marimo notebook interface
Architecture
The server creates a Starlette ASGI application that:
- Static Files: Serves the entire
public/folder contents at the root path using Starlette's StaticFiles - Marimo Integration: Mounts a marimo ASGI app at
/notebook/that hosts the NyanCAD notebook - Asset Bundling: All static files and the notebook are bundled into the wheel during package build
This mirrors the existing WASM setup where users can access the main interface at / and the notebook at /notebook/, but replaces the WASM notebook with a full marimo server.
Development
The server includes fallback logic to work in development mode by looking for files relative to the source code when bundled assets are not available.
Requirements
-
Python 3.8+
-
marimo >= 0.13.0
-
uvicorn[standard] >= 0.23.0
-
nyancad >= 0.1.0
License
This project is licensed under the Mozilla Public License 2.0 (MPL-2.0).
Metadata
Release files for nyancad-server 0.19.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nyancad_server-0.19.5.tar.gz | 12.2 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nyancad_server-0.19.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.6 MB
Release files / nyancad_server-0.19.5.tar.gz
| Download URL | nyancad_server-0.19.5.tar.gz |
|---|---|
| Size | 12.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02a36876664039fd1b8f271ad91a354e997f2f38313cccf5bf3954b50832a087
|
|
BLAKE2b-256 checksum How to use checksums |
4cc3ba1ac80c86e4be3de3a060cfd38aa85548e1eaa3ec167fdcedfb2e5f2064
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / nyancad_server-0.19.5-py3-none-any.whl
| Download URL | nyancad_server-0.19.5-py3-none-any.whl |
|---|---|
| Size | 12.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8eaa7d95fda384723346a793c0875a96b0b9c489299bc42997fd4e5e2af42021
|
|
BLAKE2b-256 checksum How to use checksums |
d90fca63814e92b6323c2d5671ce24e00373adebb19c538be692797154a3f4fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for nyancad-server 0.19.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.