by go-dev-frame
A powerful and easy-to-use Go development framework that enables you to effortlessly build stable, reliable, and high-performance backend services with a "low-code" approach.
# Add to your Claude Code skills
git clone https://github.com/go-dev-frame/spongeLast scanned: 4/22/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-04-22T06:01:54.979Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}Sponge is a powerful and easy-to-use Go development framework. Built on the core philosophy of "Definition is Code", it aims to reshape the backend development experience through automatic generation technology, unleashing productivity and boosting development efficiency.
Sponge deeply integrates a code generation engine, Gin (Web framework), and gRPC (microservice framework), covering the full software lifecycle from project generation, development, and testing to API documentation and deployment.
Core Features:
No comments yet. Be the first to share your thoughts!
RESTful APIgRPCHTTP+gRPCgRPC GatewaySponge is suitable for building high-performance, maintainable backend systems, specifically for:
No installation required, experience the code generation feature directly in your browser: Code Generation
Note: If you need to run the downloaded service code locally, you must first complete the local installation of Sponge.
Install Sponge: Supports Windows, macOS, Linux, and Docker environments. View the Sponge Installation Guide.
Open the Code Generation UI Page
sponge run
Access http://localhost:24631 in your local browser to generate code.
Example: One-click Generation of Web Service Backend Code Based on SQL
make docs in the project root directory.make run.http://localhost:8080/swagger/index.html in the browser to test APIs via the Swagger interface.Sponge follows the "batteries included" principle, integrating 30+ mainstream Go ecosystem components, loaded on demand:
| Category | Component | |:-----------------------|:---------------------------------------------------------| | Frameworks | Gin, gRPC | | Database | GORM (MySQL, PostgreSQL, SQLite, etc.), MongoDB | | Cache/Messaging | Redis, Kafka, RabbitMQ | | Service Governance | Etcd, Consul, Nacos, Jaeger, Prometheus, OpenTelemetry | | Others | DTM (Distributed Transaction), WebSocket, Swagger, PProf | | ... | ... |
Sponge provides multiple code generation engines, supporting built-in templates, custom templates, and AI-assisted generation.
The code generated by Sponge follows a typical layered architecture with built-in service governance capabilities. The structure is clear and easy to maintain. The microservice framework structure of Sponge is shown below:
Based on tests with 50 concurrency and 1 million requests, services generated by Sponge demonstrate excellent performance:
HTTP Service
gRPC Service
The service code directory structure created by Sponge follows the project-layout, supporting Monolith, Multi-Repo, and Mono-Repo patterns.
.
├── api # Directory for protobuf files and generated *pb.go files
├── assets # Directory for other assets used with the repository (images, logos, etc.)
├── cmd # Main application entry directory
├── configs # Directory for configuration files
├── deployments # Deployment scripts directory for bare metal, docker, k8s
├── docs # Directory for design documents and interface documentation
├── internal # Private application and library code directory
│ ├── cache # Cache directory wrapped based on business logic
│ ├── config # Go structure configuration file directory
│ ├── dao # Data access directory
│ ├── database # Database directory
│ ├── ecode # Custom business error code directory
│ ├── handler # HTTP business functionality implementation directory
│ ├── model # Database model directory
│ ├── routers # HTTP routing directory
│ ├── rpcclient # Client directory for connecting to gRPC services
│ ├── server # Service entry, including http, grpc, etc.
│ ├── service # gRPC business functionality implementation directory
│ └── types # HTTP request and response types directory
├── pkg # Library dir