css |
---|
LINEAR - LIMITED BETA RELEASE
Linear helps streamline software projects, sprints, tasks, and bug tracking. It's built for high-performance teams.
enter your work email Request Early Access
css |
---|
LINEAR - LIMITED BETA RELEASE
Linear helps streamline software projects, sprints, tasks, and bug tracking. It's built for high-performance teams.
enter your work email Request Early Access
import { ImageResponse } from '@vercel/og'; | |
export const config = { | |
runtime: 'experimental-edge', | |
}; | |
export default function () { | |
return new ImageResponse( | |
( | |
<div |
export default { | |
fetch: async req => { | |
// Fetch YAML of Categories, transform to JSON | |
const apis = await fetch('https://yaml.do/raw.githubusercontent.com/drivly/apis.do/main/apis.yaml').then(res => res.json()) | |
let md = ` | |
# APIs.do: Hypermedia-driven APIs & SDK |
type Persona = 'Builder' | 'Coder' | 'Founder' | |
type Action = 'Designs' | 'Develops' | 'Launches' | 'Grows' | 'Scales' | |
type Vertical = 'Financial' | 'Insurance' | 'Automotive' | |
type Activity = 'SaaS' | 'API' | 'App' | |
type Sentence = `${Persona} ${Action} ${Vertical} ${Activity}` |
export default { | |
fetch: req => fetch('http://ctx.do/api#testingTheHash') | |
} |
import db from 'https://pkg.do/analytics.engine.do' | |
const schema = ({domain, dns, ip, geoIp, geoHtml, webServer, hostname, emails, alexa, phone, majestic, discovered}) => | |
(req, env) => env.ZONES.writeDataPoint({ | |
indexes: [domain, dns, ip], | |
blobs: [geoIp, geoHtml, webServer, hostname, emails, phone, discovered], | |
doubles: [alexa, majestic], | |
} | |
}) |
import { test } from 'https://pkg.do/uvu'; | |
import * as assert from 'https://pkg.do/uvu/assert'; | |
test('Math.sqrt()', () => { | |
assert.is(Math.sqrt(4), 2); | |
assert.is(Math.sqrt(144), 12); | |
assert.is(Math.sqrt(2), Math.SQRT2); | |
}); | |
test('JSON', () => { |
import { Octokit } = from 'https://pkg.do/@octokit/rest' | |
export default { | |
fetch: async (req, env) => { | |
octokit.rest.gists.get({ gist_id: '03e2a28ca5f6e21d0df4c7f639187b0b' }) | |
} | |
} |
import { json } from 'https://pkg.do/itty-router-extras' | |
export default { | |
fetch: req => json({hello: 'Ceru'}) | |
} |
import { json } from 'https://pkg.do/itty-router-extras' | |
export default { | |
fetch: req => json({req}) | |
} |