Sixth SDK is currently only available for and can be installed as followed.
Install
npm i sixth-node
Configure
import express from "express";
import bodyParser from 'body-parser'
import router from "./routes/user.js";
import Sixth from "sixth-node";
const app = express();
const sixth = new Sixth("api key", app)
await sixth.init()
//initialize routes, add middlewares, add exception handlers etc
app.use(bodyParser.json())
//sync sixth with the routes, middlewares and excepetion handlers you add
sixth.sync_project();
app.listen(PORT, ()=> console.log(`Server running on port: http://localhost:${PORT}`))
Verify
After configuring Sixth with your application, head over to your dashboard and click on rate limiting, if you have configured everything all your endpoint should be listed there. If not please send us an email at ope@trysixth.com