calljmp 0.0.1
calljmp: ^0.0.1 copied to clipboard
Calljmp SDK for Flutter
Calljmp Flutter SDK #
Secure backend-as-a-service for mobile developers. No API keys. Full SQLite control.
π Overview #
Calljmp is a secure backend designed for mobile developers, providing:
- β Authentication via App Attestation (iOS) and Play Integrity (Android)
- β Full SQLite database access (no restrictions, run raw SQL)
- β Dynamic permissions for users & roles
- β Flutter SDK for seamless integration
πΉ Website: calljmp.com
πΉ Follow: @calljmpdev
π¦ Installation #
Add the SDK to your pubspec.yaml:
dependencies:
calljmp: ^latest
Then run:
flutter pub get
π οΈ Setup & Usage #
1οΈβ£ Initialize Calljmp #
Import and initialize Calljmp in your Flutter app:
import 'package:calljmp/calljmp.dart';
final calljmp = Calljmp();
2οΈβ£ Authenticate User #
Authenticate a user with Calljmp:
final user = await calljmp.users.auth.email.authenticate(
email: "test@email.com",
name: "Tester",
password: "password",
policy: UserAuthenticationPolicy.signInOrCreate,
tags: ["role:member"],
);
print(user);
3οΈβ£ Run Direct SQL Queries #
Access your SQLite database without restrictions:
final result = await calljmp.database.query(
sql: 'SELECT id, email, auth_provider, provider_user_id, tags, created_at FROM users',
);
print(result);
4οΈβ£ Access service #
If you are deploying your own service, you can access it via the service property.
// ./src/services/main.ts
import { Service } from './service';
const service = Service();
service.get('/hello', async c => {
return c.json({
message: 'Hello, world!',
});
});
export default service;
Then in your Flutter app, you can call the service like this:
// ./lib/main.dart
final message = await calljmp.service
.request(route: "/hello")
.get()
.json((json) => json['message'] as String);
print(message);
π Security & App Attestation #
Calljmp does not use API keys. Instead, it relies on App Attestation (iOS) and Play Integrity (Android) to verify that only legitimate apps can communicate with the backend.
For more details, check the Apple App Attestations docs and/or Google Play Integrity docs.
π License #
This project is licensed under the MIT License - see the LICENSE file for details.
π¬ Support & Community #
If you have any questions or feedback:
- Follow @calljmpdev
- Join the Calljmp Discord
- Open an issue in the GitHub repo