Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
m3o.dev/services/routing/handler
Serverless Micro Services
M3O transforms public APIs into smaller easier to use Micro services which you can explore, discover and consume as serverless building blocks. The platform generates unified api docs, client libraries and examples using protobuf to OpenAPI conversion and some custom tools.
Here are the main features:
Here are a few APIs:
Authorization: Bearer [Token]
headerhttps://api.m3o.com/v1/*
.Grab your API token from the dashboard and export it
export M3O_API_TOKEN=xxxxxxx
curl "https://api.m3o.com/v1/db/Create" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $M3O_API_TOKEN" \
-d '{
"table": "notes",
"record": {
"name": "TODO",
"list": ["eat", "sleep", "repeat"]
}
}'
Find all the curl examples in m3o-sh
Import packages from go.m3o.com
import (
"go.m3o.com"
"go.m3o.com/db"
)
Create a new client with your API token and call it
client := m3o.New(os.Getenv("M3O_API_TOKEN"))
rsp, err := client.Db.Create(&db.CreateRequest{
Table: "notes",
Record: map[string]interface{}{
"name": "TODO",
"list": []string{"eat", "sleep", "repeat"},
},
})
fmt.Println(rsp, err)
Find all the Go examples in m3o-go
Install the m3o package
npm install m3o
Call app run like so
const m3o = require("m3o").default(process.env.M3O_API_TOKEN);
async function main() {
let rsp = await m3o.db.create({
table: "notes",
record: {
"name": "TODO",
"list": ["eat", "sleep", "repeat"]
}
});
console.log(rsp);
}
main();
Find more JS examples in m3o-js
Install the cli
curl -fssl https://install.m3o.com/cli | /bin/bash
Example call
m3o db create --table=notes --record='{"name": "TODO", "list": ["eat", "sleep", "repeat"]}'
See the m3o-cli for examples
FAQs
Unknown package
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.