
P
Parin
Open Sourceπ Alt to GodotA minimalist 2D game engine between raylib and Godot in Dlang
π³ Self-Hostableπ No Sign-upβ‘ Editorial Signal: 82/100β
148 Stars
git clone https://github.com/Kapendev/parin.gitParin is a lightweight 2D game engine written in Dlang, designed to bridge the gap between low-level frameworks like raylib and heavy engines like Godot. It provides a pragmatic middle-ground for indie developers seeking structured game architecture without the overhead of heavy editor suites.
Built from the ground up leveraging D's high performance and expressive metaprogramming capabilities.
Offers more structural abstractions than raylib while avoiding the bloated toolchains of Godot or Unity.
Optimized specifically for 2D game graphics pipelines and fast iteration cycles.
Developing high-performance 2D indie platformers or retro arcade games
Prototyping custom game engine architectures using Dlang
Building lightweight interactive visual applications without heavy runtime overhead
Unlike Godot which relies on a heavy node-based scene tree and GDScript/C#, Parin offers a code-first, lightweight approach in Dlang reminiscent of lower-level frameworks.
Indie game developers and systems programmers looking for a lightweight 2D engine written in Dlang.
Parin is engineered to eliminate critical operational friction in open source alternatives. From an architectural standpoint, the system adopts a local-first, self-contained deployment posture, ensuring streamlined onboarding and minimal setup overhead.
Because the underlying code is fully open-source, engineering teams can audit security implementations, inspect telemetry vectors, and extend functionality via custom fork without risk of sudden vendor deprecation.
Parin is a lightweight, high-performance 2D game engine written natively in D (Dlang), engineered to occupy the pragmatic architectural space between low-level multimedia libraries like raylib or SDL and monolithic, editor-heavy engines like Godot. At its systems core, Parin avoids runtime bloat by minimizing reliance on D's default garbage collector, favoring stack allocations, deterministic arena allocators, and manual memory management for frame-transient graphics data. The graphics backend is built upon hardware-accelerated OpenGL, implementing an automatic sprite batching subsystem. Quad vertices, texture UV mapping coordinates, and color tint values are aggregated into contiguous vertex buffers before dispatching single instanced draw calls to the GPU, maximizing rendering throughput and minimizing expensive state changes. The execution harness implements a deterministic, fixed-timestep game loop (`dt = 1/60s`) decoupled from variable display refresh rates, ensuring absolute physics repeatability across diverse hardware. Parin includes an optimized 2D collision detection pipeline utilizing spatial hash grids for fast Axis-Aligned Bounding Box (AABB) queries, an integrated bitmap and vector font rasterizer, and a low-latency multi-channel audio mixer that streams uncompressed PCM audio buffers directly to hardware sound devices without invoking external middleware runtimes.
Developer ergonomics in Parin cater unapologetically to code-first programmers, systems engineers, and indie game developers who prefer text editors over visual node graphs. Projects are structured and compiled using D's official package manager, `dub` (`dub.json` or `dub.sdl`), with zero external IDE dependencies. The API surface is strictly procedural and clean, exposing intuitive lifecycle functions: `initEngine()`, `beginDrawing()`, `drawSprite()`, `checkCollision()`, and `endDrawing()`. Parin leverages D's powerful Compile-Time Function Execution (CTFE) and template mixins to perform static asset reflection: asset manifests, sprite sheet atlas mappings, and sound identifier enums are validated and generated at compile time, eliminating runtime string-lookup overhead and missing-file crashes. Compilation is blazingly fast when utilizing the reference Digital Mars D Compiler (DMD), yielding sub-second edit-compile-test cycles that rival dynamic scripting languages. For production binary builds, developers switch to the LLVM-based D Compiler (LDC) with flags like `--build=release --compiler=ldc2`, producing ultra-optimized, stripped native executables with minimal memory footprints and zero external runtime dependencies. Built-in performance profiling hooks output frame times, active batch count metrics, and memory high-water marks directly to the developer terminal during live testing sessions, simplifying performance tuning.
Parin is released under a fully permissive open-source license (such as MIT or zlib/libpng), establishing total legal and operational freedom for indie developers and commercial game studios. There are no revenue sharing requirements, seat licensing fees, recurring engine subscriptions, or splash-screen mandatesβa stark contrast to commercial engines like Unity with its runtime fee controversies or Unreal Engine's 5% gross revenue royalty. From a Total Cost of Ownership (TCO) perspective, Parin represents an exceptionally lean asset. The compiled binary size of a complete standalone game typically sits well under 10MB, compared to Godot's 40MB+ export templates or Unity's 100MB+ minimum runtime baggage. Memory utilization during active gameplay remains tightly bounded under 50MB RAM, allowing games built with Parin to run smoothly on legacy hardware, low-cost embedded systems, and single-board computers like the Raspberry Pi without expensive hardware provisioning. Developer workstation overhead is similarly negligible: full game compilation runs effortlessly on standard developer laptops without requiring multi-thousand-dollar GPU workstations. Independent game creators retain complete autonomy over compiled binary artifacts, ensuring zero platform tax or unexpected middleware licensing changes. Furthermore, the engine operates completely offline, containing zero telemetry collection daemons, crash reporting phoning-home scripts, or cloud analytics backdoors.
Parin is production-ready for technical indie game developers, retro 2D arcade builders, and systems programmers seeking maximum performance and complete code ownership in Dlang. It is the ideal foundation for pixel-art platformers, top-down roguelikes, and lightweight desktop utilities. However, teams that depend on visual drag-and-drop level editors, complex 3D rendering pipelines, visual node shaders, or large non-technical artist workflows should stick with mainstream alternatives like Godot or Unity. Key operational failure modes center around ecosystem size: because Dlang occupies a specialized niche compared to C++ or C#, developers must often write their own integrations for complex third-party SDKs, console porting layers, or specialized physics middleware. For deployment, Parin games cross-compile effortlessly to standalone native executables across Linux, Windows, and macOS. Furthermore, using LDC and Emscripten, Parin can be compiled directly to WebAssembly (Wasm) and WebGL, enabling instant browser-based distribution on platforms like itch.io with zero plugin overhead. Automated unit test execution can be integrated into GitHub Actions CI workflows using D's built-in `unittest` construct, ensuring continuous deterministic verification across multiple target platforms before release binaries ship. This strict verification pipeline ensures consistent 2D physics behavior and visual rendering stability across Linux, Windows, macOS, and WebAssembly targets.
Parin is 100% free and open-source under an open software license. There are no mandatory monthly subscription fees to access the source code or run it locally.
Unlike Godot which relies on a heavy node-based scene tree and GDScript/C#, Parin offers a code-first, lightweight approach in Dlang reminiscent of lower-level frameworks.
Yes. Parin is designed for self-hosting via Docker or direct server deployment. Running on your own infrastructure allows you to maintain direct control over your local compute, database storage, and operational environment.
No account creation or credit card is required to evaluate Parin. You can immediately access core features or run it locally without onboarding friction.
You can launch or test Parin quickly using the following command: git clone https://github.com/Kapendev/parin.git Visit the official portal at https://github.com/Kapendev/parin for documentation and guides.
ToolsRadar maintains strict editorial independence. This review of Parin was conducted using our standardized 5-pillar evaluation framework (Setup, Code Auditability, Maintenance Vitality, Cost Advantage, and Community Signal). We do not accept paid placements to inflate benchmark scores.
Maintainers of Parin and community advocates can display this real-time verification badge in your GitHub README, official documentation, or landing page.
[](https://lordorange.top/tool/parin)<a href="https://lordorange.top/tool/parin" target="_blank"><img src="https://lordorange.top/badge/parin.svg" alt="Featured on ToolsRadar" /></a>Compare other trending developer tools and open-source projects in this space.
Cross-referenced architectural playbooks and category rankings featuring Parin.
High-signal, production-tested utilities with transparent codebases and active communities.
Take back data ownership by replacing expensive monthly cloud subscriptions with self-hosted software.
The definitive guide to escaping SaaS subscription sprawl with Coolify, Traefik, Tailscale, and automated S3 backup pipelines.
Replace sluggish 1970s Unix utilities with blisteringly fast, memory-safe Rust and Go modern CLI powerhouses.