Zero Configuration
No YAML, no complex setup. Just write TypeScript and deploy.
Build and deploy serverless applications with zero configuration
import Nimbus from '@hillock-tech/nimbus-js';
const app = new Nimbus({
projectName: 'my-app',
region: 'us-east-1'
});
// Create an API
const api = app.API({ name: 'api' });
// Add routes
api.route('GET', '/hello', async () => ({
statusCode: 200,
body: JSON.stringify({
message: 'Hello from Nimbus!',
timestamp: new Date().toISOString()
})
}));
api.route('POST', '/users', async (event) => {
const user = JSON.parse(event.body || '{}');
return {
statusCode: 201,
body: JSON.stringify({
id: Math.random().toString(36).substring(7),
...user,
createdAt: new Date().toISOString()
})
};
});
// Export for CLI deployment
export default app;