Comprehensive guides and API reference to integrate G8KEPR into your application and protect your APIs in minutes.
G8KEPR is designed to be deployed in minutes. This guide will walk you through installation, configuration, and making your first protected API request.
Install the G8KEPR SDK for your platform:
npm install @gatekeeper/sdkpip install gatekeeper-sdkgo get github.com/gatekeeper/sdk-goAfter signing up, navigate to your dashboard and copy your API key from the "API Keys" section.
Security Note: Never commit your API key to version control. Always use environment variables.
const Gatekeeper = require('@gatekeeper/sdk');
const gatekeeper = new Gatekeeper({
apiKey: process.env.GATEKEEPER_API_KEY,
environment: 'production'
});
// Protect all routes
app.use(gatekeeper.middleware());
// Or protect specific routes
app.use('/api', gatekeeper.middleware({
rateLimit: { requests: 100, window: '1m' }
}));from gatekeeper import Gatekeeper, middleware
gatekeeper = Gatekeeper(
api_key=os.getenv("GATEKEEPER_API_KEY"),
environment="production"
)
app = FastAPI()
app.add_middleware(
middleware.GatekeeperMiddleware,
gatekeeper=gatekeeper,
rate_limit={"requests": 100, "window": "1m"}
)Make a request to your API and check the G8KEPR dashboard to see it being monitored in real-time.
Your API is now protected by G8KEPR. Visit your dashboard to: