
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Developer productivity tool for making high-quality FastAPI production-ready APIs.
Documentation: https://fastapi-mvc.netlify.app
Source Code: https://github.com/fastapi-mvc/fastapi-mvc
Project scaffold: https://github.com/fastapi-mvc/copier-project
Example generated project: https://github.com/fastapi-mvc/example
Fastapi-mvc is a developer productivity tool for FastAPI web framework. It is designed to make programming FastAPI applications easier by making assumptions about what every developer needs to get started. It allows you to write less code while accomplishing more. Core features:
Fastapi-mvc comes with a number of scripts called generators that are designed to make your development life easier by creating everything that’s necessary to start working on a particular task. One of these is the new application generator, which will provide you with the foundation of a fresh FastAPI application so that you don’t have to write it yourself.
Creating a new project is as easy as:
$ fastapi-mvc new /tmp/galactic-empire
This will create a fastapi-mvc project called galactic-empire in a /tmp/galactic-empire
directory and install its dependencies using make install
.
Once project is generated and installed lets run development uvicorn server (ASGI):
$ cd /tmp/galactic-empire
$ fastapi-mvc run
To confirm it’s actually working:
$ curl 127.0.0.1:8000/api/ready
{"status":"ok"}
Now let's add new API endpoints. For that we need to generate new controller:
$ fastapi-mvc generate controller death_star status load:post fire:delete
And then test generated controller endpoints:
$ curl 127.0.0.1:8000/api/death_star/status
{"hello":"world"}
$ curl -X POST 127.0.0.1:8000/api/death_star/load
{"hello":"world"}
$ curl -X DELETE 127.0.0.1:8000/api/death_star/fire
{"hello":"world"}
You will see it working in server logs as well:
INFO: 127.0.0.1:47284 - "GET /api/ready HTTP/1.1" 200 OK
INFO: 127.0.0.1:55648 - "GET /api/death_star/status HTTP/1.1" 200 OK
INFO: 127.0.0.1:55650 - "POST /api/death_star/load HTTP/1.1" 200 OK
INFO: 127.0.0.1:55652 - "DELETE /api/death_star/fire HTTP/1.1" 200 OK
You can get the project directly from PyPI:
pip install fastapi-mvc
Or build with Nix from flake:
# Optionally setup fastapi-mvc Nix binary cache to speed up the build process
# https://app.cachix.org/cache/fastapi-mvc#pull
nix-env -iA cachix -f https://cachix.org/api/v1/install
cachix use fastapi-mvc
# Install with Nix from flake:
nix build github:fastapi-mvc/fastapi-mvc#default --profile $HOME/.nix-profile
If you have created a project with fastapi-mvc, feel free to open PR and add yourself to the list. Share your story and project. Your success is my success :)
Projects:
fastapi-mvc new ...
List of community generators that can be used with fastapi-mvc:
FAQs
Developer productivity tool for making high-quality FastAPI production-ready APIs.
We found that fastapi-mvc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.