Sponge: Go "low-code" framework, N times more efficient than traditional RESTFul API/microservice development!

Sponge: Go "low-code" framework, N times more efficient than traditional RESTFul API/microservice development!

·

3 min read

Sponge is a powerful Go development framework. Its core concept revolves around reverse-engineering modular code by parsing SQL, Protobuf, and JSON files. The generated code can be flexibly and seamlessly assembled into various types of complete backend services (similar to the characteristics of sponge cells, where disassembled sponge cells can automatically recombine into a new sponge).

Sponge provides an all-in-one solution for project development with outstanding engineering capabilities, covering code generation, development, testing, API documentation, and deployment, significantly enhancing development efficiency, reducing complexity, and enabling high-quality projects with a "low-code approach".

Github repository: https://github.com/go-dev-frame/sponge

Applicable scenarios

Sponge is suitable for quickly developing various high-performance backend services, including but not limited to:

  • RESTful API services (gin);

  • gRPC services;

  • HTTP+gRPC hybrid services;

  • gRPC Gateway API services;

  • cloud-native microservices.

Additionally, developers can use custom templates to generate various types of code to meet specific business needs.

Core Highlights

  1. One-click generation of complete backend service code
    For Web or gRPC services that only require CRUD APIs, no Go code needs to be written. Simply connect to a database (e.g., MySQL, MongoDB, PostgreSQL, SQLite) to one-click generate complete backend service code and easily deploy it to Linux servers, Docker, or Kubernetes.

  2. Efficient development of general-purpose services
    When developing general-purpose Web, gRPC, HTTP+gRPC, or gRPC Gateway services, you only need to focus on three aspects:

    • Defining database tables;

    • Defining API descriptions in Protobuf files;

    • Writing business logic code in the generated templates.

The framework code and CRUD API code are all automatically generated by sponge.

  1. Support for custom templates, offering flexible extensibility
    Sponge supports generating various types of project-specific code using custom templates, not limited to the Go language. For example:

    • Backend code;

    • Frontend code;

    • Configuration files;

    • Test code;

    • Build and deployment scripts, etc.

  2. Generate code on the page, simple and easy to use
    Sponge allows code generation directly on the page, making it simpler and more user-friendly than using the command line. You only need to fill in the relevant parameters on the page to generate code with one click.

  3. Built-in AI assistant generates business logic implementation code
    Sponge comes with a built-in AI assistant (ChatGPT and DeepSeek), combining the strengths of both to form a comprehensive and efficient development solution:

    • Sponge: Handles infrastructure code generation (service framework, CRUD API interfaces, and custom API interfaces without business logic implementation).

    • DeepSeek or ChatGPT: Focuses on business logic implementation (table structure DDL design, custom API interface definition, and business logic implementation code).

Quick Start

  1. Install sponge

    Sponge supports installation on Windows, macOS, and Linux. Click to view the sponge installation guide.

  2. Open the code generation UI

    After installation, run the following command to open the sponge UI:

     sponge run
    

    Access http://localhost:24631 in a local browser to generate code through the UI interface, as shown below:

Examples of use

Examples of create services

Examples of develop complete project

Distributed transaction examples